LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "LArPandoraShowerCheatingAlg.h"
Public Member Functions | |
LArPandoraShowerCheatingAlg (const fhicl::ParameterSet &pset) | |
std::map< int, const simb::MCParticle * > | GetTrueParticleMap () const |
std::map< int, std::vector< int > > | GetTrueChain (std::map< int, const simb::MCParticle * > &trueParticles) const |
void | CheatDebugEVD (detinfo::DetectorClocksData const &clockData, const simb::MCParticle *trueParticle, art::Event const &Event, reco::shower::ShowerElementHolder &ShowerEleHolder, const art::Ptr< recob::PFParticle > &pfparticle) const |
int | TrueParticleID (detinfo::DetectorClocksData const &clockData, const art::Ptr< recob::Hit > &hit) const |
std::pair< int, double > | TrueParticleIDFromTrueChain (detinfo::DetectorClocksData const &clockData, std::map< int, std::vector< int >> const &ShowersMothers, std::vector< art::Ptr< recob::Hit >> const &hits, int planeid) const |
Private Attributes | |
shower::LArPandoraShowerAlg | fLArPandoraShowerAlg |
art::InputTag | fHitModuleLabel |
art::InputTag | fPFParticleLabel |
art::ServiceHandle< cheat::ParticleInventoryService > | particleInventory |
art::ServiceHandle< art::TFileService > | tfs |
std::string | fShowerStartPositionInputLabel |
std::string | fShowerDirectionInputLabel |
std::string | fInitialTrackSpacePointsInputLabel |
Definition at line 37 of file LArPandoraShowerCheatingAlg.h.
shower::LArPandoraShowerCheatingAlg::LArPandoraShowerCheatingAlg | ( | const fhicl::ParameterSet & | pset | ) |
Definition at line 17 of file LArPandoraShowerCheatingAlg.cxx.
void shower::LArPandoraShowerCheatingAlg::CheatDebugEVD | ( | detinfo::DetectorClocksData const & | clockData, |
const simb::MCParticle * | trueParticle, | ||
art::Event const & | Event, | ||
reco::shower::ShowerElementHolder & | ShowerEleHolder, | ||
const art::Ptr< recob::PFParticle > & | pfparticle | ||
) | const |
Definition at line 74 of file LArPandoraShowerCheatingAlg.cxx.
References util::abs(), reco::shower::ShowerElementHolder::CheckElement(), art::Event::event(), fHitModuleLabel, art::fill_ptr_vector(), fInitialTrackSpacePointsInputLabel, fLArPandoraShowerAlg, fPFParticleLabel, fShowerDirectionInputLabel, fShowerStartPositionInputLabel, reco::shower::ShowerElementHolder::GetElement(), art::ProductRetriever::getValidHandle(), hits(), proj, art::Event::run(), recob::PFParticle::Self(), shower::LArPandoraShowerAlg::SpacePointProjection(), art::Event::subRun(), tfs, simb::MCParticle::TrackId(), TrueParticleID(), x, x_max, x_min, y, and z.
Referenced by ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement().
std::map< int, std::vector< int > > shower::LArPandoraShowerCheatingAlg::GetTrueChain | ( | std::map< int, const simb::MCParticle * > & | trueParticles | ) | const |
Definition at line 44 of file LArPandoraShowerCheatingAlg.cxx.
References util::abs(), simb::MCParticle::Mother(), simb::MCParticle::PdgCode(), and simb::MCParticle::TrackId().
Referenced by ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), and ShowerRecoTools::ShowerDirectionCheater::CalculateElement().
std::map< int, const simb::MCParticle * > shower::LArPandoraShowerCheatingAlg::GetTrueParticleMap | ( | ) | const |
Definition at line 26 of file LArPandoraShowerCheatingAlg.cxx.
References sim::ParticleList::begin(), sim::ParticleList::end(), particleInventory, cheat::ParticleInventoryService::ParticleList(), and simb::MCParticle::TrackId().
Referenced by ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), and ShowerRecoTools::ShowerDirectionCheater::CalculateElement().
int shower::LArPandoraShowerCheatingAlg::TrueParticleID | ( | detinfo::DetectorClocksData const & | clockData, |
const art::Ptr< recob::Hit > & | hit | ||
) | const |
Definition at line 266 of file LArPandoraShowerCheatingAlg.cxx.
References cheat::BackTrackerService::HitToTrackIDEs().
Referenced by ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), and CheatDebugEVD().
std::pair< int, double > shower::LArPandoraShowerCheatingAlg::TrueParticleIDFromTrueChain | ( | detinfo::DetectorClocksData const & | clockData, |
std::map< int, std::vector< int >> const & | ShowersMothers, | ||
std::vector< art::Ptr< recob::Hit >> const & | hits, | ||
int | planeid | ||
) | const |
Definition at line 284 of file LArPandoraShowerCheatingAlg.cxx.
References util::abs(), util::end(), hits(), cheat::BackTrackerService::HitToTrackIDEs(), particleInventory, geo::PlaneID::Plane, lar::dump::vector(), and geo::WireID::WireID().
Referenced by ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), and ShowerRecoTools::ShowerDirectionCheater::CalculateElement().
|
private |
Definition at line 62 of file LArPandoraShowerCheatingAlg.h.
Referenced by CheatDebugEVD().
|
private |
Definition at line 69 of file LArPandoraShowerCheatingAlg.h.
Referenced by CheatDebugEVD().
|
private |
Definition at line 60 of file LArPandoraShowerCheatingAlg.h.
Referenced by CheatDebugEVD().
|
private |
Definition at line 63 of file LArPandoraShowerCheatingAlg.h.
Referenced by CheatDebugEVD().
|
private |
Definition at line 68 of file LArPandoraShowerCheatingAlg.h.
Referenced by CheatDebugEVD().
|
private |
Definition at line 67 of file LArPandoraShowerCheatingAlg.h.
Referenced by CheatDebugEVD().
|
private |
Definition at line 64 of file LArPandoraShowerCheatingAlg.h.
Referenced by GetTrueParticleMap(), and TrueParticleIDFromTrueChain().
|
private |
Definition at line 65 of file LArPandoraShowerCheatingAlg.h.
Referenced by CheatDebugEVD().