10#include "TEfficiency.h"
11#include "TLorentzVector.h"
17 constexpr float GeV = 1000.;
36 std::vector<std::string> recoTypes{
"All",
"Matched",
"Merged",
"Fake",
"Split",
"Other"};
37 std::vector<std::string> truthTypes{
"Inclusive",
"Reconstructable",
"Accepted",
"Seeded",
"Reconstructed",
"ReconstructedSplit"};
39 std::vector<std::string> smOriginTypes;
41 smOriginTypes = {
"FakeOrigin",
"Pileup",
"KshortDecay",
"StrangeMesonDecay",
"LambdaDecay",
42 "StrangeBaryonDecay",
"TauDecay",
"GammaConversion",
"OtherDecay",
43 "HadronicInteraction",
"OtherSecondary",
"BHadronDecay",
"DHadronDecay",
44 "Fragmentation",
"OtherOrigin",
"Signal"};
51 float maxZ =
m_doMuSA ? 10000 : 1500;
52 float maxLxy =
m_doMuSA ? 8000 : 500;
56 float maxTrackd0 =
m_doMuSA ? 3000 : 300;
57 float maxTrackz0 =
m_doMuSA ? 5000 : 500;
58 float maxErrd0 =
m_doMuSA ? 300 : 30;
59 float maxErrz0 =
m_doMuSA ? 500 : 50;
61 float maxResR =
m_doMuSA ? 2000 : 20;
62 float maxResZ =
m_doMuSA ? 2000 : 20;
64 ANA_CHECK (
book(TH1F(
"RecoVertex/matchType",
"Vertex Match Type", 65, -0.5, 64.5)));
66 ANA_CHECK (
book(TH1F(
"RecoVertex/smOriginType",
"Vertex SM Origin Type", 65537, -0.5, 65536.5)));
70 auto bookRecoVertexHistos = [&](
const std::string& category,
bool withMatchScore) -> StatusCode {
72 auto bookHist = [&](TH1*& target,
const std::string& suffix,
const char* title,
73 int nbins,
double low,
double high) -> StatusCode {
74 const std::string
name =
"RecoVertex/" + category + suffix;
77 return StatusCode::SUCCESS;
80 ANA_CHECK (bookHist(
h.x,
"_x",
"Reco vertex x [mm]", 1000, -maxX, maxX));
81 ANA_CHECK (bookHist(
h.y,
"_y",
"Reco vertex y [mm]", 1000, -maxY, maxY));
82 ANA_CHECK (bookHist(
h.z,
"_z",
"Reco vertex z [mm]", 1000, -maxZ, maxZ));
83 ANA_CHECK (bookHist(
h.Lxy,
"_Lxy",
"Reco vertex L_{xy} [mm]", 500, 0, maxLxy));
84 ANA_CHECK (bookHist(
h.pT,
"_pT",
"Reco vertex p_{T} [GeV]", 100, 0, 100));
85 ANA_CHECK (bookHist(
h.eta,
"_eta",
"Reco vertex #eta", 100, -5, 5));
86 ANA_CHECK (bookHist(
h.phi,
"_phi",
"Reco vertex #phi", 100, -std::numbers::pi, std::numbers::pi));
87 ANA_CHECK (bookHist(
h.mass,
"_mass",
"Reco vertex mass [GeV]", 500, 0, 100));
88 ANA_CHECK (bookHist(
h.mu,
"_mu",
"Reco vertex Red. Mass [GeV]", 500, 0, 100));
89 ANA_CHECK (bookHist(
h.chi2,
"_chi2",
"Reco vertex recoChi2", 100, 0, 10));
90 ANA_CHECK (bookHist(
h.dir,
"_dir",
"Reco vertex recoDirection", 100, -1, 1));
91 ANA_CHECK (bookHist(
h.charge,
"_charge",
"Reco vertex recoCharge", 20, -10, 10));
92 ANA_CHECK (bookHist(
h.H,
"_H",
"Reco vertex H [GeV]", 100, 0, 100));
93 ANA_CHECK (bookHist(
h.HT,
"_HT",
"Reco vertex Mass [GeV]", 100, 0, 100));
94 ANA_CHECK (bookHist(
h.minOpAng,
"_minOpAng",
"Reco vertex minOpAng", 100, -1, 1));
95 ANA_CHECK (bookHist(
h.maxOpAng,
"_maxOpAng",
"Reco vertex maxOpAng", 100, -1, 1));
96 ANA_CHECK (bookHist(
h.maxdR,
"_maxdR",
"Reco vertex maxDR", 100, 0, 10));
97 ANA_CHECK (bookHist(
h.mind0,
"_mind0",
"Reco vertex min d0 [mm]", 100, 0, mind0));
98 ANA_CHECK (bookHist(
h.maxd0,
"_maxd0",
"Reco vertex max d0 [mm]", 100, 0, maxd0));
99 ANA_CHECK (bookHist(
h.ntrk,
"_ntrk",
"Reco vertex n tracks", 30, 0, 30));
102 ANA_CHECK (bookHist(
h.Trk_qOverP,
"_Trk_qOverP",
"Reco track qOverP ", 100, 0, .01));
103 ANA_CHECK (bookHist(
h.Trk_theta,
"_Trk_theta",
"Reco track theta ", 64, 0, 3.2));
104 ANA_CHECK (bookHist(
h.Trk_E,
"_Trk_E",
"Reco track E ", 100, 0, 100));
105 ANA_CHECK (bookHist(
h.Trk_M,
"_Trk_M",
"Reco track M ", 100, 0, 10));
106 ANA_CHECK (bookHist(
h.Trk_Pt,
"_Trk_Pt",
"Reco track Pt ", 100, 0, 100));
107 ANA_CHECK (bookHist(
h.Trk_Px,
"_Trk_Px",
"Reco track Px ", 100, 0, 100));
108 ANA_CHECK (bookHist(
h.Trk_Py,
"_Trk_Py",
"Reco track Py ", 100, 0, 100));
109 ANA_CHECK (bookHist(
h.Trk_Pz,
"_Trk_Pz",
"Reco track Pz ", 100, 0, 100));
110 ANA_CHECK (bookHist(
h.Trk_Eta,
"_Trk_Eta",
"Reco track Eta ", 100, -5, 5));
111 ANA_CHECK (bookHist(
h.Trk_Phi,
"_Trk_Phi",
"Reco track Phi ", 63, -3.2, 3.2));
112 ANA_CHECK (bookHist(
h.Trk_D0,
"_Trk_D0",
"Reco track D0 ", 300, -maxTrackd0, maxTrackd0));
113 ANA_CHECK (bookHist(
h.Trk_Z0,
"_Trk_Z0",
"Reco track Z0 ", 500, -maxTrackz0, maxTrackz0));
114 ANA_CHECK (bookHist(
h.Trk_errD0,
"_Trk_errD0",
"Reco track errD0 ", 300, 0, maxErrd0));
115 ANA_CHECK (bookHist(
h.Trk_errZ0,
"_Trk_errZ0",
"Reco track errZ0 ", 500, 0, maxErrz0));
116 ANA_CHECK (bookHist(
h.Trk_Chi2,
"_Trk_Chi2",
"Reco track Chi2 ", 100, 0, 10));
117 ANA_CHECK (bookHist(
h.Trk_nDoF,
"_Trk_nDoF",
"Reco track nDoF ", 100, 0, 100));
118 ANA_CHECK (bookHist(
h.Trk_charge,
"_Trk_charge",
"Reco track charge ", 3, -1.5, 1.5));
120 if (withMatchScore) {
121 ANA_CHECK (bookHist(
h.positionRes_R,
"_positionRes_R",
"Position resolution for vertices matched to truth decays", 400, -maxResR, maxResR));
122 ANA_CHECK (bookHist(
h.positionRes_Z,
"_positionRes_Z",
"Position resolution for vertices matched to truth decays", 400, -maxResZ, maxResZ));
123 ANA_CHECK (bookHist(
h.matchScore_weight,
"_matchScore_weight",
"Vertex Match Score (weight)", 101, 0, 1.01));
124 ANA_CHECK (bookHist(
h.matchScore_pt,
"_matchScore_pt",
"Vertex Match Score (pT)", 101, 0, 1.01));
126 return StatusCode::SUCCESS;
129 for(
const auto& recoType : recoTypes) {
131 ANA_CHECK (bookRecoVertexHistos(recoType, recoType !=
"All" and recoType !=
"Fake"));
135 for(
const auto& smOriginType : smOriginTypes) {
136 ANA_CHECK (bookRecoVertexHistos(smOriginType,
false));
139 for(
const auto& truthType : truthTypes) {
140 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_x").c_str(),
"Truth vertex x [mm]", 1000, -maxX, maxX)));
141 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_y").c_str(),
"Truth vertex y [mm]", 500, -maxY, maxY)));
142 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_z").c_str(),
"Truth vertex z [mm]", 500, -maxZ, maxZ)));
143 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_R").c_str(),
"Truth vertex r [mm]", 6000, 0, maxR)));
144 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Eta").c_str(),
"Truth vertex Eta", 100, -5, 5)));
145 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Phi").c_str(),
"Truth vertex Phi", 64, -3.2, 3.2)));
146 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Ntrk_out").c_str(),
"Truth vertex n outgoing tracks", 100, 0, 100)));
147 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Parent_E").c_str(),
"Reco track E", 100, 0, 100)));
148 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Parent_M").c_str(),
"Reco track M", 500, 0, 500)));
149 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Parent_Pt").c_str(),
"Reco track Pt", 100, 0, 100)));
150 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Parent_Eta").c_str(),
"Reco track Eta", 100, -5, 5)));
151 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Parent_Phi").c_str(),
"Reco track Phi", 63, -3.2, 3.2)));
152 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_Parent_charge").c_str(),
"Reco track charge", 3, -1, 1)));
153 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_ParentProdX").c_str(),
"truthParentProd vertex x [mm]", 500, -500, 500)));
154 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_ParentProdY").c_str(),
"truthParentProd vertex y [mm]", 500, -500, 500)));
155 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_ParentProdZ").c_str(),
"truthParentProd vertex z [mm]", 500, -500, 500)));
156 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_ParentProdR").c_str(),
"truthParentProd vertex r [mm]", 6000, 0, 600)));
157 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_ParentProdEta").c_str(),
"truthParentProd vertex Eta", 100, -5, 5)));
158 ANA_CHECK (
book(TH1F((
"TruthVertex/" + truthType +
"_ParentProdPhi").c_str(),
"truthParentProd vertex Phi", 64, -3.2, 3.2)));
164 ? std::vector<double>{0.0, 1, 5, 10, 20, 50, 100, 200, 300, 500, 750, 1000, 1500, 2000, 2500, 3000, 4000, 5000, 6000, 7000, 8000}
165 : std::vector<double>{0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 100, 125, 150, 200, 300, 500};
166 const int nbins = std::size(
bins) - 1;
169 ANA_CHECK (
book(TEfficiency(
"eff_seed",
"Seed efficiency", nbins,
bins.data())));
170 ANA_CHECK (
book(TEfficiency(
"eff_core",
"Core efficiency", nbins,
bins.data())));
171 ANA_CHECK (
book(TEfficiency(
"eff_total",
"Total efficiency", nbins,
bins.data())));
176 return StatusCode::SUCCESS;
183 if (!recoVertexContainer.
isValid()) {
185 return StatusCode::FAILURE;
188 if (!truthVertexContainer.
isValid()) {
190 return StatusCode::FAILURE;
193 if (!trackParticleContainer.
isValid()) {
195 return StatusCode::FAILURE;
198 std::vector<const xAOD::Vertex*> recoVerticesToMatch;
199 std::vector<const xAOD::TruthVertex*> truthVerticesToMatch;
201 for(
const auto *recoVertex : *recoVertexContainer) {
206 recoVerticesToMatch.push_back(recoVertex);
209 for(
const auto *truthVertex : *truthVertexContainer) {
210 if(truthVertex->nIncomingParticles() != 1) {
220 if(truthVertex->nOutgoingParticles() < 2) {
223 truthVerticesToMatch.push_back(truthVertex);
227 ATH_CHECK(
m_matchTool->matchVertices( recoVerticesToMatch, truthVerticesToMatch, trackParticleContainer.
cptr() ) );
230 static const xAOD::Vertex::ConstAccessor<int> matchTypeAcc(
"vertexMatchType");
231 static const xAOD::Vertex::ConstAccessor<int> originTypeAcc(
"vertexMatchOriginType");
233 static const std::map<InDetSecVtxTruthMatchUtils::VertexMatchOriginType, std::string> originTypeMap = {
252 const auto& matchedHists =
m_recoHists.at(
"Matched");
253 const auto& mergedHists =
m_recoHists.at(
"Merged");
259 std::vector<const RecoVertexHists*> categories;
261 categories.reserve(8);
263 for(
const auto * secVtx : recoVerticesToMatch) {
265 const int matchTypeBitset = matchTypeAcc(*secVtx);
266 hist(
"RecoVertex/matchType")->Fill(matchTypeBitset);
269 categories.push_back(&matchedHists);
272 categories.push_back(&mergedHists);
275 categories.push_back(&fakeHists);
278 categories.push_back(&splitHists);
281 categories.push_back(&otherHists);
283 categories.push_back(&allHists);
286 const int smOriginTypeBitset = originTypeAcc(*secVtx);
287 hist(
"RecoVertex/smOriginType")->Fill(smOriginTypeBitset);
289 for(
const auto& [originType,
name] : originTypeMap) {
299 static const xAOD::TruthVertex::ConstAccessor<int> truthTypeAcc(
"truthVertexMatchType");
300 for(
const auto * truthVtx : truthVerticesToMatch) {
301 const int truthTypeBitset = truthTypeAcc(*truthVtx);
329 return StatusCode::SUCCESS;
335 xAOD::Vertex::ConstAccessor<xAOD::Vertex::TrackParticleLinks_t> trkAcc(
"trackParticleLinks");
336 const xAOD::Vertex::ConstAccessor<std::vector<InDetSecVtxTruthMatchUtils::VertexTruthMatchInfo> > matchInfoAcc(
"truthVertexMatchingInfos");
338 TVector3 reco_pos(secVtx->
x(), secVtx->
y(), secVtx->
z());
339 float Lxy = reco_pos.Perp();
343 ntracks = trkParts.size();
345 TLorentzVector sumP4(0,0,0,0);
351 double minOpAng = -1.0* 1.e10;
352 double maxOpAng = 1.0* 1.e10;
353 double minD0 = 1.0* 1.e10;
356 size_t nValidTracks = 0;
359 for(
size_t t = 0; t < ntracks; t++){
370 if(trk_d0 < minD0){ minD0 = trk_d0; }
371 if(trk_d0 > maxD0){ maxD0 = trk_d0; }
375 vv.SetPtEtaPhiM(trk.
pt(),trk.
eta(), trk.
phi0(), trk.
m());
377 H += vv.Vect().Mag();
380 TLorentzVector v_minus_iv(0,0,0,0);
381 for(
size_t j = 0; j < ntracks; j++){
382 if (j == t){
continue; }
392 tmp.SetPtEtaPhiM(trk_2.
pt(),trk_2.
eta(), trk_2.
phi0(), trk_2.
m());
396 double tm = vv * tmp / ( vv.Mag() * tmp.Mag() );
397 if( minOpAng < tm ) minOpAng = tm;
398 if( maxOpAng > tm ) maxOpAng = tm;
401 double DR = vv.DeltaR(v_minus_iv);
402 if( DR > maxDR ){ maxDR = DR;}
410 const bool hasChi2 = Trk_Chi2(trk) >0. && Trk_nDoF(trk) >0.;
415 h->Trk_Chi2->Fill(Trk_Chi2(trk) / Trk_nDoF(trk));
416 h->Trk_nDoF->Fill(Trk_nDoF(trk));
418 h->Trk_D0->Fill(trk_d0);
419 h->Trk_Z0->Fill(trk_z0);
422 h->Trk_Eta->Fill(trk.
eta());
423 h->Trk_Phi->Fill(trk.
phi0());
424 h->Trk_E->Fill(trk.
e() /
GeV);
425 h->Trk_M->Fill(trk.
m() /
GeV);
426 h->Trk_Pt->Fill(trk.
pt() /
GeV);
427 h->Trk_Px->Fill(trk.
p4().Px() /
GeV);
428 h->Trk_Py->Fill(trk.
p4().Py() /
GeV);
429 h->Trk_Pz->Fill(trk.
p4().Pz() /
GeV);
430 h->Trk_charge->Fill(trk.
charge());
431 if (covDiag.size() > 1) {
432 h->Trk_errD0->Fill(std::sqrt(covDiag[0]));
433 h->Trk_errZ0->Fill(std::sqrt(covDiag[1]));
439 const double sumP3Mag = sumP4.Vect().Mag();
440 const double recoPosMag = reco_pos.Mag();
442 xAOD::Vertex::ConstAccessor<float> Chi2(
"chiSquared");
443 xAOD::Vertex::ConstAccessor<float> nDoF(
"numberDoF");
446 h->x->Fill(secVtx->
x());
447 h->y->Fill(secVtx->
y());
448 h->z->Fill(secVtx->
z());
450 h->ntrk->Fill(ntracks);
451 h->pT->Fill(sumP4.Pt() /
GeV);
452 h->eta->Fill(sumP4.Eta());
453 h->phi->Fill(sumP4.Phi());
454 h->mass->Fill(sumP4.M() /
GeV);
456 h->mu->Fill(sumP4.M() / maxDR /
GeV);
458 h->chi2->Fill(Chi2(*secVtx)/nDoF(*secVtx));
459 if (sumP3Mag > 0 && recoPosMag > 0) {
460 h->dir->Fill(sumP4.Vect().Dot( reco_pos ) / sumP3Mag / recoPosMag);
464 h->HT->Fill(HT /
GeV);
465 if (nValidTracks > 1) {
466 h->minOpAng->Fill(minOpAng);
467 h->maxOpAng->Fill(maxOpAng);
469 if (nValidTracks > 0) {
470 h->mind0->Fill(minD0);
471 h->maxd0->Fill(maxD0);
473 h->maxdR->Fill(maxDR);
476 if (
h->matchScore_weight) {
477 const auto& truthmatchinfo = matchInfoAcc(*secVtx);
478 if(not truthmatchinfo.empty()){
479 float matchScore_weight = std::get<1>(truthmatchinfo.at(0));
480 float matchScore_pt = std::get<2>(truthmatchinfo.at(0));
482 ATH_MSG_DEBUG(
"Match Score and probability: " << matchScore_weight <<
" " << matchScore_pt/0.01);
487 h->positionRes_R->Fill(Lxy - truthVtx.
perp());
488 h->positionRes_Z->Fill(secVtx->
z() - truthVtx.
z());
489 h->matchScore_weight->Fill(matchScore_weight);
490 h->matchScore_pt->Fill(matchScore_pt);
498 hist(
"TruthVertex/" + truthType +
"_x")->Fill(truthVtx->
x());
499 hist(
"TruthVertex/" + truthType +
"_y")->Fill(truthVtx->
y());
500 hist(
"TruthVertex/" + truthType +
"_z")->Fill(truthVtx->
z());
501 hist(
"TruthVertex/" + truthType +
"_R")->Fill(truthVtx->
perp());
502 hist(
"TruthVertex/" + truthType +
"_Eta")->Fill(truthVtx->
eta());
503 hist(
"TruthVertex/" + truthType +
"_Phi")->Fill(truthVtx->
phi());
509 hist(
"TruthVertex/" + truthType +
"_Parent_E")->Fill(truthPart.
e() /
GeV);
510 hist(
"TruthVertex/" + truthType +
"_Parent_M")->Fill(truthPart.
m() /
GeV);
511 hist(
"TruthVertex/" + truthType +
"_Parent_Pt")->Fill(truthPart.
pt() /
GeV);
512 hist(
"TruthVertex/" + truthType +
"_Parent_Phi")->Fill(truthPart.
phi());
513 hist(
"TruthVertex/" + truthType +
"_Parent_Eta")->Fill(truthPart.
eta());
514 hist(
"TruthVertex/" + truthType +
"_Parent_charge")->Fill(truthPart.
charge());
520 hist(
"TruthVertex/" + truthType +
"_ParentProdX")->Fill(vertex.x());
521 hist(
"TruthVertex/" + truthType +
"_ParentProdY")->Fill(vertex.y());
522 hist(
"TruthVertex/" + truthType +
"_ParentProdZ")->Fill(vertex.z());
523 hist(
"TruthVertex/" + truthType +
"_ParentProdR")->Fill(vertex.perp());
524 hist(
"TruthVertex/" + truthType +
"_ParentProdEta")->Fill(vertex.eta());
525 hist(
"TruthVertex/" + truthType +
"_ParentProdPhi")->Fill(vertex.phi());
#define ATH_CHECK
Evaluate an expression and check for errors.
bool isValid() const
Test to see if the link can be dereferenced.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
static const std::vector< std::string > bins
Header file for AthHistogramAlgorithm.
TH1 * hist(std::string_view histName, std::string_view tDir="", std::string_view stream="")
Simplify the retrieval of registered histograms of any type.
StatusCode book(const TH1 &hist, std::string_view tDir="", std::string_view stream="")
Simplify the booking and registering (into THistSvc) of histograms.
TEfficiency * efficiency(std::string_view effName, std::string_view tDir="", std::string_view stream="")
Simplify the retrieval of registered TEfficiency.
Gaudi::Property< bool > m_doMuSA
Gaudi::Property< bool > m_writeHistograms
Gaudi::Property< std::vector< int > > m_targetPDGIDs
Gaudi::Property< bool > m_doSMOrigin
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_secVtxContainerKey
ToolHandle< IInDetSecVtxTruthMatchTool > m_matchTool
SecVertexTruthMatchAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
void fillTruthHistograms(const xAOD::TruthVertex *truthVtx, const std::string &truthType)
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_truthVtxContainerKey
std::unordered_map< std::string, RecoVertexHists > m_recoHists
void fillRecoHistograms(const xAOD::Vertex *secVtx, const std::vector< const RecoVertexHists * > &categories)
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual::StatusCode execute()
execute this algorithm
ElementLink implementation for ROOT usage.
Helper class to provide constant type-safe access to aux data.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
const std::vector< float > & definingParametersCovMatrixDiagVec() const
Returns the diagonal elements of the defining parameters covariance matrix.
DefiningParameters_t definingParameters() const
Returns a SVector of the Perigee track parameters.
virtual double m() const override final
The invariant mass of the particle..
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
float charge() const
Returns the charge.
float phi0() const
Returns the parameter, which has range to .
virtual double e() const override final
The total energy of the particle.
virtual double m() const override final
The mass of the particle.
int pdgId() const
PDG ID code.
bool hasProdVtx() const
Check for a production vertex on this particle.
virtual double e() const override final
The total energy of the particle.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
const TruthVertex_v1 * prodVtx() const
The production vertex of this particle.
double charge() const
Physical charge.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
float z() const
Vertex longitudinal distance along the beam line form the origin.
float eta() const
Vertex pseudorapidity.
float y() const
Vertex y displacement.
float phi() const
Vertex azimuthal angle.
const TruthParticle_v1 * incomingParticle(size_t index) const
Get one of the incoming particles.
float perp() const
Vertex transverse distance from the beam line.
size_t nOutgoingParticles() const
Get the number of outgoing particles.
float x() const
Vertex x displacement.
float z() const
Returns the z position.
std::vector< ElementLink< xAOD::TrackParticleContainer > > TrackParticleLinks_t
Type for the associated track particles.
float y() const
Returns the y position.
float x() const
Returns the x position.
Select isolated Photons, Electrons and Muons.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
bool isSeeded(int matchInfo)
bool isSplit(int matchInfo)
bool isFake(int matchInfo)
bool isReconstructedSplit(int matchInfo)
bool isOriginType(int matchInfo, VertexMatchOriginType type)
bool isReconstructable(int matchInfo)
bool isReconstructed(int matchInfo)
bool isMatched(int matchInfo)
bool isAccepted(int matchInfo)
bool isMerged(int matchInfo)
bool isOther(int matchInfo)
@ SecVtx
Secondary vertex.
TruthVertex_v1 TruthVertex
Typedef to implementation.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.
TruthParticle_v1 TruthParticle
Typedef to implementation.
cached pointers to the histograms of one reco vertex category