@@ -33,41 +33,43 @@ struct pidHmpidQa {
3333 void init (o2::framework::InitContext&)
3434 {
3535 AxisSpec momAxis{nBinsP, minP, maxP};
36- histos.add (" qa/signalvsP" , " ;#it{p} (GeV/#it{c});Cherenkov angle (rad)" , kTH2F , {momAxis, {1000 , 0 , 1 }});
37- histos.add (" distance/selected" , " ;HMPID distance" , kTH1F , {{100 , 0 , 20 }});
38- histos.add (" distance/nonselected" , " ;HMPID distance" , kTH1F , {{100 , 0 , 20 }});
39- histos.add (" qmip/selected" , " ;HMPID mip charge (ADC)" , kTH1F , {{100 , 0 , 4000 }});
40- histos.add (" qmip/nonselected" , " ;HMPID mip charge (ADC)" , kTH1F , {{100 , 0 , 4000 }});
41- histos.add (" nphotons/selected" , " ;HMPID number of detected photons" , kTH1F , {{100 , 0 , 1000 }});
42- histos.add (" nphotons/nonselected" , " ;HMPID number of detected photons" , kTH1F , {{100 , 0 , 1000 }});
36+ histos.add (" hmpidSignal" , " hmpidSignal" , kTH1F , {{300 , 0 , 3000 }});
37+ histos.add (" hmpidXTrack" , " hmpidXTrack" , kTH1F , {{300 , 0 , 3000 }});
38+ histos.add (" hmpidYTrack" , " hmpidYTrack" , kTH1F , {{300 , 0 , 3000 }});
39+ histos.add (" hmpidXMip" , " hmpidXMip" , kTH1F , {{300 , 0 , 3000 }});
40+ histos.add (" hmpidYMip" , " hmpidYMip" , kTH1F , {{300 , 0 , 3000 }});
41+ histos.add (" hmpidNPhotons" , " hmpidNPhotons" , kTH1F , {{300 , 0 , 3000 }});
42+ histos.add (" hmpidQMip" , " hmpidQMip" , kTH1F , {{300 , 200 , 3200 }});
43+ histos.add (" hmpidClusSize" , " hmpidClusSize" , kTH1F , {{300 , 0 , 3000 }});
44+ histos.add (" hmpidMom" , " hmpidMom" , kTH1F , {{300 , 0 , 3000 }});
45+ histos.add (" hmpidPhotsCharge" , " hmpidPhotsCharge" , kTH2F , {{300 , 0 , 3000 }, {300 , 0 , 3000 }});
4346 }
4447
4548 using TrackCandidates = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection>;
46- void process (const TrackCandidates& tracks ,
47- const aod::HMPIDs& hmpids ,
49+ void process (const aod::HMPIDs& hmpids ,
50+ const TrackCandidates& tracks ,
4851 const aod::Collisions& colls)
4952 {
5053 for (const auto & t : hmpids) {
51-
5254 if (t.track_as <TrackCandidates>().isGlobalTrack () != (uint8_t ) true ) {
5355 continue ;
5456 }
5557 if (abs (t.track_as <TrackCandidates>().dcaXY ()) > maxDCA) {
5658 continue ;
5759 }
58- histos.fill (HIST (" distance/nonselected" ), t.hmpidDistance ());
59- histos.fill (HIST (" qmip/nonselected" ), t.hmpidQMip ());
60- histos.fill (HIST (" nphotons/nonselected" ), t.hmpidNPhotons ());
61- if (t.hmpidDistance () > maxDistance) {
62- continue ;
63- }
64- if (t.hmpidQMip () < minCharge) {
65- continue ;
60+
61+ histos.fill (HIST (" hmpidSignal" ), t.hmpidSignal ());
62+ histos.fill (HIST (" hmpidXTrack" ), t.hmpidXTrack ());
63+ histos.fill (HIST (" hmpidYTrack" ), t.hmpidYTrack ());
64+ histos.fill (HIST (" hmpidXMip" ), t.hmpidXMip ());
65+ histos.fill (HIST (" hmpidYMip" ), t.hmpidYMip ());
66+ histos.fill (HIST (" hmpidNPhotons" ), t.hmpidNPhotons ());
67+ histos.fill (HIST (" hmpidQMip" ), t.hmpidQMip ());
68+ histos.fill (HIST (" hmpidClusSize" ), t.hmpidClusSize ());
69+ histos.fill (HIST (" hmpidMom" ), t.hmpidMom ());
70+ for (int i = 0 ; i < 10 ; i++) {
71+ histos.fill (HIST (" hmpidPhotsCharge" ), t.hmpidMom (), i);
6672 }
67- histos.fill (HIST (" distance/selected" ), t.hmpidDistance ());
68- histos.fill (HIST (" qmip/selected" ), t.hmpidQMip ());
69- histos.fill (HIST (" nphotons/selected" ), t.hmpidNPhotons ());
70- histos.fill (HIST (" qa/signalvsP" ), t.track_as <TrackCandidates>().p (), t.hmpidSignal ());
7173 }
7274 }
7375};
0 commit comments