#include <SimG4CMS/Forward/interface/CastorSD.h>
Public Member Functions | |
CastorSD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &, const SimTrackManager *) | |
double | getEnergyDeposit (G4Step *) override |
uint32_t | setDetUnitId (const G4Step *step) override |
void | setNumberingScheme (CastorNumberingScheme *scheme) |
~CastorSD () 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 |
void | Initialize (G4HCofThisEvent *HCE) override |
void | PrintAll () override |
bool | ProcessHits (G4Step *step, G4TouchableHistory *tHistory) 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 | |
void | getFromLibrary (G4Step *) |
uint32_t | rotateUnitID (uint32_t, G4Track *, const CastorShowerEvent &) |
int | setTrackID (G4Step *) |
Private Attributes | |
double | energyThresholdSL |
G4LogicalVolume * | lvC3EF |
G4LogicalVolume * | lvC3HF |
G4LogicalVolume * | lvC4EF |
G4LogicalVolume * | lvC4HF |
G4LogicalVolume * | lvCAST |
double | non_compensation_factor |
CastorNumberingScheme * | numberingScheme |
CastorShowerLibrary * | showerLibrary |
bool | useShowerLibrary |
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 |
Description: Stores hits of Castor in appropriate container
Usage: Used in sensitive detector builder
Definition at line 30 of file CastorSD.h.
CastorSD::CastorSD | ( | const std::string & | name, |
const DDCompactView & | cpv, | ||
const SensitiveDetectorCatalog & | clg, | ||
edm::ParameterSet const & | p, | ||
const SimTrackManager * | manager | ||
) |
Definition at line 30 of file CastorSD.cc.
References g4SimHits_cfi::CastorShowerLibrary, energyThresholdSL, edm::ParameterSet::getParameter(), GeV, lvC3EF, lvC3HF, lvC4EF, lvC4HF, lvCAST, non_compensation_factor, setNumberingScheme(), showerLibrary, and useShowerLibrary.
|
override |
|
overridevirtual |
Reimplemented from CaloSD.
Definition at line 94 of file CastorSD.cc.
References a, funct::abs(), beta, ALCARECOTkAlJpsiMuMu_cff::charge, edmIntegrityCheck::d, dot(), CaloSD::emPDG, energyThresholdSL, CaloSD::epPDG, PVValHelper::eta, CaloSD::gammaPDG, TrackInformation::getCastorHitPID(), getFromLibrary(), TrackInformation::hasCastorHit(), cmsBatch::log, LogDebug, lvC3EF, lvC3HF, lvC4EF, lvC4HF, lvCAST, M_PI, SiStripPI::max, MeV, min(), dataset::name, non_compensation_factor, objects.autophobj::particleType, phi, pi, CaloSD::preStepPoint, dttmaxenums::R, alignCSCRings::r, Scenarios_cff::scale, TrackInformation::setCastorHitPID(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, funct::tan(), theta(), CaloSD::theTrack, and useShowerLibrary.
|
private |
Definition at line 636 of file CastorSD.cc.
References CaloSD::checkHit(), CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, CaloSD::emPDG, CaloSD::epPDG, CaloSD::gammaPDG, CastorShowerEvent::getDetID(), CastorShowerEvent::getNhit(), CastorShowerEvent::getNphotons(), CastorShowerEvent::getPrimE(), CastorShowerLibrary::getShowerHits(), CastorShowerEvent::getTime(), GetVolume(), GeV, hfClusterShapes_cfi::hits, mps_fire::i, GetRecoTauVFromDQM_MC_cff::kk, LogDebug, non_compensation_factor, convertSQLiteXML::ok, CaloSD::posGlobal, CaloSD::preStepPoint, CaloSD::previousID, CaloSD::resetForNewPrimary(), rotateUnitID(), Scenarios_cff::scale, CaloHitID::setID(), setTrackID(), showerLibrary, CaloSD::theTrack, ntuplemaker::time, funct::true, and CaloSD::updateHit().
Referenced by getEnergyDeposit().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 83 of file CastorSD.cc.
References CastorShowerLibrary::initParticleTable(), showerLibrary, and useShowerLibrary.
|
private |
Definition at line 571 of file CastorSD.cc.
References printConversionInfo::aux, CastorShowerEvent::getPrimPhi(), createfilelist::int, LogDebug, M_PI, and reco::btau::trackPhi.
Referenced by getFromLibrary().
|
overridevirtual |
Implements CaloSD.
Definition at line 529 of file CastorSD.cc.
References CastorNumberingScheme::getUnitID(), and numberingScheme.
void CastorSD::setNumberingScheme | ( | CastorNumberingScheme * | scheme | ) |
Definition at line 535 of file CastorSD.cc.
References numberingScheme.
Referenced by CastorSD().
|
private |
Definition at line 547 of file CastorSD.cc.
References TrackInformation::getIDonCaloSurface(), CaloSD::preStepPoint, CaloSD::previousID, CaloSD::resetForNewPrimary(), CaloSD::theTrack, and CaloHitID::trackID().
Referenced by getFromLibrary().
|
private |
Definition at line 52 of file CastorSD.h.
Referenced by CastorSD(), and getEnergyDeposit().
|
private |
Definition at line 48 of file CastorSD.h.
Referenced by CastorSD(), and getEnergyDeposit().
|
private |
Definition at line 48 of file CastorSD.h.
Referenced by CastorSD(), and getEnergyDeposit().
|
private |
Definition at line 48 of file CastorSD.h.
Referenced by CastorSD(), and getEnergyDeposit().
|
private |
Definition at line 48 of file CastorSD.h.
Referenced by CastorSD(), and getEnergyDeposit().
|
private |
Definition at line 49 of file CastorSD.h.
Referenced by CastorSD(), and getEnergyDeposit().
|
private |
Definition at line 53 of file CastorSD.h.
Referenced by CastorSD(), getEnergyDeposit(), and getFromLibrary().
|
private |
Definition at line 46 of file CastorSD.h.
Referenced by setDetUnitId(), and setNumberingScheme().
|
private |
Definition at line 47 of file CastorSD.h.
Referenced by CastorSD(), getFromLibrary(), initRun(), and ~CastorSD().
|
private |
Definition at line 51 of file CastorSD.h.
Referenced by CastorSD(), getEnergyDeposit(), initRun(), and ~CastorSD().