Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_pandora::LArPandoraInput Class Reference

LArPandoraInput class. More...

#include "LArPandoraInput.h"

Classes

class  Settings
 Settings class. More...
 

Static Public Member Functions

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.
 

Private Types

typedef std::map< std::string, lar_content::MCProcessMCProcessMap
 

Static Private Member Functions

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.
 

Detailed Description

LArPandoraInput class.

Definition at line 29 of file LArPandoraInput.h.

Member Typedef Documentation

◆ MCProcessMap

Definition at line 143 of file LArPandoraInput.h.

Member Function Documentation

◆ CreatePandoraDetectorGaps()

void lar_pandora::LArPandoraInput::CreatePandoraDetectorGaps ( const Settings settings,
const LArDriftVolumeList driftVolumeList,
const LArDetectorGapList listOfGaps 
)
static

Create pandora line gaps to cover dead regions between TPCs in a global drift volume approach.

Parameters
settingsthe settings
driftVolumeListthe drift volume list
listOfGapsthe list of gaps

Definition at line 238 of file LArPandoraInput.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreatePandoraHits2D()

void lar_pandora::LArPandoraInput::CreatePandoraHits2D ( const art::Event &  evt,
const Settings settings,
const LArDriftVolumeMap driftVolumeMap,
const HitVector hitVector,
IdToHitMap idToHitMap 
)
static

Create the Pandora 2D hits from the ART hits.

Parameters
evtart event being processed
settingsthe settings
driftVolumeMapthe mapping from volume id to drift volume
hitsthe input list of ART hits for this event
idToHitMapto receive the mapping from Pandora hit ID to ART hit

Definition at line 45 of file LArPandoraInput.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreatePandoraLArTPCs()

void lar_pandora::LArPandoraInput::CreatePandoraLArTPCs ( const Settings settings,
const LArDriftVolumeList driftVolumeList 
)
static

Create pandora LArTPCs to represent the different drift volumes in use.

Parameters
settingsthe settings
driftVolumeListthe drift volume list

Definition at line 183 of file LArPandoraInput.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
settingsthe settings
hitMapmapping from Pandora hit addresses to ART hits
hitToParticleMapmapping from each ART hit to its underlying G4 track ID

Definition at line 661 of file LArPandoraInput.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreatePandoraMCParticles()

void lar_pandora::LArPandoraInput::CreatePandoraMCParticles ( const Settings settings,
const MCTruthToMCParticles truthToParticles,
const MCParticlesToMCTruth particlesToTruth,
const RawMCParticleVector generatorMCParticleVector 
)
static

Create the Pandora MC particles from the MC particles.

Parameters
settingsthe settings
truthToParticlesmapping from MC truth to MC particles
particlesToTruthmapping from MC particles to MC truth

Definition at line 373 of file LArPandoraInput.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
settingsthe settings
driftVolumeMapthe mapping from volume id to drift volume

Definition at line 284 of file LArPandoraInput.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillMCProcessMap()

void lar_pandora::LArPandoraInput::FillMCProcessMap ( MCProcessMap processMap)
staticprivate

Populate a map from MC process string to enumeration.

Parameters
processMapthe output map from MC process string to enumeration

Definition at line 817 of file LArPandoraInput.cxx.

Here is the caller graph for this function:

◆ 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
mcParticleVectorvector of all MCParticles to consider
primaryMCParticleMapmap containing primary MCParticles and bool indicating whether particle has been accounted for

Definition at line 624 of file LArPandoraInput.cxx.

Here is the caller graph for this function:

◆ 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
settingsthe settings
hit_Chargethe input charge
hit_Viewthe input view number

Definition at line 792 of file LArPandoraInput.cxx.

Here is the caller graph for this function:

◆ 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
cstatthe cryostat
tpcthe TPC
particlethe true particle
startTthe first trajectory point in the detector
endTthe 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
settingsthe settings
particlethe true particle
startTthe first trajectory point in the detector
endTthe last trajectory point in the detector

Definition at line 717 of file LArPandoraInput.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
evtevent currently being processing by art
particlethe true particle
nTthe 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
mcParticletarget MCParticle
primaryMCParticleMapmap containing primary MCParticles and bool indicating whether particle has been accounted for

Definition at line 637 of file LArPandoraInput.cxx.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: