![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "AssignLabels.h"
Public Member Functions | |
| AssignLabels () | |
| Default constructor. More... | |
| InteractionType | GetInteractionType (simb::MCNeutrino &truth) const |
| InteractionType | GetInteractionTypeFromSlice (int nuPDG, bool nuCCNC, int nuMode) const |
| void | GetTopology (const art::Ptr< simb::MCTruth > truth, unsigned int nTopologyHits) |
| void | PrintTopology () |
| unsigned short | GetNProtons () const |
| unsigned short | GetNPions () const |
| unsigned short | GetNPizeros () const |
| unsigned short | GetNNeutrons () const |
| short | GetPDG () const |
| unsigned short | TauMode () const |
| bool | IsAntineutrino () const |
| unsigned short | GetTopologyType () const |
| unsigned short | GetTopologyTypeAlt () const |
| unsigned short | GetProtoDUNEBeamInteractionType (const simb::MCParticle &particle) const |
Private Member Functions | |
| unsigned int | GetNeutralDaughterHitsRecursive (const simb::MCParticle &particle) const |
| int | GetProcessKey (std::string process) const |
Private Attributes | |
| unsigned short | nProton |
| unsigned short | nPion |
| unsigned short | nPizero |
| unsigned short | nNeutron |
| short | pdgCode |
| unsigned short | tauMode |
Definition at line 18 of file AssignLabels.h.
| lcvn::AssignLabels::AssignLabels | ( | ) |
| InteractionType lcvn::AssignLabels::GetInteractionType | ( | simb::MCNeutrino & | truth | ) | const |
Get Interaction_t from pdg, mode and iscc. Setting pdg and mode to zero triggers cosmic ray
Definition at line 24 of file AssignLabels.cxx.
References util::abs(), simb::MCNeutrino::CCNC(), simb::kCC, simb::kDIS, lcvn::kNC, lcvn::kNueDIS, lcvn::kNuElectronElastic, simb::kNuElectronElastic, lcvn::kNueOther, lcvn::kNueQE, lcvn::kNueRes, lcvn::kNumuDIS, lcvn::kNumuOther, lcvn::kNumuQE, lcvn::kNumuRes, lcvn::kNutauDIS, lcvn::kNutauOther, lcvn::kNutauQE, lcvn::kNutauRes, simb::kQE, simb::kRes, simb::MCNeutrino::Mode(), simb::MCNeutrino::Nu(), and simb::MCParticle::PdgCode().
Referenced by lcvn::LArNuCVNZlibMaker::analyze().
| InteractionType lcvn::AssignLabels::GetInteractionTypeFromSlice | ( | int | nuPDG, |
| bool | nuCCNC, | ||
| int | nuMode | ||
| ) | const |
Definition at line 64 of file AssignLabels.cxx.
References util::abs(), simb::kDIS, lcvn::kNC, lcvn::kNueDIS, lcvn::kNuElectronElastic, simb::kNuElectronElastic, lcvn::kNueOther, lcvn::kNueQE, lcvn::kNueRes, lcvn::kNumuDIS, lcvn::kNumuOther, lcvn::kNumuQE, lcvn::kNumuRes, lcvn::kNutauDIS, lcvn::kNutauOther, lcvn::kNutauQE, lcvn::kNutauRes, simb::kQE, and simb::kRes.
|
private |
Definition at line 350 of file AssignLabels.cxx.
References d, simb::MCParticle::Daughter(), simb::MCParticle::NumberDaughters(), simb::MCParticle::PdgCode(), util::size(), simb::MCParticle::TrackId(), cheat::ParticleInventoryService::TrackIdToParticle_P(), and cheat::BackTrackerService::TrackIdToSimIDEs_Ps().
Referenced by IsAntineutrino().
|
inline |
Definition at line 32 of file AssignLabels.h.
References nNeutron.
Referenced by lcvn::LArNuCVNZlibMaker::analyze().
|
inline |
Definition at line 30 of file AssignLabels.h.
References nPion.
Referenced by lcvn::LArNuCVNZlibMaker::analyze().
|
inline |
Definition at line 31 of file AssignLabels.h.
References nPizero.
Referenced by lcvn::LArNuCVNZlibMaker::analyze().
|
inline |
Definition at line 29 of file AssignLabels.h.
References nProton.
Referenced by lcvn::LArNuCVNZlibMaker::analyze().
|
inline |
Definition at line 33 of file AssignLabels.h.
References pdgCode.
Referenced by lcvn::LArNuCVNZlibMaker::analyze().
|
private |
Definition at line 305 of file AssignLabels.cxx.
Referenced by GetProtoDUNEBeamInteractionType(), and IsAntineutrino().
| unsigned short lcvn::AssignLabels::GetProtoDUNEBeamInteractionType | ( | const simb::MCParticle & | particle | ) | const |
Definition at line 252 of file AssignLabels.cxx.
References util::abs(), simb::MCParticle::Daughter(), simb::MCParticle::EndProcess(), GetProcessKey(), simb::MCParticle::NumberDaughters(), simb::MCParticle::PdgCode(), and cheat::ParticleInventoryService::TrackIdToParticle_P().
Referenced by IsAntineutrino().
| void lcvn::AssignLabels::GetTopology | ( | const art::Ptr< simb::MCTruth > | truth, |
| unsigned int | nTopologyHits = 0 |
||
| ) |
Definition at line 103 of file AssignLabels.cxx.
References util::abs(), simb::MCNeutrino::CCNC(), d, simb::MCParticle::Daughter(), simb::MCTruth::GetNeutrino(), simb::MCTruth::GetParticle(), simb::kCC, lcvn::kNotNutau, lcvn::kNutauE, lcvn::kNutauHad, lcvn::kNutauMu, cheat::ParticleInventoryService::MCTruthToParticles_Ps(), simb::MCParticle::Mother(), nNeutron, simb::MCTruth::NParticles(), nPion, nPizero, nProton, simb::MCNeutrino::Nu(), simb::MCParticle::NumberDaughters(), part, pdgCode, simb::MCParticle::PdgCode(), util::size(), simb::MCParticle::StatusCode(), tauMode, simb::MCParticle::TrackId(), and cheat::BackTrackerService::TrackIdToSimIDEs_Ps().
Referenced by lcvn::LArNuCVNZlibMaker::analyze().
| unsigned short lcvn::AssignLabels::GetTopologyType | ( | ) | const |
Definition at line 223 of file AssignLabels.cxx.
References util::abs(), lcvn::kNutauE, lcvn::kNutauHad, lcvn::kNutauMu, lcvn::kTopNC, lcvn::kTopNue, lcvn::kTopNumu, lcvn::kTopNutauE, lcvn::kTopNutauHad, lcvn::kTopNutauMu, pdgCode, and tauMode.
Referenced by lcvn::LArNuCVNZlibMaker::analyze(), IsAntineutrino(), and PrintTopology().
| unsigned short lcvn::AssignLabels::GetTopologyTypeAlt | ( | ) | const |
Definition at line 237 of file AssignLabels.cxx.
References util::abs(), lcvn::kNutauE, lcvn::kNutauHad, lcvn::kNutauMu, lcvn::kTopNCLike, lcvn::kTopNueLike, lcvn::kTopNumuLike, lcvn::kTopNutauLike, pdgCode, and tauMode.
Referenced by lcvn::LArNuCVNZlibMaker::analyze(), IsAntineutrino(), and PrintTopology().
|
inline |
Definition at line 35 of file AssignLabels.h.
References GetNeutralDaughterHitsRecursive(), GetProcessKey(), GetProtoDUNEBeamInteractionType(), GetTopologyType(), GetTopologyTypeAlt(), and pdgCode.
| void lcvn::AssignLabels::PrintTopology | ( | ) |
Definition at line 203 of file AssignLabels.cxx.
References GetTopologyType(), GetTopologyTypeAlt(), nNeutron, nPion, nPizero, nProton, and pdgCode.
|
inline |
|
private |
Definition at line 51 of file AssignLabels.h.
Referenced by GetNNeutrons(), GetTopology(), and PrintTopology().
|
private |
Definition at line 49 of file AssignLabels.h.
Referenced by GetNPions(), GetTopology(), and PrintTopology().
|
private |
Definition at line 50 of file AssignLabels.h.
Referenced by GetNPizeros(), GetTopology(), and PrintTopology().
|
private |
Definition at line 48 of file AssignLabels.h.
Referenced by GetNProtons(), GetTopology(), and PrintTopology().
|
private |
Definition at line 52 of file AssignLabels.h.
Referenced by GetPDG(), GetTopology(), GetTopologyType(), GetTopologyTypeAlt(), IsAntineutrino(), and PrintTopology().
|
private |
Definition at line 53 of file AssignLabels.h.
Referenced by GetTopology(), GetTopologyType(), GetTopologyTypeAlt(), and TauMode().