4848#include < cmath>
4949#include < cstddef>
5050#include < cstdint>
51+ #include < cstdlib>
5152#include < memory>
5253#include < numeric>
5354#include < string>
5455#include < string_view>
5556#include < vector>
5657
57- #include < cstdlib>
58-
5958#define O2_DEFINE_CONFIGURABLE (NAME, TYPE, DEFAULT, HELP ) Configurable<TYPE > NAME {#NAME , DEFAULT , HELP };
6059
6160using namespace o2 ;
@@ -69,7 +68,6 @@ using namespace o2::constants::math;
6968namespace o2 ::analysis::qvectortask
7069{
7170
72-
7371// Define histogrm names here to use same names for creating and later uploading and retrieving data from ccdb
7472// Energy calibration:
7573const std::array<TString, 10 > namesEcal = {{" hZNA_mean_t0_cent" , " hZNA_mean_t1_cent" , " hZNA_mean_t2_cent" , " hZNA_mean_t3_cent" , " hZNA_mean_t4_cent" ,
@@ -578,19 +576,19 @@ struct ZdcQVectors {
578576 auto multNTracksPV = collision.multNTracksPV ();
579577 selected = true ;
580578
581- if (vtxz > cfgVtxZ || vtxz < -cfgVtxZ){
579+ if (vtxz > cfgVtxZ || vtxz < -cfgVtxZ) {
582580 selected = false ;
583581 }
584- if (multNTracksPV < fMultPVCutLow ->Eval (collision.centFT0C ())){
582+ if (multNTracksPV < fMultPVCutLow ->Eval (collision.centFT0C ())) {
585583 selected = false ;
586584 }
587- if (multNTracksPV > fMultPVCutHigh ->Eval (collision.centFT0C ())){
585+ if (multNTracksPV > fMultPVCutHigh ->Eval (collision.centFT0C ())) {
588586 selected = false ;
589587 }
590- if (multTrk < fMultCutLow ->Eval (collision.centFT0C ())){
588+ if (multTrk < fMultCutLow ->Eval (collision.centFT0C ())) {
591589 selected = false ;
592590 }
593- if (multTrk > fMultCutHigh ->Eval (collision.centFT0C ())){
591+ if (multTrk > fMultCutHigh ->Eval (collision.centFT0C ())) {
594592 selected = false ;
595593 }
596594
@@ -611,10 +609,10 @@ struct ZdcQVectors {
611609 {
612610 // loop for filling multiple histograms with different naming patterns
613611 // Always fill the uncentered "raw" Q-vector histos!
614- if (cfgFillNothing){
612+ if (cfgFillNothing) {
615613 return ;
616614 }
617- static constexpr std::array<std::string_view, 2 > Time = {" before" , " after" }; // todo move to struct like in flowSP
615+ static constexpr std::array<std::string_view, 2 > Time = {" before" , " after" }; // todo move to struct like in flowSP
618616
619617 registry.fill (HIST (" recentering/" ) + HIST (Time[ft]) + HIST (" /hZNA_Qx_vs_Qy" ), qxa, qya);
620618 registry.fill (HIST (" recentering/" ) + HIST (Time[ft]) + HIST (" /hZNC_Qx_vs_Qy" ), qxc, qyc);
@@ -684,7 +682,7 @@ struct ZdcQVectors {
684682 }
685683
686684 template <CalibModes cm>
687- void loadCalibrations (const std::string & ccdb_dir, uint64_t timestamp)
685+ void loadCalibrations (const std::string& ccdb_dir, uint64_t timestamp)
688686 {
689687 // iteration = 0 (Energy calibration) -> step 0 only
690688 // iteration 1,2,3,4,5 = recentering -> 5 steps per iteration (1x 4D + 4x 1D)
0 commit comments