#include <ZdcSD.h>
Public Member Functions | |
double | getEnergyDeposit (const G4Step *, edm::ParameterSet const &) |
void | getFromLibrary (G4Step *step) |
bool | ProcessHits (G4Step *step, G4TouchableHistory *tHistory) override |
uint32_t | setDetUnitId (const G4Step *step) override |
void | setNumberingScheme (ZdcNumberingScheme *scheme) |
ZdcSD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) | |
~ZdcSD () override | |
Public Member Functions inherited from CaloSD | |
CaloSD (const std::string &aSDname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false) | |
void | clear () override |
void | clearHits () override |
void | DrawAll () override |
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
void | fillHits (edm::PCaloHitContainer &, const std::string &) override |
virtual double | getEnergyDeposit (G4Step *step) |
void | Initialize (G4HCofThisEvent *HCE) override |
void | PrintAll () override |
bool | ProcessHits (G4GFlashSpot *aSpot, G4TouchableHistory *) override |
~CaloSD () override | |
Public Member Functions inherited from SensitiveCaloDetector | |
SensitiveCaloDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p) | |
Public Member Functions inherited from SensitiveDetector | |
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
const std::vector< std::string > & | getNames () const |
void | Initialize (G4HCofThisEvent *eventHC) override |
SensitiveDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &, edm::ParameterSet const &p) | |
~SensitiveDetector () override | |
Public Member Functions inherited from Observer< const BeginOfRun * > | |
Observer () | |
void | slotForUpdate (const BeginOfRun * iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const BeginOfEvent * > | |
Observer () | |
void | slotForUpdate (const BeginOfEvent * iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const BeginOfTrack * > | |
Observer () | |
void | slotForUpdate (const BeginOfTrack * iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const EndOfTrack * > | |
Observer () | |
void | slotForUpdate (const EndOfTrack * iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const EndOfEvent * > | |
Observer () | |
void | slotForUpdate (const EndOfEvent * iT) |
virtual | ~Observer () |
Protected Member Functions | |
void | initRun () override |
Protected Member Functions inherited from CaloSD | |
G4bool | checkHit () |
CaloG4Hit * | createNewHit () |
virtual bool | filterHit (CaloG4Hit *, double) |
double | getAttenuation (const G4Step *aStep, double birk1, double birk2, double birk3) |
virtual uint16_t | getDepth (const G4Step *) |
int | getNumberOfHits () |
double | getResponseWt (const G4Track *) |
virtual G4bool | getStepInfo (G4Step *aStep) |
virtual int | getTrackID (const G4Track *) |
G4bool | hitExists () |
void | resetForNewPrimary (const G4ThreeVector &, double) |
G4ThreeVector | setToGlobal (const G4ThreeVector &, const G4VTouchable *) |
G4ThreeVector | setToLocal (const G4ThreeVector &, const G4VTouchable *) |
void | update (const BeginOfRun *) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const BeginOfEvent *) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const BeginOfTrack *trk) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const EndOfTrack *trk) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const ::EndOfEvent *) override |
void | updateHit (CaloG4Hit *) |
Protected Member Functions inherited from SensitiveDetector | |
Local3DPoint | ConvertToLocal3DPoint (const G4ThreeVector &point) const |
Local3DPoint | FinalStepPosition (const G4Step *step, coordinates) const |
Local3DPoint | InitialStepPosition (const G4Step *step, coordinates) const |
Local3DPoint | LocalPostStepPosition (const G4Step *step) const |
Local3DPoint | LocalPreStepPosition (const G4Step *step) const |
void | NaNTrap (const G4Step *step) const |
void | setNames (const std::vector< std::string > &) |
Protected Member Functions inherited from Observer< const EndOfEvent * > | |
virtual void | update (const EndOfEvent *)=0 |
This routine will be called when the appropriate signal arrives. More... | |
Private Member Functions | |
int | setTrackID (G4Step *step) |
Private Attributes | |
std::vector< ZdcShowerLibrary::Hit > | hits |
ZdcNumberingScheme * | numberingScheme |
ZdcShowerLibrary * | showerLibrary |
double | thFibDir |
bool | useShowerHits |
bool | useShowerLibrary |
int | verbosity |
double | zdcHitEnergyCut |
Additional Inherited Members | |
Protected Types inherited from SensitiveDetector | |
enum | coordinates { WorldCoordinates, LocalCoordinates } |
Protected Attributes inherited from CaloSD | |
int | checkHits |
double | correctT |
bool | corrTOFBeam |
CaloG4Hit * | currentHit |
CaloHitID | currentID |
float | edepositEM |
float | edepositHAD |
double | eminHit |
double | eminHitD |
G4int | emPDG |
double | energyCut |
G4ThreeVector | entranceLocal |
G4ThreeVector | entrancePoint |
G4int | epPDG |
bool | forceSave |
G4int | gammaPDG |
float | incidentEnergy |
double | kmaxIon |
double | kmaxNeutron |
double | kmaxProton |
const SimTrackManager * | m_trackManager |
G4ThreeVector | posGlobal |
G4StepPoint * | preStepPoint |
CaloHitID | previousID |
int | primIDSaved |
bool | runInit |
bool | suppressHeavy |
G4Track * | theTrack |
double | tmaxHit |
bool | useMap |
ZdcSD::ZdcSD | ( | const std::string & | name, |
const DDCompactView & | cpv, | ||
const SensitiveDetectorCatalog & | clg, | ||
edm::ParameterSet const & | p, | ||
const SimTrackManager * | manager | ||
) |
Definition at line 23 of file ZdcSD.cc.
References edm::ParameterSet::getParameter(), GeV, setNumberingScheme(), showerLibrary, useShowerHits, useShowerLibrary, verbosity, zdcHitEnergyCut, and g4SimHits_cfi::ZdcShowerLibrary.
|
override |
Definition at line 61 of file ZdcSD.cc.
References numberingScheme, and showerLibrary.
double ZdcSD::getEnergyDeposit | ( | const G4Step * | aStep, |
edm::ParameterSet const & | p | ||
) |
Definition at line 182 of file ZdcSD.cc.
References a, beta, ALCARECOTkAlJpsiMuMu_cff::charge, edmIntegrityCheck::d, PVValHelper::eta, edm::ParameterSet::getParameter(), cmsBatch::log, LogDebug, SiStripPI::max, min(), objects.autophobj::particleType, phi, pi, CaloSD::preStepPoint, alignCSCRings::r, mathSSE::sqrt(), funct::tan(), theta(), CaloSD::theTrack, and thFibDir.
void ZdcSD::getFromLibrary | ( | G4Step * | step | ) |
Definition at line 98 of file ZdcSD.cc.
References CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, CaloSD::entranceLocal, CaloSD::entrancePoint, CaloG4Hit::getEM(), CaloG4Hit::getEntryLocal(), CaloG4Hit::getHadr(), ZdcShowerLibrary::getHits(), CaloG4Hit::getIncidentEnergy(), CaloG4Hit::getTrackID(), CaloG4Hit::getUnitID(), GetVolume(), GeV, hits, mps_fire::i, GetRecoTauVFromDQM_MC_cff::kk, LogDebug, convertSQLiteXML::ok, CaloSD::posGlobal, CaloSD::preStepPoint, CaloSD::previousID, CaloSD::resetForNewPrimary(), CaloHitID::setID(), CaloG4Hit::setIncidentEnergy(), setTrackID(), showerLibrary, CaloSD::theTrack, ntuplemaker::time, CaloSD::updateHit(), and zdcHitEnergyCut.
Referenced by ProcessHits().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 70 of file ZdcSD.cc.
References hits, ZdcShowerLibrary::initRun(), showerLibrary, and useShowerLibrary.
|
overridevirtual |
Reimplemented from CaloSD.
Definition at line 78 of file ZdcSD.cc.
References CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::edepositEM, CaloSD::edepositHAD, getFromLibrary(), CaloSD::getStepInfo(), CaloSD::hitExists(), SensitiveDetector::NaNTrap(), useShowerHits, and useShowerLibrary.
|
overridevirtual |
Implements CaloSD.
Definition at line 411 of file ZdcSD.cc.
References ZdcNumberingScheme::getUnitID(), and numberingScheme.
void ZdcSD::setNumberingScheme | ( | ZdcNumberingScheme * | scheme | ) |
Definition at line 415 of file ZdcSD.cc.
References numberingScheme.
Referenced by ZdcSD().
|
private |
Definition at line 424 of file ZdcSD.cc.
References TrackInformation::getIDonCaloSurface(), LogDebug, CaloSD::preStepPoint, CaloSD::previousID, CaloSD::resetForNewPrimary(), CaloSD::theTrack, and CaloHitID::trackID().
Referenced by getFromLibrary().
|
private |
Definition at line 40 of file ZdcSD.h.
Referenced by getFromLibrary(), and initRun().
|
private |
Definition at line 38 of file ZdcSD.h.
Referenced by setDetUnitId(), setNumberingScheme(), and ~ZdcSD().
|
private |
|
private |
Definition at line 35 of file ZdcSD.h.
Referenced by getEnergyDeposit().
|
private |
Definition at line 33 of file ZdcSD.h.
Referenced by ProcessHits(), and ZdcSD().
|
private |
Definition at line 33 of file ZdcSD.h.
Referenced by initRun(), ProcessHits(), and ZdcSD().
|
private |
Definition at line 36 of file ZdcSD.h.
Referenced by getFromLibrary(), and ZdcSD().