Skip to content

Commit 5c59a48

Browse files
authored
vertex contributors vs z (#2575)
1 parent 6a863d5 commit 5c59a48

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Modules/ITS/include/ITS/ITSTrackTask.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class ITSTrackTask : public TaskInterface
8484
std::unique_ptr<TH2DRatio> hAngularDistribution;
8585
TH2D* hVertexCoordinates;
8686
TH2D* hVertexRvsZ;
87+
TH2D* hVertexContvsZ;
8788
TH1D* hVertexZ;
8889
TH1D* hVertexContributors;
8990
TH1D* hAssociatedClusterFraction;

Modules/ITS/src/ITSTrackTask.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)