LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "DetectorHolder_service.hh"
Public Member Functions | |
DetectorHolderService (fhicl::ParameterSet const &) | |
void | registerDetector (DetectorBase *const db) |
void | initialize () |
G4VPhysicalVolume * | worldPhysicalVolume () |
DetectorBase * | getDetectorForCategory (std::string category) const |
fhicl::ParameterSet const | getParametersForCategory (std::string category) |
void | callArtProduces (art::ProducesCollector &) |
void | fillEventWithArtHits (G4HCofThisEvent *hc) |
void | setCurrArtEvent (art::Event &e) |
art::Event & | getCurrArtEvent () |
void | constructAllLVs () |
Private Member Functions | |
void | constructAllPVs () |
void | addDBtoCategoryMap (DetectorBase *const db) |
void | placeDetector (DetectorBase *const db) |
Private Attributes | |
std::map< std::string, DetectorBase * > | categoryMap_ |
G4VPhysicalVolume * | worldPV_ |
art::Event * | currentArtEvent_ |
Definition at line 40 of file DetectorHolder_service.hh.
artg4tk::DetectorHolderService::DetectorHolderService | ( | fhicl::ParameterSet const & | ) |
Definition at line 25 of file DetectorHolder.cc.
|
private |
Definition at line 141 of file DetectorHolder.cc.
References artg4tk::DetectorBase::category(), categoryMap_, util::cend(), and msgctg.
Referenced by getCurrArtEvent(), and registerDetector().
void artg4tk::DetectorHolderService::callArtProduces | ( | art::ProducesCollector & | collector | ) |
Definition at line 117 of file DetectorHolder.cc.
References categoryMap_, and msgctg.
Referenced by larg4::larg4Main::larg4Main().
void artg4tk::DetectorHolderService::constructAllLVs | ( | ) |
Definition at line 58 of file DetectorHolder.cc.
References categoryMap_, and msgctg.
Referenced by getCurrArtEvent(), and larg4::larg4Main::larg4Main().
|
private |
Definition at line 82 of file DetectorHolder.cc.
References categoryMap_, msgctg, and placeDetector().
Referenced by getCurrArtEvent(), and worldPhysicalVolume().
void artg4tk::DetectorHolderService::fillEventWithArtHits | ( | G4HCofThisEvent * | hc | ) |
Definition at line 128 of file DetectorHolder.cc.
References categoryMap_, and msgctg.
Referenced by artg4tk::ArtG4EventAction::EndOfEventAction().
|
inline |
Definition at line 83 of file DetectorHolder_service.hh.
References addDBtoCategoryMap(), constructAllLVs(), constructAllPVs(), currentArtEvent_, and placeDetector().
Referenced by larg4::LArG4DetectorService::doFillEventWithArtHits().
artg4tk::DetectorBase * artg4tk::DetectorHolderService::getDetectorForCategory | ( | std::string | category | ) | const |
Definition at line 95 of file DetectorHolder.cc.
References categoryMap_.
Referenced by getParametersForCategory().
fhicl::ParameterSet const artg4tk::DetectorHolderService::getParametersForCategory | ( | std::string | category | ) |
Definition at line 110 of file DetectorHolder.cc.
References getDetectorForCategory(), and artg4tk::DetectorBase::parameters().
void artg4tk::DetectorHolderService::initialize | ( | ) |
Definition at line 71 of file DetectorHolder.cc.
References categoryMap_, and msgctg.
Referenced by larg4::larg4Main::larg4Main().
|
private |
Definition at line 156 of file DetectorHolder.cc.
References artg4tk::DetectorBase::category(), categoryMap_, artg4tk::DetectorBase::motherCategory(), msgctg, artg4tk::DetectorBase::placeToPVs(), and worldPV_.
Referenced by constructAllPVs(), and getCurrArtEvent().
void artg4tk::DetectorHolderService::registerDetector | ( | DetectorBase *const | db | ) |
Definition at line 31 of file DetectorHolder.cc.
References addDBtoCategoryMap(), msgctg, and artg4tk::DetectorBase::myName().
|
inline |
Definition at line 78 of file DetectorHolder_service.hh.
References currentArtEvent_, and e.
G4VPhysicalVolume * artg4tk::DetectorHolderService::worldPhysicalVolume | ( | ) |
Definition at line 39 of file DetectorHolder.cc.
References constructAllPVs(), and worldPV_.
|
private |
Definition at line 109 of file DetectorHolder_service.hh.
Referenced by addDBtoCategoryMap(), callArtProduces(), constructAllLVs(), constructAllPVs(), fillEventWithArtHits(), getDetectorForCategory(), initialize(), and placeDetector().
|
private |
Definition at line 115 of file DetectorHolder_service.hh.
Referenced by getCurrArtEvent(), and setCurrArtEvent().
|
private |
Definition at line 112 of file DetectorHolder_service.hh.
Referenced by placeDetector(), and worldPhysicalVolume().