#include <ZdcSD.h>
Public Member Functions | |
bool | ProcessHits (G4Step *step, G4TouchableHistory *tHistory) override |
uint32_t | setDetUnitId (const G4Step *step) override |
ZdcSD (const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) | |
~ZdcSD () override=default | |
Public Member Functions inherited from CaloSD | |
CaloSD (const std::string &aSDname, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false, const std::string &newcolname="") | |
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 |
bool | isItFineCalo (const G4VTouchable *touch) |
void | newCollection (const std::string &name, edm::ParameterSet const &p) |
void | PrintAll () override |
bool | ProcessHits (G4GFlashSpot *aSpot, G4TouchableHistory *) override |
void | reset () override |
~CaloSD () override | |
Public Member Functions inherited from SensitiveCaloDetector | |
SensitiveCaloDetector (const std::string &iname, const SensitiveDetectorCatalog &clg, const std::string &newcollname="") | |
Public Member Functions inherited from SensitiveDetector | |
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
const std::vector< std::string > & | getNames () const |
void | Initialize (G4HCofThisEvent *eventHC) override |
bool | isCaloSD () const |
SensitiveDetector (const std::string &iname, const SensitiveDetectorCatalog &, bool calo, const std::string &newcollname="") | |
~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 | |
double | calculateCherenkovDeposit (const G4Step *) |
double | calculateMeanNumberOfPhotons (double, double, double) |
double | calculateN2InvIntegral (double) |
double | convertEnergyToWavelength (double) |
double | evaluateFunction (const std::vector< double > &, const std::vector< double > &, double) |
double | generatePhotonEnergy (double, double, double) |
double | getEnergyDeposit (const G4Step *) override |
bool | getFromLibrary (const G4Step *) override |
void | initRun () override |
double | linearInterpolation (double, double, double, double, double) |
double | photonEnergyDist (double, double, double) |
double | pmtEfficiency (double) |
int | setTrackID (const G4Step *step) override |
Protected Member Functions inherited from CaloSD | |
bool | checkHit (int k=0) |
CaloG4Hit * | createNewHit (const G4Step *, const G4Track *, int k) |
virtual void | endEvent () |
virtual double | EnergyCorrected (const G4Step &step, const G4Track *) |
virtual bool | filterHit (CaloG4Hit *, double) |
unsigned int | findBoundaryCrossingParent (const G4Track *track, bool markParentAsSaveable=true) |
double | getAttenuation (const G4Step *aStep, double birk1, double birk2, double birk3) const |
virtual uint16_t | getDepth (const G4Step *) |
int | getNumberOfHits (int k=0) |
double | getResponseWt (const G4Track *, int k=0) |
virtual int | getTrackID (const G4Track *) |
bool | hitExists (const G4Step *, int k) |
void | ignoreRejection () |
virtual void | initEvent (const BeginOfEvent *) |
void | printDetectorLevels (const G4VTouchable *) const |
void | processHit (const G4Step *step) |
virtual void | processSecondHit (const G4Step *, const G4Track *) |
void | resetForNewPrimary (const G4Step *) |
void | setNumberCheckedHits (int val, int k=0) |
void | setParameterized (bool val) |
G4ThreeVector | setToGlobal (const G4ThreeVector &, const G4VTouchable *) const |
G4ThreeVector | setToLocal (const G4ThreeVector &, const G4VTouchable *) const |
void | setUseMap (bool val) |
std::string | shortreprID (const CaloHitID &ID) |
std::string | shortreprID (const CaloG4Hit *hit) |
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 *, int k) |
Protected Member Functions inherited from SensitiveDetector | |
TrackInformation * | cmsTrackInformation (const G4Track *aTrack) |
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 Attributes | |
std::vector< ZdcShowerLibrary::Hit > | hits |
std::unique_ptr< ZdcNumberingScheme > | numberingScheme |
std::unique_ptr< ZdcShowerLibrary > | showerLibrary |
double | thFibDir |
bool | useShowerHits |
bool | useShowerLibrary |
int | verbosity |
double | zdcHitEnergyCut |
Additional Inherited Members | |
Protected Types inherited from SensitiveDetector | |
enum | coordinates { WorldCoordinates, LocalCoordinates } |
Static Protected Member Functions inherited from CaloSD | |
static std::string | printableDecayChain (const std::vector< unsigned int > &decayChain) |
Protected Attributes inherited from CaloSD | |
std::string | collName_ [2] |
CaloG4Hit * | currentHit [2] |
CaloHitID | currentID [2] |
std::string | detName_ |
float | edepositEM |
float | edepositHAD |
double | eminHit |
double | energyCut |
G4ThreeVector | entranceLocal |
G4ThreeVector | entrancePoint |
bool | forceSave |
std::vector< std::string > | hcn_ |
float | incidentEnergy |
double | kmaxIon |
double | kmaxNeutron |
double | kmaxProton |
int | nHC_ |
G4ThreeVector | posGlobal |
CaloHitID | previousID [2] |
bool | suppressHeavy |
double | tmaxHit |
std::vector< int > | useResMap_ |
ZdcSD::ZdcSD | ( | const std::string & | name, |
const SensitiveDetectorCatalog & | clg, | ||
edm::ParameterSet const & | p, | ||
const SimTrackManager * | manager | ||
) |
Definition at line 34 of file ZdcSD.cc.
References edm::ParameterSet::getParameter(), Skims_PA_cff::name, numberingScheme, AlCaHLTBitMon_ParallelJobs::p, CaloSD::setParameterized(), showerLibrary, thFibDir, useShowerHits, useShowerLibrary, verbosity, and zdcHitEnergyCut.
|
overridedefault |
|
protected |
Definition at line 361 of file ZdcSD.cc.
References a, b, HLT_2024v13_cff::beta, DummyCfis::c, calculateMeanNumberOfPhotons(), ALCARECOTkAlJpsiMuMu_cff::charge, convertEnergyToWavelength(), funct::cos(), MillePedeFileConverter_cfg::e, EMAX, EMIN, mps_fire::i, SiStripPI::min, dqmiodumpmetadata::n, NAperRINDEX, run3scouting_cff::nPhotons, pmtEfficiency(), findAndChange::post, findAndChange::pre, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, dttmaxenums::R, RINDEX, CaloSD::setToLocal(), funct::sin(), mathSSE::sqrt(), submitPVValidationJobs::t, and V0Monitor_cff::v0.
Referenced by ProcessHits().
|
protected |
Definition at line 469 of file ZdcSD.cc.
References ALPHA, HLT_2024v13_cff::beta, ALCARECOTkAlJpsiMuMu_cff::charge, EMAX, EMIN, HBARC, and RINDEX.
Referenced by calculateCherenkovDeposit().
|
protected |
Definition at line 503 of file ZdcSD.cc.
References evaluateFunction().
|
protected |
Definition at line 576 of file ZdcSD.cc.
References hcalRecHitTable_cff::energy.
Referenced by calculateCherenkovDeposit().
|
protected |
Definition at line 548 of file ZdcSD.cc.
References mps_fire::i, linearInterpolation(), x, X, and beamSpotPI::Y.
Referenced by calculateN2InvIntegral(), and photonEnergyDist().
|
protected |
Definition at line 490 of file ZdcSD.cc.
References HLT_2024v13_cff::beta, ALCARECOTkAlJpsiMuMu_cff::charge, EMAX, and photonEnergyDist().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 178 of file ZdcSD.cc.
References a, funct::abs(), HLT_2024v13_cff::beta, ALCARECOTkAlJpsiMuMu_cff::charge, ztail::d, PVValHelper::eta, f, ForwardName::getName(), dqm-mbProfile::log, SiStripPI::max, SiStripPI::min, PbPb_ZMuSkimMuonDPG_cff::particleType, phi, pi, alignCSCRings::r, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, funct::tan(), theta(), and thFibDir.
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 124 of file ZdcSD.cc.
References CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, CaloSD::entranceLocal, CaloSD::entrancePoint, CaloG4Hit::getEM(), CaloG4Hit::getEntryLocal(), CaloG4Hit::getHadr(), CaloG4Hit::getIncidentEnergy(), CaloG4Hit::getTrackID(), CaloG4Hit::getUnitID(), hits, mps_fire::i, CaloSD::incidentEnergy, convertSQLiteXML::ok, CaloSD::posGlobal, CaloSD::processHit(), CaloSD::resetForNewPrimary(), CaloHitID::setID(), setTrackID(), showerLibrary, hcalRecHitTable_cff::time, and zdcHitEnergyCut.
Referenced by ProcessHits().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 68 of file ZdcSD.cc.
References hits, showerLibrary, and useShowerLibrary.
|
protected |
Definition at line 568 of file ZdcSD.cc.
References testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, testProducerWithPsetDescEmpty_cfi::y2, and z.
Referenced by evaluateFunction().
|
protected |
Definition at line 475 of file ZdcSD.cc.
References ALPHA, HLT_2024v13_cff::beta, ALCARECOTkAlJpsiMuMu_cff::charge, evaluateFunction(), and HBARC.
Referenced by generatePhotonEnergy().
|
protected |
Definition at line 518 of file ZdcSD.cc.
References a, b, and mps_fire::i.
Referenced by calculateCherenkovDeposit().
|
overridevirtual |
Reimplemented from CaloSD.
Definition at line 76 of file ZdcSD.cc.
References calculateCherenkovDeposit(), CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, hcalRecHitTable_cff::depth, CaloSD::edepositEM, CaloSD::edepositHAD, hcalRecHitTable_cff::energy, CaloSD::getDepth(), getFromLibrary(), CaloSD::getTrackID(), CaloSD::hitExists(), G4TrackToParticleID::isGammaElectronPositron(), findAndChange::pre, setDetUnitId(), CaloHitID::setID(), hcalRecHitTable_cff::time, useShowerHits, and useShowerLibrary.
|
overridevirtual |
Implements CaloSD.
Definition at line 580 of file ZdcSD.cc.
References numberingScheme.
Referenced by ProcessHits().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 584 of file ZdcSD.cc.
References TrackInformation::getIDonCaloSurface(), CaloSD::previousID, and CaloSD::resetForNewPrimary().
Referenced by getFromLibrary().
|
private |
Definition at line 49 of file ZdcSD.h.
Referenced by getFromLibrary(), and initRun().
|
private |
Definition at line 47 of file ZdcSD.h.
Referenced by setDetUnitId(), and ZdcSD().
|
private |
Definition at line 46 of file ZdcSD.h.
Referenced by getFromLibrary(), initRun(), and ZdcSD().
|
private |
Definition at line 44 of file ZdcSD.h.
Referenced by getEnergyDeposit(), and ZdcSD().
|
private |
Definition at line 43 of file ZdcSD.h.
Referenced by ProcessHits(), and ZdcSD().
|
private |
Definition at line 43 of file ZdcSD.h.
Referenced by initRun(), ProcessHits(), and ZdcSD().
|
private |
Definition at line 45 of file ZdcSD.h.
Referenced by getFromLibrary(), and ZdcSD().