10 #define AuxDetAction_h 14 #include "nug4/G4Base/UserAction.h" 18 #include "Geometry/GeometryCore.h" 24 #include "DetectorInfo/DetectorProperties.h" 27 #include "CLHEP/Random/RandGauss.h" 33 class G4EnergyLossForExtrapolator;
72 void AddHits(
const std::map<
gar::raw::CellID_t, std::vector<gar::sdp::CaloDeposit> > m_hits, std::vector<gar::sdp::CaloDeposit> &fDeposits);
103 std::map< gar::raw::CellID_t, std::vector<gar::sdp::CaloDeposit> >
m_ECALDeposits;
109 std::map< gar::raw::CellID_t, std::vector<gar::sdp::CaloDeposit> >
m_MuIDDeposits;
float GetStepEnergy(const G4Step *step, bool birks)
unsigned int GetDetNumber(std::string volname)
std::vector< gar::sdp::CaloDeposit > const & CaloDeposits() const
const gar::geo::GeometryCore * fGeo
geometry information
std::vector< gar::sdp::CaloDeposit > const & MuIDDeposits() const
std::string fLArMaterial
Material for the LArTPC.
std::vector< std::string > fECALVolumeName
volume we will record energy depositions in
std::vector< std::string > fMuIDVolumeName
volume we will record energy depositions in
std::string fTrackerScMaterial
Material for the TrackerSc (GArLite)
AuxDetAction(CLHEP::HepRandomEngine *engine, fhicl::ParameterSet const &pset)
Description of geometry of one entire detector.
void LArSteppingAction(const G4Step *)
std::map< gar::raw::CellID_t, std::vector< gar::sdp::CaloDeposit > > m_ECALDeposits
unsigned int GetSliceNumber(std::string volname)
const detinfo::DetectorProperties * fDetProp
detector properties
std::map< gar::raw::CellID_t, std::vector< gar::sdp::CaloDeposit > > m_TrackerScDeposits
G4ThreeVector globalToLocal(const G4Step *step, const G4ThreeVector &glob)
void reconfigure(fhicl::ParameterSet const &pset)
void BeginOfEventAction(const G4Event *)
double fLArEnergyCut
The minimum energy in GeV for a particle to be included in the list.
std::map< gar::raw::CellID_t, std::vector< gar::sdp::CaloDeposit > > m_MuIDDeposits
unsigned int GetModuleNumber(std::string volname)
std::string fMuIDMaterial
Material for the MuID.
unsigned int GetLayerNumber(std::string volname)
std::string GetVolumeName(const G4Track *track)
Definition of basic calo raw digits.
const gar::geo::seg::MinervaSegmentationAlg * fMinervaSegAlg
std::vector< gar::sdp::CaloDeposit > fMuIDDeposits
energy fDeposits for the MuID
std::vector< gar::sdp::LArDeposit > fLArDeposits
energy fDeposits for the LArTPC
void AddHits(const std::map< gar::raw::CellID_t, std::vector< gar::sdp::CaloDeposit > > m_hits, std::vector< gar::sdp::CaloDeposit > &fDeposits)
General GArSoft Utilities.
std::string fECALMaterial
Material for the ECAL.
std::vector< std::string > fTrackerScVolumeName
volume we will record energy depositions in
std::vector< gar::sdp::LArDeposit > const & LArDeposits() const
void SteppingAction(const G4Step *)
void ECALSteppingAction(const G4Step *)
std::vector< gar::sdp::CaloDeposit > fTrackerScDeposits
energy fDeposits for the TrackerSc
void MuIDSteppingAction(const G4Step *)
list of energy deposits from Geant4
std::vector< std::string > fLArVolumeName
volume we will record energy depositions in
G4ThreeVector localToGlobal(const G4Step *step, const G4ThreeVector &loc)
void EndOfEventAction(const G4Event *)
float birksAttenuation(const G4Step *step)
unsigned int GetStaveNumber(std::string volname)
void TrackerScSteppingAction(const G4Step *)
art framework interface to geometry description
void PreTrackingAction(const G4Track *)
std::vector< gar::sdp::CaloDeposit > const & TrackerScDeposits() const
std::vector< gar::sdp::CaloDeposit > fECALDeposits
energy fDeposits for the ECAL
void PostTrackingAction(const G4Track *)