Skip to content

Commit

Permalink
Update vertexing.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
khushi-singla-21 authored Oct 16, 2024
1 parent fdcee2e commit d4ed0f3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions benchmarks/dis/analysis/vertexing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);
double vtx_mc_z = mcVtxZ[i];
mcEvtVtx = TVector3(vtx_mc_x, vtx_mc_y, vtx_mc_z);
}
// cout << "MC Vertex: (" << mcEvtVtx.x() << ", " << mcEvtVtx.y() << ", " << mcEvtVtx.z() << ")" << endl;
genVtxYvsXHist->Fill(mcEvtVtx.x(), mcEvtVtx.y());
TVector3 mcRadius(mcEvtVtx.x(), mcEvtVtx.y(), 0);
// cout << "MC Radius: " << mcRadius.Mag() << endl;
genVtxRvsZHist->Fill(mcEvtVtx.z(), mcRadius.Mag());

//Filtering MC Tracks
Expand All @@ -185,13 +183,13 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);

numMCTracks++;
}
// cout << "MC Particles: " << numMCTracks << endl;
numGenTracksHist->Fill(numMCTracks);

//////////////////////////////////////////////////////////////////////////
////////////////////// Analyze Reconstructed Tracks //////////////////////
//////////////////////////////////////////////////////////////////////////


numRecoTracksHist->Fill(recoType.GetSize());
//Finding Reconstructed Vertex and Vertexing Efficiency
int nVtx=0;
float diff=999.;
Expand All @@ -216,9 +214,6 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);
}
}
}
/*cout << "No. of reconstructed Vertices: " << nVtx << endl;
cout << "Recon. Vertex: (" << recoEvtVtx.x() << ", " << recoEvtVtx.y() << ", " << recoEvtVtx.z() << ")" << endl;
cout << "No. of reconstructed particles associated with vertex: " << nAssoPart << endl;*/

recoVtxEffHist->Fill(nVtx);
recoVtxYvsXHist->Fill(recoEvtVtx.x(), recoEvtVtx.y());
Expand Down

0 comments on commit d4ed0f3

Please sign in to comment.