Pandora
Pandora source code navigator
|
PFParticleMonitoring class. More...
Public Member Functions | |
PFParticleMonitoring (fhicl::ParameterSet const &pset) | |
Constructor. | |
virtual | ~PFParticleMonitoring () |
Destructor. | |
void | beginJob () |
void | endJob () |
void | analyze (const art::Event &evt) |
void | reconfigure (fhicl::ParameterSet const &pset) |
Private Types | |
typedef std::set< art::Ptr< recob::PFParticle > > | PFParticleSet |
typedef std::set< art::Ptr< simb::MCParticle > > | MCParticleSet |
typedef std::set< art::Ptr< simb::MCTruth > > | MCTruthSet |
Private Member Functions | |
void | BuildTrueNeutrinoHitMaps (const MCTruthToMCParticles &truthToParticles, const MCParticlesToHits &trueParticlesToHits, MCTruthToHits &trueNeutrinosToHits, HitsToMCTruth &trueHitsToNeutrinos) const |
Build mapping from true neutrinos to hits. | |
void | BuildRecoNeutrinoHitMaps (const PFParticleMap &recoParticleMap, const PFParticlesToHits &recoParticlesToHits, PFParticlesToHits &recoNeutrinosToHits, HitsToPFParticles &recoHitsToNeutrinos) const |
Build mapping from reconstructed neutrinos to hits. | |
void | GetRecoToTrueMatches (const PFParticlesToHits &recoNeutrinosToHits, const HitsToMCTruth &trueHitsToNeutrinos, MCTruthToPFParticles &matchedNeutrinos, MCTruthToHits &matchedNeutrinoHits) const |
Perform matching between true and reconstructed neutrino events. | |
void | GetRecoToTrueMatches (const PFParticlesToHits &recoNeutrinosToHits, const HitsToMCTruth &trueHitsToNeutrinos, MCTruthToPFParticles &matchedNeutrinos, MCTruthToHits &matchedNeutrinoHits, PFParticleSet &recoVeto, MCTruthSet &trueVeto) const |
Perform matching between true and reconstructed neutrino events. | |
void | GetRecoToTrueMatches (const PFParticlesToHits &recoParticlesToHits, const HitsToMCParticles &trueHitsToParticles, MCParticlesToPFParticles &matchedParticles, MCParticlesToHits &matchedHits) const |
Perform matching between true and reconstructed particles. | |
void | GetRecoToTrueMatches (const PFParticlesToHits &recoParticlesToHits, const HitsToMCParticles &trueHitsToParticles, MCParticlesToPFParticles &matchedParticles, MCParticlesToHits &matchedHits, PFParticleSet &recoVeto, MCParticleSet &trueVeto) const |
Perform matching between true and reconstructed particles. | |
int | CountHitsByType (const int view, const HitVector &hitVector) const |
Count the number of reconstructed hits in a given wire plane. | |
void | GetStartAndEndPoints (const art::Ptr< simb::MCParticle > trueParticle, int &startT, int &endT) const |
Find the start and end points of the true particle in the active region of detector. | |
double | GetLength (const art::Ptr< simb::MCParticle > trueParticle, const int startT, const int endT) const |
Find the length of the true particle trajectory through the active region of the detector. | |
PFParticleMonitoring class.
Definition at line 24 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 45 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 46 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 44 of file PFParticleMonitoring_module.cc.
lar_pandora::PFParticleMonitoring::PFParticleMonitoring | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
pset |
Definition at line 300 of file PFParticleMonitoring_module.cc.
|
virtual |
Destructor.
Definition at line 308 of file PFParticleMonitoring_module.cc.
void lar_pandora::PFParticleMonitoring::analyze | ( | const art::Event & | evt | ) |
Definition at line 414 of file PFParticleMonitoring_module.cc.
void lar_pandora::PFParticleMonitoring::beginJob | ( | ) |
Definition at line 332 of file PFParticleMonitoring_module.cc.
|
private |
Build mapping from reconstructed neutrinos to hits.
recoParticleMap | the input mapping from reconstructed particle and particle ID |
recoParticlesToHits | the input mapping from reconstructed particles to hits |
recoNeutrinosToHits | the output mapping from reconstructed particles to hits |
recoHitsToNeutrinos | the output mapping from reconstructed hits to particles |
Definition at line 1172 of file PFParticleMonitoring_module.cc.
|
private |
Build mapping from true neutrinos to hits.
truthToParticles | the input mapping from true event to true particles |
trueParticlesToHits | the input mapping from true particles to hits |
trueNeutrinosToHits | the output mapping from trues event to hits |
trueHitsToNeutrinos | the output mappign from hits to true events |
Definition at line 1138 of file PFParticleMonitoring_module.cc.
|
private |
Count the number of reconstructed hits in a given wire plane.
view | the wire plane ID |
hitVector | the input vector of reconstructed hits |
Definition at line 1396 of file PFParticleMonitoring_module.cc.
void lar_pandora::PFParticleMonitoring::endJob | ( | ) |
Definition at line 410 of file PFParticleMonitoring_module.cc.
|
private |
Find the length of the true particle trajectory through the active region of the detector.
trueParticle | the input true particle |
startT | the true start point |
endT | the true end point |
Definition at line 1440 of file PFParticleMonitoring_module.cc.
|
private |
Perform matching between true and reconstructed neutrino events.
recoNeutrinosToHits | the mapping from reconstructed neutrino events to hits |
trueHitsToNeutrinos | the mapping from hits to true neutrino events |
matchedNeutrinos | the output matches between reconstructed and true neutrinos |
matchedNeutrinoHits | the output matches between reconstructed neutrinos and hits |
Definition at line 1204 of file PFParticleMonitoring_module.cc.
|
private |
Perform matching between true and reconstructed neutrino events.
recoNeutrinosToHits | the mapping from reconstructed neutrino events to hits |
trueHitsToNeutrinos | the mapping from hits to true neutrino events |
matchedNeutrinos | the output matches between reconstructed and true neutrinos |
matchedNeutrinoHits | the output matches between reconstructed neutrinos and hits |
recoVeto | the veto list for reconstructed particles |
trueVeto | the veto list for true particles |
Definition at line 1222 of file PFParticleMonitoring_module.cc.
|
private |
Perform matching between true and reconstructed particles.
recoParticlesToHits | the mapping from reconstructed particles to hits |
trueHitsToParticles | the mapping from hits to true particles |
matchedParticles | the output matches between reconstructed and true particles |
matchedHits | the output matches between reconstructed particles and hits |
Definition at line 1302 of file PFParticleMonitoring_module.cc.
|
private |
Perform matching between true and reconstructed particles.
recoParticlesToHits | the mapping from reconstructed particles to hits |
trueHitsToParticles | the mapping from hits to true particles |
matchedParticles | the output matches between reconstructed and true particles |
matchedHits | the output matches between reconstructed particles and hits |
recoVeto | the veto list for reconstructed particles |
trueVeto | the veto list for true particles |
Definition at line 1316 of file PFParticleMonitoring_module.cc.
|
private |
Find the start and end points of the true particle in the active region of detector.
trueParticle | the input true particle |
startT | the true start point |
endT | the true end point |
Definition at line 1412 of file PFParticleMonitoring_module.cc.
void lar_pandora::PFParticleMonitoring::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 312 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 256 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 255 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 250 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 220 of file PFParticleMonitoring_module.cc.
|
private |
Whether to check if the input file contains real data before accessing MC information.
Definition at line 261 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 167 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 251 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 247 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 168 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 213 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 214 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 215 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 210 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 211 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 212 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 216 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 182 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 181 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 179 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 180 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 217 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 176 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 177 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 175 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 178 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 218 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 206 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 207 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 208 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 209 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 173 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 225 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 235 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 236 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 237 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 223 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 227 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 228 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 229 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 170 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 171 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 224 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 231 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 232 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 233 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 172 of file PFParticleMonitoring_module.cc.
|
private |
Reconstructed hits which don't belong to any true particle - "missing".
Definition at line 242 of file PFParticleMonitoring_module.cc.
|
private |
True hits which don't belong to any reconstructed particle - "available".
Definition at line 240 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 249 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 200 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 201 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 202 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 197 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 198 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 199 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 188 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 189 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 190 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 203 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 185 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 186 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 184 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 187 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 204 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 192 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 193 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 194 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 195 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 196 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 164 of file PFParticleMonitoring_module.cc.
|
private |
switch for print statements (TODO: use message service!)
Definition at line 259 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 221 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 258 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 166 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 245 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 244 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 248 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 254 of file PFParticleMonitoring_module.cc.
|
private |
Definition at line 253 of file PFParticleMonitoring_module.cc.