@@ -41,6 +41,9 @@ using namespace o2::framework::expressions;
4141TH1D* tmpFqErr[6 ][5 ][52 ];
4242
4343struct FactorialMomentsTask {
44+ Configurable<bool > useITS{" useITS" , false , " Select tracks with ITS" };
45+ Configurable<bool > useTPC{" useTPC" , false , " Select tracks with TPC" };
46+ Configurable<bool > useGlobal{" useGlobal" , true , " Select global tracks" };
4447 Configurable<bool > applyCheckPtForRec{" applyCheckPtForRec" , false , " Apply checkpT for reconstructed tracks" };
4548 Configurable<bool > applyCheckPtForMC{" applyCheckPtForMC" , true , " Apply checkpT for MC-generated tracks" };
4649 Configurable<float > centralEta{" centralEta" , 0.9 , " eta limit for tracks" };
@@ -402,9 +405,12 @@ struct FactorialMomentsTask {
402405 fqEvent = {{{{{0 , 0 , 0 , 0 , 0 , 0 }}}}};
403406 binConEvent = {{{0 , 0 , 0 , 0 , 0 }}};
404407 for (auto const & track : colltracks) {
405- // if (track.hasITS())
406- // if (track.hasTPC())
407- // if (track.isGlobalTrack()) {
408+ if (useITS && !track.hasITS ())
409+ continue ;
410+ if (useTPC && !track.hasTPC ())
411+ continue ;
412+ if (useGlobal && !track.isGlobalTrack ())
413+ continue ;
408414 histos.fill (HIST (" mCollID" ), track.collisionId ());
409415 histos.fill (HIST (" mEta" ), track.eta ());
410416 histos.fill (HIST (" mPt" ), track.pt ());
0 commit comments