@@ -102,12 +102,12 @@ struct findableStudy {
102102 histos.add (" h2dPtVsCentrality_WithTPC_Found" , " hPtVsCentrality_WithTPC_Found" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
103103 histos.add (" h2dPtVsCentrality_WithITSTracker_Findable" , " hPtVsCentrality_WithITSTracker_Findable" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
104104 histos.add (" h2dPtVsCentrality_WithITSTracker_Found" , " hPtVsCentrality_WithITSTracker_Found" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
105- histos.add (" h2dPtVsCentrality_WithITSAfterburner_Findable" , " hPtVsCentrality_WithITSAfterburner_Findable" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
106- histos.add (" h2dPtVsCentrality_WithITSAfterburner_Found" , " hPtVsCentrality_WithITSAfterburner_Found" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
107105 histos.add (" h2dPtVsCentrality_WithITSTrackerTPC_Findable" , " hPtVsCentrality_WithITSTrackerTPC_Findable" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
108106 histos.add (" h2dPtVsCentrality_WithITSTrackerTPC_Found" , " hPtVsCentrality_WithITSTrackerTPC_Found" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
109107 histos.add (" h2dPtVsCentrality_WithITSABTPC_Findable" , " hPtVsCentrality_WithITSABTPC_Findable" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
110108 histos.add (" h2dPtVsCentrality_WithITSABTPC_Found" , " hPtVsCentrality_WithITSABTPC_Found" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
109+ histos.add (" h2dPtVsCentrality_WithSVertexerOK_Findable" , " hPtVsCentrality_WithSVertexerOK_Findable" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
110+ histos.add (" h2dPtVsCentrality_WithSVertexerOK_Found" , " hPtVsCentrality_WithSVertexerOK_Found" , kTH3D , {axisCentrality, axisPt, axisBinaryFeature});
111111 }
112112
113113 void processEvents (
@@ -143,7 +143,11 @@ struct findableStudy {
143143 bool hasBeenFound = false ;
144144
145145 // encode conditionals here
146- uint32_t withTPC = 0 , withITSTracker = 0 , withITSAfterburner = 0 , withITSTrackerTPC = 0 , withITSABTPC = 0 ;
146+ uint32_t withTPC = 0 ; // if prongs have TPC
147+ uint32_t withITSTracker = 0 ; // if prongs have been ITS tracked
148+ uint32_t withITSTrackerTPC = 0 ; // if prongs have TPC and are ITS tracked
149+ uint32_t withITSABTPC = 0 ; // if prongs have TPC and are ITS afterburned
150+ uint32_t withSVertexerOK = 0 ; // if prongs have acceptable tracking conditions for svertexer
147151
148152 for (auto & recv0 : recv0s) {
149153 if (recv0.isFound ()) {
@@ -169,16 +173,20 @@ struct findableStudy {
169173 if (nTrack.hasTPC ())
170174 bitset (withTPC, 1 );
171175
176+ if (
177+ (pTrack.hasTPC () && pTrack.hasITS ()) ||
178+ (!pTrack.hasTPC () && pTrack.itsNCls () >= 6 ))
179+ bitset (withSVertexerOK, 0 );
180+ if (
181+ (nTrack.hasTPC () && nTrack.hasITS ()) ||
182+ (!nTrack.hasTPC () && nTrack.itsNCls () >= 6 ))
183+ bitset (withSVertexerOK, 1 );
184+
172185 if (pTrack.hasITS () && pTrack.itsChi2PerNcl () > -10 .0f )
173186 bitset (withITSTracker, 0 );
174187 if (nTrack.hasITS () && nTrack.itsChi2PerNcl () > -10 .0f )
175188 bitset (withITSTracker, 1 );
176189
177- if (pTrack.hasITS () && pTrack.itsChi2PerNcl () < -10 .0f )
178- bitset (withITSAfterburner, 0 );
179- if (nTrack.hasITS () && nTrack.itsChi2PerNcl () < -10 .0f )
180- bitset (withITSAfterburner, 1 );
181-
182190 if (pTrack.hasTPC () && pTrack.hasITS () && pTrack.itsChi2PerNcl () > -10 .0f )
183191 bitset (withITSTrackerTPC, 0 );
184192 if (nTrack.hasTPC () && nTrack.hasITS () && nTrack.itsChi2PerNcl () > -10 .0f )
@@ -192,17 +200,17 @@ struct findableStudy {
192200 histos.fill (HIST (" h2dPtVsCentrality_All_Findable" ), centrality, ptmc);
193201 histos.fill (HIST (" h2dPtVsCentrality_WithTPC_Findable" ), centrality, ptmc, withTPC);
194202 histos.fill (HIST (" h2dPtVsCentrality_WithITSTracker_Findable" ), centrality, ptmc, withITSTracker);
195- histos.fill (HIST (" h2dPtVsCentrality_WithITSAfterburner_Findable" ), centrality, ptmc, withITSAfterburner);
196203 histos.fill (HIST (" h2dPtVsCentrality_WithITSTrackerTPC_Findable" ), centrality, ptmc, withITSTrackerTPC);
197204 histos.fill (HIST (" h2dPtVsCentrality_WithITSABTPC_Findable" ), centrality, ptmc, withITSABTPC);
205+ histos.fill (HIST (" h2dPtVsCentrality_WithSVertexerOK_Findable" ), centrality, ptmc, withSVertexerOK);
198206
199207 if (hasBeenFound) {
200208 histos.fill (HIST (" h2dPtVsCentrality_All_Found" ), centrality, ptmc);
201209 histos.fill (HIST (" h2dPtVsCentrality_WithTPC_Found" ), centrality, ptmc, withTPC);
202210 histos.fill (HIST (" h2dPtVsCentrality_WithITSTracker_Found" ), centrality, ptmc, withITSTracker);
203- histos.fill (HIST (" h2dPtVsCentrality_WithITSAfterburner_Found" ), centrality, ptmc, withITSAfterburner);
204211 histos.fill (HIST (" h2dPtVsCentrality_WithITSTrackerTPC_Found" ), centrality, ptmc, withITSTrackerTPC);
205212 histos.fill (HIST (" h2dPtVsCentrality_WithITSABTPC_Found" ), centrality, ptmc, withITSABTPC);
213+ histos.fill (HIST (" h2dPtVsCentrality_WithSVertexerOK_Found" ), centrality, ptmc, withSVertexerOK);
206214 }
207215
208216 if (hasWrongCollision) {
0 commit comments