#include <ZdcSD.h>
Public Member Functions | |
double | calculateCherenkovDeposit (const G4Step *) |
double | calculateMeanNumberOfPhotons (int, double, double) |
double | calculateN2InvIntegral (double) |
double | convertEnergyToWavelength (double) |
double | evaluateFunction (const std::vector< double > &, const std::vector< double > &, double) |
double | generatePhotonEnergy (int, double, double) |
double | linearInterpolation (double, double, double, double, double) |
double | photonEnergyDist (int, double, double) |
double | pmtEfficiency (double) |
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 | |
void | initRun () 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 *) |
virtual double | getEnergyDeposit (const G4Step *step) |
virtual bool | getFromLibrary (const G4Step *step) |
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 Member Functions | |
int | setTrackID (const G4Step *step) override |
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 32 of file ZdcSD.cc.
References edm::ParameterSet::getParameter(), Skims_PA_cff::name, numberingScheme, AlCaHLTBitMon_ParallelJobs::p, CaloSD::setParameterized(), showerLibrary, useShowerHits, useShowerLibrary, verbosity, and zdcHitEnergyCut.
|
overridedefault |
double ZdcSD::calculateCherenkovDeposit | ( | const G4Step * | aStep | ) |
Definition at line 131 of file ZdcSD.cc.
References a, b, HLT_2023v12_cff::beta, HltBtagPostValidation_cff::c, calculateMeanNumberOfPhotons(), ALCARECOTkAlJpsiMuMu_cff::charge, convertEnergyToWavelength(), funct::cos(), EMAX, EMIN, mps_fire::i, mag(), 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().
double ZdcSD::calculateMeanNumberOfPhotons | ( | int | charge, |
double | beta, | ||
double | stepLength | ||
) |
Definition at line 250 of file ZdcSD.cc.
References ALPHA, HLT_2023v12_cff::beta, ALCARECOTkAlJpsiMuMu_cff::charge, EMAX, EMIN, HBARC, and RINDEX.
Referenced by calculateCherenkovDeposit().
double ZdcSD::calculateN2InvIntegral | ( | double | Emin | ) |
Definition at line 284 of file ZdcSD.cc.
References evaluateFunction().
double ZdcSD::convertEnergyToWavelength | ( | double | energy | ) |
Definition at line 357 of file ZdcSD.cc.
References hcalRecHitTable_cff::energy.
Referenced by calculateCherenkovDeposit().
double ZdcSD::evaluateFunction | ( | const std::vector< double > & | X, |
const std::vector< double > & | Y, | ||
double | x | ||
) |
Definition at line 329 of file ZdcSD.cc.
References mps_fire::i, linearInterpolation(), x, X, and beamSpotPI::Y.
Referenced by calculateN2InvIntegral(), and photonEnergyDist().
double ZdcSD::generatePhotonEnergy | ( | int | charge, |
double | beta, | ||
double | Emin | ||
) |
Definition at line 271 of file ZdcSD.cc.
References HLT_2023v12_cff::beta, ALCARECOTkAlJpsiMuMu_cff::charge, EMAX, and photonEnergyDist().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 65 of file ZdcSD.cc.
References hits, showerLibrary, and useShowerLibrary.
double ZdcSD::linearInterpolation | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | z | ||
) |
Definition at line 349 of file ZdcSD.cc.
References testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, testProducerWithPsetDescEmpty_cfi::y2, and z.
Referenced by evaluateFunction().
double ZdcSD::photonEnergyDist | ( | int | charge, |
double | beta, | ||
double | E | ||
) |
Definition at line 256 of file ZdcSD.cc.
References ALPHA, HLT_2023v12_cff::beta, ALCARECOTkAlJpsiMuMu_cff::charge, evaluateFunction(), and HBARC.
Referenced by generatePhotonEnergy().
double ZdcSD::pmtEfficiency | ( | double | lambda | ) |
Definition at line 299 of file ZdcSD.cc.
References a, b, and mps_fire::i.
Referenced by calculateCherenkovDeposit().
|
overridevirtual |
Reimplemented from CaloSD.
Definition at line 73 of file ZdcSD.cc.
References calculateCherenkovDeposit(), CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, hcalRecHitTable_cff::depth, CaloSD::edepositEM, CaloSD::edepositHAD, hcalRecHitTable_cff::energy, CaloSD::getDepth(), CaloSD::getTrackID(), CaloSD::hitExists(), G4TrackToParticleID::isGammaElectronPositron(), SensitiveDetector::NaNTrap(), findAndChange::pre, setDetUnitId(), CaloHitID::setID(), hcalRecHitTable_cff::time, and useShowerHits.
|
overridevirtual |
Implements CaloSD.
Definition at line 361 of file ZdcSD.cc.
References numberingScheme.
Referenced by ProcessHits().
|
overrideprivatevirtual |
Reimplemented from CaloSD.
Definition at line 365 of file ZdcSD.cc.
References TrackInformation::getIDonCaloSurface(), CaloSD::previousID, and CaloSD::resetForNewPrimary().
|
private |
|
private |
Definition at line 44 of file ZdcSD.h.
Referenced by setDetUnitId(), and ZdcSD().
|
private |
|
private |
Definition at line 39 of file ZdcSD.h.
Referenced by ProcessHits(), and ZdcSD().
|
private |