1818#include " Common/DataModel/PIDResponseTPC.h"
1919#include " Common/DataModel/TrackSelectionTables.h"
2020
21- #include < CommonConstants/PhysicsConstants.h>
2221#include < CCDB/BasicCCDBManager.h>
22+ #include < CommonConstants/PhysicsConstants.h>
2323#include < DataFormatsParameters/AggregatedRunInfo.h>
2424#include < Framework/AnalysisDataModel.h>
2525#include < Framework/AnalysisTask.h>
3636#include < TPDGCode.h>
3737
3838#include < array>
39- #include < cstdint>
4039#include < cmath>
40+ #include < cstdint>
4141#include < cstdlib>
4242#include < vector>
4343
@@ -169,7 +169,7 @@ struct UpcTrackVertexingQA {
169169 registry.add (" Matched/Trk/hMotherPdg" , " ;mother PDG code;entries" , {HistType::kTH1F , {{1001 , 0.5 , 1000.5 }}});
170170
171171 registry.addClone (" Matched/Trk/" , " Matched/TrkColl/" );
172-
172+
173173 // MC generated plots
174174 registry.addClone (" Matched/Coll/" , " McGen/Coll/" );
175175
@@ -284,7 +284,8 @@ struct UpcTrackVertexingQA {
284284 // --------------------------------------------------------------------------------
285285 // loop over tracks and fill the histograms with info on track properties
286286 template <CandSpecies species, bool isMc, typename TTrack>
287- void loopOverTracksBeforeGrouping (TTrack const & tracks){
287+ void loopOverTracksBeforeGrouping (TTrack const & tracks)
288+ {
288289 for (auto const & track : tracks) {
289290 int32_t collId = track.collisionId ();
290291 fillTrackHistograms<species, 0 , isMc>(track);
@@ -364,21 +365,22 @@ struct UpcTrackVertexingQA {
364365 // --------------------------------------------------------------------------------
365366 // generated (MC truth) level: daughters and their mothers
366367 template <bool isEmbedded>
367- void checkMcGen (aod::McCollision const & mcCollision, aod::McParticles const & mcParticles){
368+ void checkMcGen (aod::McCollision const & mcCollision, aod::McParticles const & mcParticles)
369+ {
368370
369371 registry.fill (HIST (" McGen/Coll/hVtxX" ), mcCollision.posX ());
370372 registry.fill (HIST (" McGen/Coll/hVtxY" ), mcCollision.posY ());
371373 registry.fill (HIST (" McGen/Coll/hVtxZ" ), mcCollision.posZ ());
372374
373375 std::vector<aod::McParticle> goodMcGenParticles;
374376 for (auto const & mcPart : mcParticles) {
375-
377+
376378 if (!mcPart.isPhysicalPrimary () || mcPart.pt () < ptTrackMin || std::abs (mcPart.eta ()) > etaTrackMax) {
377- continue ;
379+ continue ;
378380 }
379381 registry.fill (HIST (" McGen/Part/hPt" ), mcPart.pt ());
380382 registry.fill (HIST (" McGen/Part/hEta" ), mcPart.eta ());
381-
383+
382384 goodMcGenParticles.push_back (mcPart);
383385 }
384386 registry.fill (HIST (" McGen/Part/hTrackSizePerEvent" ), goodMcGenParticles.size ());
@@ -399,12 +401,12 @@ struct UpcTrackVertexingQA {
399401 return ;
400402 }
401403 }
402-
404+
403405 if (goodMcGenParticles.size () != twoTracks) {
404406 return ;
405407 }
406408
407- // we have 2 good tracks, with the same mother, taking it from the first one
409+ // we have 2 good tracks, with the same mother, taking it from the first one
408410 auto mothers = goodMcGenParticles[0 ].template mothers_as <aod::McParticles>();
409411
410412 if (mothers.empty ()) {
@@ -417,7 +419,6 @@ struct UpcTrackVertexingQA {
417419 registry.fill (HIST (" McGen/MotherPart/hPt" ), motherPart.pt ());
418420 registry.fill (HIST (" McGen/MotherPart/hRapidity" ), motherPart.y ());
419421 registry.fill (HIST (" McGen/MotherPart/hPtVsRapidity" ), motherPart.pt (), motherPart.y ());
420-
421422 }
422423
423424 // --------------------------------------------------------------------------------
@@ -426,7 +427,8 @@ struct UpcTrackVertexingQA {
426427
427428 // --------------------------------------------------------------------------------
428429 // check collisionId and TF
429- void processTracksIU (TracksExtraIU const & tracks, aod::Collisions const &, aod::BCs const &) {
430+ void processTracksIU (TracksExtraIU const & tracks, aod::Collisions const &, aod::BCs const &)
431+ {
430432 // track loop
431433 for (const auto & track : tracks) {
432434
@@ -438,8 +440,7 @@ struct UpcTrackVertexingQA {
438440
439441 if (collId < 0 ) {
440442 registry.fill (HIST (" Coll/hCollIdCounter" ), -1 );
441- }
442- else if (collId > 0 ) {
443+ } else if (collId > 0 ) {
443444 registry.fill (HIST (" Coll/hCollIdCounter" ), 1 );
444445 } else {
445446 registry.fill (HIST (" Coll/hCollIdCounter" ), 0 );
@@ -451,7 +452,7 @@ struct UpcTrackVertexingQA {
451452
452453 auto collision = track.collision ();
453454 auto bc = collision.bc ();
454-
455+
455456 getRunInfo (bc.runNumber ());
456457
457458 registry.fill (HIST (" Coll/hnTF" ), getTimeFrame (bc.globalBC ()));
@@ -529,4 +530,4 @@ struct UpcTrackVertexingQA {
529530WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
530531{
531532 return WorkflowSpec{adaptAnalysisTask<UpcTrackVertexingQA>(cfgc)};
532- }
533+ }
0 commit comments