#include <BackTrackerCore.h>
Protected Attributes | |
bool | fHasMC |
bool | fHasHits |
bool | fHasCalHits |
bool | fHasTracks |
bool | fHasClusters |
int | fSTFU |
const detinfo::DetectorClocks * | fClocks |
Detector clock information. More... | |
const geo::GeometryCore * | fGeo |
pointer to the geometry More... | |
bool | fDisableRebuild |
for switching off backtracker's rebuild of the MCParticle tables More... | |
std::string | fG4ModuleLabel |
label for geant4 module More... | |
std::string | fRawTPCDataLabel |
label for TPC readout module More... | |
std::string | fRawCaloDataLabel |
label for ECAL readout module More... | |
std::string | fRawCaloDataECALInstance |
instance name for the ECAL raw hits More... | |
double | fECALtimeResolution |
time resolution for hits in ECAL, nsec. More... | |
double | fMinHitEnergyFraction |
min frac of ionization a track has to count in a TPC hit More... | |
double | fMinCaloHitEnergyFrac |
min frac of ionization a track has to count in a CaloHit More... | |
std::string | fTrackLabel |
label for final track producing module More... | |
std::string | fTPCClusterLabel |
label for TPCCluster producing module More... | |
double | fTrackFracMCP |
min frac of ionization in a track for matching to an MCParticle More... | |
std::string | fClusterLabel |
label for ECAL cluster producing module More... | |
std::string | fClusterECALInstance |
instance name for the ECAL clusters More... | |
double | fClusterFracMCP |
min frac of ionization in a cluster for matching to an MCParticle More... | |
sim::ParticleList | fParticleList |
Maps MCParticle::TrackId() to same MCParticle. More... | |
std::vector< art::Ptr< simb::MCTruth > > | fMCTruthList |
all the MCTruths for the event More... | |
std::unordered_map< int, int > | fTrackIDToMCTruthIndex |
std::unordered_map< int, int > * | fECALTrackToTPCTrack |
results of previous FindTPCEve calls More... | |
double | fInverseVelocity |
inverse drift velocity More... | |
double | fLongDiffConst |
longitudinal diffusion constant More... | |
bool | fSplitEDeps |
use weights from PRFs to break true energy deposits into channel specific contributions More... | |
std::vector< std::vector< std::pair< const sdp::EnergyDeposit *, float const > > > | fChannelToEDepCol |
convenience collections of EnergyDeposits for each channel More... | |
std::unordered_map< raw::CellID_t, std::vector< const sdp::CaloDeposit * > > | fCellIDToEDepCol |
convenience collections of EnergyDeposit for each cell More... | |
std::unordered_map< rec::IDNumber, std::vector< art::Ptr< rec::Hit > > > | fTrackIDToHits |
Reco track ID to track's hits. More... | |
std::unordered_map< rec::IDNumber, std::vector< const rec::TPCCluster * > > | fTrackIDToClusters |
Reco track ID to track's clusters. More... | |
std::unordered_map< rec::IDNumber, std::vector< art::Ptr< rec::Hit > > > | fTPCClusterIDToHits |
Reco TPC cluster ID to cluster's hits. More... | |
std::unordered_map< rec::IDNumber, std::vector< art::Ptr< rec::CaloHit > > > | fClusterIDToCaloHits |
Reco ECAL cluster ID to CaloHits. More... | |
Private Member Functions | |
std::vector< HitIDE > | ChannelToHitIDEs (raw::Channel_t const &channel, double const start, double const stop) const |
std::vector< CalIDE > | CellIDToCalIDEs (raw::CellID_t const &cellID, float const time) const |
std::vector< simb::MCParticle * > | MCPartsInCluster (rec::Cluster *const c) |
TLorentzVector | EnergyDepositToMomentum (const int &trackID, const TLorentzVector &position, size_t &startTrajIndex) const |
Definition at line 111 of file BackTrackerCore.h.
|
explicit |
Definition at line 29 of file BackTrackerCore.cxx.
gar::cheat::BackTrackerCore::~BackTrackerCore | ( | ) |
Definition at line 62 of file BackTrackerCore.cxx.
|
inline |
Definition at line 118 of file BackTrackerCore.h.
std::pair< double, double > gar::cheat::BackTrackerCore::CaloHitEfficiency | ( | simb::MCParticle *const | p, |
std::vector< art::Ptr< rec::CaloHit >> const & | hits, | ||
std::vector< art::Ptr< rec::CaloHit >> const & | allhits, | ||
bool | weightByCharge = false |
||
) | const |
Definition at line 680 of file BackTrackerCore.cxx.
std::pair< double, double > gar::cheat::BackTrackerCore::CaloHitPurity | ( | simb::MCParticle *const | p, |
std::vector< art::Ptr< rec::CaloHit >> const & | hits, | ||
bool | weightByCharge = false |
||
) | const |
Definition at line 637 of file BackTrackerCore.cxx.
std::vector< CalIDE > gar::cheat::BackTrackerCore::CaloHitToCalIDEs | ( | art::Ptr< rec::CaloHit > const & | hit | ) | const |
Definition at line 511 of file BackTrackerCore.cxx.
std::vector< CalIDE > gar::cheat::BackTrackerCore::CaloHitToCalIDEs | ( | rec::CaloHit const & | hit | ) | const |
Definition at line 525 of file BackTrackerCore.cxx.
|
private |
Definition at line 573 of file BackTrackerCore.cxx.
|
private |
Definition at line 298 of file BackTrackerCore.cxx.
bool gar::cheat::BackTrackerCore::ClusterCreatedMCParticle | ( | simb::MCParticle *const | p, |
rec::Cluster *const | c | ||
) |
Definition at line 1013 of file BackTrackerCore.cxx.
std::vector< art::Ptr< rec::CaloHit > > const gar::cheat::BackTrackerCore::ClusterToCaloHits | ( | rec::Cluster *const | c | ) |
Definition at line 919 of file BackTrackerCore.cxx.
std::vector< std::pair< simb::MCParticle *, float > > gar::cheat::BackTrackerCore::ClusterToMCParticles | ( | rec::Cluster *const | c | ) |
Definition at line 933 of file BackTrackerCore.cxx.
|
private |
Definition at line 1066 of file BackTrackerCore.cxx.
simb::MCParticle * gar::cheat::BackTrackerCore::FindEve | ( | simb::MCParticle *const | p | ) | const |
Definition at line 95 of file BackTrackerCore.cxx.
|
inline |
Definition at line 146 of file BackTrackerCore.h.
simb::MCParticle * gar::cheat::BackTrackerCore::FindTPCEve | ( | simb::MCParticle *const | p | ) | const |
Definition at line 108 of file BackTrackerCore.cxx.
simb::MCParticle * gar::cheat::BackTrackerCore::FindTPCEve | ( | int const | trackId | ) | const |
Definition at line 141 of file BackTrackerCore.cxx.
|
inline |
Definition at line 137 of file BackTrackerCore.h.
|
inline |
Definition at line 125 of file BackTrackerCore.h.
|
inline |
Definition at line 127 of file BackTrackerCore.h.
|
inline |
Definition at line 124 of file BackTrackerCore.h.
|
inline |
Definition at line 123 of file BackTrackerCore.h.
|
inline |
Definition at line 126 of file BackTrackerCore.h.
std::pair< double, double > gar::cheat::BackTrackerCore::HitEfficiency | ( | simb::MCParticle *const | p, |
std::vector< art::Ptr< rec::Hit > > const & | hits, | ||
std::vector< art::Ptr< rec::Hit > > const & | allhits, | ||
bool | weightByCharge = false |
||
) | const |
Definition at line 449 of file BackTrackerCore.cxx.
std::pair< double, double > gar::cheat::BackTrackerCore::HitPurity | ( | simb::MCParticle *const | p, |
std::vector< art::Ptr< rec::Hit >> const & | hits, | ||
bool | weightByCharge = false |
||
) | const |
Definition at line 406 of file BackTrackerCore.cxx.
std::vector< HitIDE > gar::cheat::BackTrackerCore::HitToHitIDEs | ( | art::Ptr< rec::Hit > const & | hit | ) | const |
Definition at line 225 of file BackTrackerCore.cxx.
std::vector< HitIDE > gar::cheat::BackTrackerCore::HitToHitIDEs | ( | rec::Hit const & | hit | ) | const |
Definition at line 241 of file BackTrackerCore.cxx.
bool gar::cheat::BackTrackerCore::IsForebearOf | ( | simb::MCParticle *const | forebear, |
simb::MCParticle *const | afterbear | ||
) | const |
Definition at line 176 of file BackTrackerCore.cxx.
bool gar::cheat::BackTrackerCore::MCParticleCreatedCluster | ( | simb::MCParticle *const | p, |
rec::Cluster *const | c | ||
) |
Definition at line 1025 of file BackTrackerCore.cxx.
std::vector< art::Ptr< rec::Cluster > > gar::cheat::BackTrackerCore::MCParticleToClusters | ( | simb::MCParticle *const | p, |
std::vector< art::Ptr< rec::Cluster >> const & | clusters | ||
) |
Definition at line 987 of file BackTrackerCore.cxx.
std::vector< art::Ptr< rec::Track > > gar::cheat::BackTrackerCore::MCParticleToTracks | ( | simb::MCParticle *const | p, |
std::vector< art::Ptr< rec::Track >> const & | tracks | ||
) |
Definition at line 890 of file BackTrackerCore.cxx.
|
private |
Definition at line 1039 of file BackTrackerCore.cxx.
std::vector< art::Ptr< rec::CaloHit > > gar::cheat::BackTrackerCore::ParticleToCaloHits | ( | simb::MCParticle *const | p, |
std::vector< art::Ptr< rec::CaloHit >> const & | allhits | ||
) | const |
Definition at line 541 of file BackTrackerCore.cxx.
std::vector< art::Ptr< rec::Hit > > gar::cheat::BackTrackerCore::ParticleToHits | ( | simb::MCParticle *const | p, |
std::vector< art::Ptr< rec::Hit >> const & | allhits, | ||
bool | checkNeutrals = false |
||
) | const |
Definition at line 259 of file BackTrackerCore.cxx.
art::Ptr< simb::MCTruth > const gar::cheat::BackTrackerCore::ParticleToMCTruth | ( | simb::MCParticle *const | p | ) | const |
Definition at line 204 of file BackTrackerCore.cxx.
std::vector< art::Ptr< rec::Hit > > const gar::cheat::BackTrackerCore::TPCClusterToHits | ( | rec::TPCCluster *const | clust | ) |
Definition at line 763 of file BackTrackerCore.cxx.
simb::MCParticle * gar::cheat::BackTrackerCore::TrackIDToParticle | ( | int const & | id | ) | const |
Definition at line 69 of file BackTrackerCore.cxx.
std::vector< const rec::TPCCluster * > const gar::cheat::BackTrackerCore::TrackToClusters | ( | rec::Track *const | t | ) |
Definition at line 776 of file BackTrackerCore.cxx.
std::vector< art::Ptr< rec::Hit > > const gar::cheat::BackTrackerCore::TrackToHits | ( | rec::Track *const | t | ) |
Definition at line 742 of file BackTrackerCore.cxx.
std::vector< std::pair< simb::MCParticle *, float > > gar::cheat::BackTrackerCore::TrackToMCParticles | ( | rec::Track *const | t | ) |
Definition at line 823 of file BackTrackerCore.cxx.
double gar::cheat::BackTrackerCore::TrackToTotalEnergy | ( | rec::Track *const | t | ) |
Definition at line 788 of file BackTrackerCore.cxx.
|
protected |
convenience collections of EnergyDeposit for each cell
Definition at line 320 of file BackTrackerCore.h.
|
protected |
convenience collections of EnergyDeposits for each channel
Definition at line 316 of file BackTrackerCore.h.
|
protected |
Detector clock information.
Definition at line 287 of file BackTrackerCore.h.
|
protected |
instance name for the ECAL clusters
Definition at line 302 of file BackTrackerCore.h.
|
protected |
min frac of ionization in a cluster for matching to an MCParticle
Definition at line 303 of file BackTrackerCore.h.
|
protected |
Reco ECAL cluster ID to CaloHits.
Definition at line 336 of file BackTrackerCore.h.
|
protected |
label for ECAL cluster producing module
Definition at line 301 of file BackTrackerCore.h.
|
protected |
for switching off backtracker's rebuild of the MCParticle tables
Definition at line 290 of file BackTrackerCore.h.
|
protected |
time resolution for hits in ECAL, nsec.
Definition at line 295 of file BackTrackerCore.h.
|
protected |
results of previous FindTPCEve calls
Definition at line 309 of file BackTrackerCore.h.
|
protected |
label for geant4 module
Definition at line 291 of file BackTrackerCore.h.
|
protected |
pointer to the geometry
Definition at line 288 of file BackTrackerCore.h.
|
protected |
Definition at line 284 of file BackTrackerCore.h.
|
protected |
Definition at line 284 of file BackTrackerCore.h.
|
protected |
Definition at line 284 of file BackTrackerCore.h.
|
protected |
Definition at line 284 of file BackTrackerCore.h.
|
protected |
Definition at line 284 of file BackTrackerCore.h.
|
protected |
inverse drift velocity
Definition at line 311 of file BackTrackerCore.h.
|
protected |
longitudinal diffusion constant
Definition at line 312 of file BackTrackerCore.h.
|
protected |
all the MCTruths for the event
Definition at line 306 of file BackTrackerCore.h.
|
protected |
min frac of ionization a track has to count in a CaloHit
Definition at line 297 of file BackTrackerCore.h.
|
protected |
min frac of ionization a track has to count in a TPC hit
Definition at line 296 of file BackTrackerCore.h.
|
protected |
Maps MCParticle::TrackId() to same MCParticle.
Definition at line 305 of file BackTrackerCore.h.
|
protected |
instance name for the ECAL raw hits
Definition at line 294 of file BackTrackerCore.h.
|
protected |
label for ECAL readout module
Definition at line 293 of file BackTrackerCore.h.
|
protected |
label for TPC readout module
Definition at line 292 of file BackTrackerCore.h.
|
protected |
use weights from PRFs to break true energy deposits into channel specific contributions
Definition at line 313 of file BackTrackerCore.h.
|
protected |
Definition at line 285 of file BackTrackerCore.h.
|
protected |
Reco TPC cluster ID to cluster's hits.
Definition at line 333 of file BackTrackerCore.h.
|
protected |
label for TPCCluster producing module
Definition at line 299 of file BackTrackerCore.h.
|
protected |
min frac of ionization in a track for matching to an MCParticle
Definition at line 300 of file BackTrackerCore.h.
|
protected |
Reco track ID to track's clusters.
Definition at line 328 of file BackTrackerCore.h.
|
protected |
Reco track ID to track's hits.
Definition at line 324 of file BackTrackerCore.h.
|
protected |
map of track ids to MCTruthList entry. Track Ids from MCParticle table in event store (no track ID <0)
Definition at line 307 of file BackTrackerCore.h.
|
protected |
label for final track producing module
Definition at line 298 of file BackTrackerCore.h.