1717//
1818
1919// O2 headers
20- #include " Framework/AnalysisTask.h"
2120#include " Framework/AnalysisDataModel.h"
21+ #include " Framework/AnalysisTask.h"
2222#include " Framework/HistogramRegistry.h"
2323#include " Framework/O2DatabasePDGPlugin.h"
2424#include " Framework/runDataProcessing.h"
2525
2626// O2Physics headers
27- #include " PWGUD/DataModel/UDTables.h"
2827#include " PWGUD/Core/SGSelector.h"
2928#include " PWGUD/Core/UPCTauCentralBarrelHelperRL.h"
30-
29+ # include " PWGUD/DataModel/UDTables.h "
3130
3231using namespace o2 ;
3332using namespace o2 ::framework;
3433using namespace o2 ::framework::expressions;
3534
36-
3735struct UpcTestRctTables {
3836
3937 // Global varialbes
4038 SGSelector sgSelector;
4139
4240 HistogramRegistry histos{" histos" , {}, OutputObjHandlingPolicy::AnalysisObject};
4341
44- // declare configurables
45- Configurable<bool > verboseInfo{" verboseInfo" , false , {" Print general info to terminal; default it false." }};
42+ // declare configurables
43+ Configurable<bool > verboseInfo{" verboseInfo" , false , {" Print general info to terminal; default it false." }};
4644
4745 using FullSGUDCollisions = soa::Join<aod::UDCollisions, aod::UDCollisionsSels, aod::UDCollisionSelExtras, aod::SGCollisions, aod::UDZdcsReduced>;
4846 using FullSGUDCollision = FullSGUDCollisions::iterator;
4947
50-
5148 // init
5249 void init (InitContext&)
5350 {
@@ -61,20 +58,19 @@ struct UpcTestRctTables {
6158 void processDataSG (FullSGUDCollision const & reconstructedCollision)
6259 {
6360
64- histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (0 );
65-
66- if (sgSelector.isCBTOk (reconstructedCollision))
67- histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (1 );
61+ histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (0 );
6862
69- if (sgSelector.isCBTZdcOk (reconstructedCollision))
70- histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (2 );
63+ if (sgSelector.isCBTOk (reconstructedCollision))
64+ histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (1 );
7165
72- if (sgSelector.isCBTHadronOk (reconstructedCollision))
73- histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (3 );
66+ if (sgSelector.isCBTZdcOk (reconstructedCollision))
67+ histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (2 );
7468
75- if (sgSelector.isCBTHadronZdcOk (reconstructedCollision))
76- histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (4 );
69+ if (sgSelector.isCBTHadronOk (reconstructedCollision))
70+ histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (3 );
7771
72+ if (sgSelector.isCBTHadronZdcOk (reconstructedCollision))
73+ histos.get <TH1>(HIST (" OutputTable/hRCTflags" ))->Fill (4 );
7874
7975 } // end processDataSG
8076
0 commit comments