LArPandoraInput class.
More...
#include "LArPandoraInput.h"
|
static void | CreatePandoraHits2D (const art::Event &evt, const Settings &settings, const LArDriftVolumeMap &driftVolumeMap, const HitVector &hitVector, IdToHitMap &idToHitMap) |
| Create the Pandora 2D hits from the ART hits.
|
|
static void | CreatePandoraLArTPCs (const Settings &settings, const LArDriftVolumeList &driftVolumeList) |
| Create pandora LArTPCs to represent the different drift volumes in use.
|
|
static void | CreatePandoraDetectorGaps (const Settings &settings, const LArDriftVolumeList &driftVolumeList, const LArDetectorGapList &listOfGaps) |
| Create pandora line gaps to cover dead regions between TPCs in a global drift volume approach.
|
|
static void | CreatePandoraReadoutGaps (const Settings &settings, const LArDriftVolumeMap &driftVolumeMap) |
| Create pandora line gaps to cover any (continuous regions of) bad channels.
|
|
static void | CreatePandoraMCParticles (const Settings &settings, const MCTruthToMCParticles &truthToParticles, const MCParticlesToMCTruth &particlesToTruth, const RawMCParticleVector &generatorMCParticleVector) |
| Create the Pandora MC particles from the MC particles.
|
|
static void | FindPrimaryParticles (const RawMCParticleVector &mcParticleVector, std::map< const simb::MCParticle, bool > &primaryMCParticleMap) |
| Find all primary MCParticles in a given vector of MCParticles.
|
|
static bool | IsPrimaryMCParticle (const art::Ptr< simb::MCParticle > &mcParticle, std::map< const simb::MCParticle, bool > &primaryMCParticleMap) |
| Check whether an MCParticle can be found in a given map.
|
|
static void | CreatePandoraMCLinks2D (const Settings &settings, const HitMap &hitMap, const HitsToTrackIDEs &hitToParticleMap) |
| Create links between the 2D hits and Pandora MC particles.
|
|
|
static void | GetTrueStartAndEndPoints (const Settings &settings, const art::Ptr< simb::MCParticle > &particle, int &startT, int &endT) |
| Loop over MC trajectory points and identify start and end points within the detector.
|
|
static void | GetTrueStartAndEndPoints (const geo::TPCID &ref_tpcid, const art::Ptr< simb::MCParticle > &particle, int &startT, int &endT) |
| Loop over MC trajectory points and identify start and end points within a given cryostat and TPC.
|
|
static float | GetTrueX0 (const art::Event &evt, const art::Ptr< simb::MCParticle > &particle, const int nT) |
| Use detector and time services to get a true X offset for a given trajectory point.
|
|
static double | GetMips (const detinfo::DetectorPropertiesData &detProp, const Settings &settings, const double hit_Charge, const geo::View_t hit_View) |
| Convert charge in ADCs to approximate MIPs.
|
|
static void | FillMCProcessMap (MCProcessMap &processMap) |
| Populate a map from MC process string to enumeration.
|
|
LArPandoraInput class.
Definition at line 29 of file LArPandoraInput.h.
◆ MCProcessMap
◆ CreatePandoraDetectorGaps()
Create pandora line gaps to cover dead regions between TPCs in a global drift volume approach.
- Parameters
-
settings | the settings |
driftVolumeList | the drift volume list |
listOfGaps | the list of gaps |
Definition at line 238 of file LArPandoraInput.cxx.
◆ CreatePandoraHits2D()
Create the Pandora 2D hits from the ART hits.
- Parameters
-
evt | art event being processed |
settings | the settings |
driftVolumeMap | the mapping from volume id to drift volume |
hits | the input list of ART hits for this event |
idToHitMap | to receive the mapping from Pandora hit ID to ART hit |
Definition at line 45 of file LArPandoraInput.cxx.
◆ CreatePandoraLArTPCs()
Create pandora LArTPCs to represent the different drift volumes in use.
- Parameters
-
settings | the settings |
driftVolumeList | the drift volume list |
Definition at line 183 of file LArPandoraInput.cxx.
◆ CreatePandoraMCLinks2D()
void lar_pandora::LArPandoraInput::CreatePandoraMCLinks2D |
( |
const Settings & |
settings, |
|
|
const HitMap & |
hitMap, |
|
|
const HitsToTrackIDEs & |
hitToParticleMap |
|
) |
| |
|
static |
Create links between the 2D hits and Pandora MC particles.
- Parameters
-
settings | the settings |
hitMap | mapping from Pandora hit addresses to ART hits |
hitToParticleMap | mapping from each ART hit to its underlying G4 track ID |
Definition at line 661 of file LArPandoraInput.cxx.
◆ CreatePandoraMCParticles()
Create the Pandora MC particles from the MC particles.
- Parameters
-
settings | the settings |
truthToParticles | mapping from MC truth to MC particles |
particlesToTruth | mapping from MC particles to MC truth |
Definition at line 373 of file LArPandoraInput.cxx.
◆ CreatePandoraReadoutGaps()
void lar_pandora::LArPandoraInput::CreatePandoraReadoutGaps |
( |
const Settings & |
settings, |
|
|
const LArDriftVolumeMap & |
driftVolumeMap |
|
) |
| |
|
static |
Create pandora line gaps to cover any (continuous regions of) bad channels.
- Parameters
-
settings | the settings |
driftVolumeMap | the mapping from volume id to drift volume |
Definition at line 284 of file LArPandoraInput.cxx.
◆ FillMCProcessMap()
void lar_pandora::LArPandoraInput::FillMCProcessMap |
( |
MCProcessMap & |
processMap | ) |
|
|
staticprivate |
Populate a map from MC process string to enumeration.
- Parameters
-
processMap | the output map from MC process string to enumeration |
Definition at line 817 of file LArPandoraInput.cxx.
◆ FindPrimaryParticles()
void lar_pandora::LArPandoraInput::FindPrimaryParticles |
( |
const RawMCParticleVector & |
mcParticleVector, |
|
|
std::map< const simb::MCParticle, bool > & |
primaryMCParticleMap |
|
) |
| |
|
static |
Find all primary MCParticles in a given vector of MCParticles.
- Parameters
-
mcParticleVector | vector of all MCParticles to consider |
primaryMCParticleMap | map containing primary MCParticles and bool indicating whether particle has been accounted for |
Definition at line 624 of file LArPandoraInput.cxx.
◆ GetMips()
double lar_pandora::LArPandoraInput::GetMips |
( |
const detinfo::DetectorPropertiesData & |
detProp, |
|
|
const Settings & |
settings, |
|
|
const double |
hit_Charge, |
|
|
const geo::View_t |
hit_View |
|
) |
| |
|
staticprivate |
Convert charge in ADCs to approximate MIPs.
- Parameters
-
settings | the settings |
hit_Charge | the input charge |
hit_View | the input view number |
Definition at line 792 of file LArPandoraInput.cxx.
◆ GetTrueStartAndEndPoints() [1/2]
void lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints |
( |
const geo::TPCID & |
ref_tpcid, |
|
|
const art::Ptr< simb::MCParticle > & |
particle, |
|
|
int & |
startT, |
|
|
int & |
endT |
|
) |
| |
|
staticprivate |
Loop over MC trajectory points and identify start and end points within a given cryostat and TPC.
- Parameters
-
cstat | the cryostat |
tpc | the TPC |
particle | the true particle |
startT | the first trajectory point in the detector |
endT | the last trajectory point in the detector |
Definition at line 740 of file LArPandoraInput.cxx.
◆ GetTrueStartAndEndPoints() [2/2]
void lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints |
( |
const Settings & |
settings, |
|
|
const art::Ptr< simb::MCParticle > & |
particle, |
|
|
int & |
startT, |
|
|
int & |
endT |
|
) |
| |
|
staticprivate |
Loop over MC trajectory points and identify start and end points within the detector.
- Parameters
-
settings | the settings |
particle | the true particle |
startT | the first trajectory point in the detector |
endT | the last trajectory point in the detector |
Definition at line 717 of file LArPandoraInput.cxx.
◆ GetTrueX0()
float lar_pandora::LArPandoraInput::GetTrueX0 |
( |
const art::Event & |
evt, |
|
|
const art::Ptr< simb::MCParticle > & |
particle, |
|
|
const int |
nT |
|
) |
| |
|
staticprivate |
Use detector and time services to get a true X offset for a given trajectory point.
- Parameters
-
evt | event currently being processing by art |
particle | the true particle |
nT | the trajectory point |
Definition at line 769 of file LArPandoraInput.cxx.
◆ IsPrimaryMCParticle()
bool lar_pandora::LArPandoraInput::IsPrimaryMCParticle |
( |
const art::Ptr< simb::MCParticle > & |
mcParticle, |
|
|
std::map< const simb::MCParticle, bool > & |
primaryMCParticleMap |
|
) |
| |
|
static |
Check whether an MCParticle can be found in a given map.
- Parameters
-
mcParticle | target MCParticle |
primaryMCParticleMap | map containing primary MCParticles and bool indicating whether particle has been accounted for |
Definition at line 637 of file LArPandoraInput.cxx.
The documentation for this class was generated from the following files: