@@ -47,6 +47,7 @@ ITSTrackTask::~ITSTrackTask() // make_shared objects will be delete automaticall
4747 delete hVertexRvsZ;
4848 delete hVertexZ;
4949 delete hVertexContributors;
50+ delete hVertexContvsZ;
5051 delete hAssociatedClusterFraction;
5152 delete hNtracks;
5253 delete hTrackPtVsEta;
@@ -177,6 +178,7 @@ void ITSTrackTask::monitorData(o2::framework::ProcessingContext& ctx)
177178 hVertexCoordinates->Fill (vertex.getX (), vertex.getY ());
178179 hVertexRvsZ->Fill (vertex.getZ (), sqrt (vertex.getX () * vertex.getX () + vertex.getY () * vertex.getY ()));
179180 hVertexZ->Fill (vertex.getZ ());
181+ hVertexContvsZ->Fill (vertex.getZ (), vertex.getNContributors ());
180182 hVertexContributors->Fill (vertex.getNContributors ());
181183 }
182184
@@ -216,7 +218,6 @@ void ITSTrackTask::monitorData(o2::framework::ProcessingContext& ctx)
216218 float vx = 0 , vy = 0 , vz = 0 ;
217219 float dca[2 ]{ 0 ., 0 . };
218220 float bz = 5.0 ;
219-
220221 // loop on tracks per ROF
221222 for (int iROF = 0 ; iROF < trackRofArr.size (); iROF++) {
222223
@@ -233,7 +234,6 @@ void ITSTrackTask::monitorData(o2::framework::ProcessingContext& ctx)
233234 hTrackPhi->getNum ()->Fill (out.getPhi ());
234235 hAngularDistribution->getNum ()->Fill (Eta, out.getPhi ());
235236 hNClusters->getNum ()->Fill (track.getNumberOfClusters ());
236-
237237 hTrackPtVsEta->Fill (out.getPt (), Eta);
238238 hTrackPtVsPhi->Fill (out.getPt (), out.getPhi ());
239239
@@ -545,6 +545,7 @@ void ITSTrackTask::reset()
545545 hVertexRvsZ->Reset ();
546546 hVertexZ->Reset ();
547547 hVertexContributors->Reset ();
548+ hVertexContvsZ->Reset ();
548549
549550 hAssociatedClusterFraction->Reset ();
550551 hNtracks->Reset ();
@@ -635,6 +636,11 @@ void ITSTrackTask::createAllHistos()
635636 formatAxes (hVertexContributors, " Number of contributors for vertex" , " Counts" , 1 , 1.10 );
636637 hVertexContributors->SetStats (0 );
637638
639+ hVertexContvsZ = new TH2D (" VertexContvsZ" , " Vertex Contributors vs Z" , (int )(mVertexZsize * 2 / 0.01 ), -mVertexZsize , mVertexZsize , 500 , 0 , 500 );
640+ addObject (hVertexContvsZ);
641+ formatAxes (hVertexContvsZ, " Z coordinate (cm)" , " N contributors" , 1 , 1.10 );
642+ hVertexContvsZ->SetStats (0 );
643+
638644 hAssociatedClusterFraction = new TH1D (" AssociatedClusterFraction" , " AssociatedClusterFraction" , 100 , 0 , 1 );
639645 hAssociatedClusterFraction->SetTitle (" The fraction of clusters into tracks event by event" );
640646 addObject (hAssociatedClusterFraction);
0 commit comments