@@ -44,6 +44,7 @@ ITSTrackTask::ITSTrackTask() : TaskInterface()
44
44
ITSTrackTask::~ITSTrackTask () // make_shared objects will be delete automatically
45
45
{
46
46
delete hNClusters;
47
+ delete hNClustersPt;
47
48
delete hVertexCoordinates;
48
49
delete hVertexRvsZ;
49
50
delete hVertexZ;
@@ -67,6 +68,12 @@ void ITSTrackTask::initialize(o2::framework::InitContext& /*ctx*/)
67
68
mDoNorm = o2::quality_control_modules::common::getFromConfig<int >(mCustomParameters , " doNorm" , mDoNorm );
68
69
mInvMasses = o2::quality_control_modules::common::getFromConfig<int >(mCustomParameters , " InvMasses" , mInvMasses );
69
70
71
+ // pt bins definition: 20 MeV/c width up to 1 GeV/c, 100 MeV/c afterwards
72
+ ptBins[0 ] = 0 .;
73
+ for (int i = 1 ; i < 141 ; i++) {
74
+ ptBins[i] = i <= 50 ? ptBins[i - 1 ] + 0.02 : ptBins[i - 1 ] + 0.1 ;
75
+ }
76
+
70
77
createAllHistos ();
71
78
publishHistos ();
72
79
@@ -200,6 +207,7 @@ void ITSTrackTask::monitorData(o2::framework::ProcessingContext& ctx)
200
207
hTrackPhi->getNum ()->Fill (out.getPhi ());
201
208
hAngularDistribution->getNum ()->Fill (Eta, out.getPhi ());
202
209
hNClusters->Fill (track.getNumberOfClusters ());
210
+ hNClustersPt->Fill (track.getPt (), track.getNumberOfClusters ());
203
211
204
212
hTrackPtVsEta->Fill (out.getPt (), Eta);
205
213
hTrackPtVsPhi->Fill (out.getPt (), out.getPhi ());
@@ -402,6 +410,7 @@ void ITSTrackTask::reset()
402
410
ILOG (Debug, Devel) << " Resetting the histograms" << ENDM;
403
411
hAngularDistribution->Reset ();
404
412
hNClusters->Reset ();
413
+ hNClustersPt->Reset ();
405
414
hTrackPhi->Reset ();
406
415
hTrackEta->Reset ();
407
416
hVerticesRof->Reset ();
@@ -450,6 +459,11 @@ void ITSTrackTask::createAllHistos()
450
459
formatAxes (hNClusters, " Number of clusters per Track" , " Counts" , 1 , 1.10 );
451
460
hNClusters->SetStats (0 );
452
461
462
+ hNClustersPt = new TH2D (" NClustersPt" , " NClustersPt;#it{p}_{T} (GeV/#it{c}); Number of clusters per Track" , 140 , ptBins, 4 , 3.5 , 7.5 );
463
+ addObject (hNClustersPt);
464
+ formatAxes (hNClustersPt, " #it{p}_{T} (GeV/#it{c})" , " Number of clusters per Track" , 1 , 1.10 );
465
+ hNClustersPt->SetStats (0 );
466
+
453
467
hTrackEta = std::make_unique<TH1DRatio>(" EtaDistribution" , " EtaDistribution" , 40 , -2.0 , 2.0 , true );
454
468
if (mDoNorm ) {
455
469
hTrackEta->SetBit (TH1::kIsAverage );
0 commit comments