#include <HGCalSD.h>
Public Member Functions | |
HGCalSD (const std::string &, const HGCalDDDConstants *, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) | |
uint32_t | setDetUnitId (const G4Step *step) override |
~HGCalSD () 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 |
G4bool | ProcessHits (G4Step *step, G4TouchableHistory *) 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 () |
Public Member Functions inherited from Observer< const BeginOfJob *> | |
Observer () | |
void | slotForUpdate (const BeginOfJob * iT) |
virtual | ~Observer () |
Protected Member Functions | |
bool | filterHit (CaloG4Hit *, double) override |
double | getEnergyDeposit (const G4Step *) override |
void | initRun () override |
void | processSecondHit (const G4Step *, const G4Track *) override |
void | update (const BeginOfEvent *) override |
void | update (const BeginOfRun *) override |
void | update (const ::EndOfEvent *) override |
void | update (const BeginOfTrack *trk) override |
void | update (const EndOfTrack *trk) override |
void | update (const BeginOfJob *) override |
This routine will be called when the appropriate signal arrives. More... | |
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 *) |
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 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) |
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 |
virtual int | setTrackID (const G4Step *) |
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 | |
bool | calibCell (const uint32_t &id) |
bool | isItinFidVolume (const G4ThreeVector &) |
uint32_t | setDetUnitId (int, int, int, int, G4ThreeVector &) |
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_ |
HGCalSD::HGCalSD | ( | const std::string & | name, |
const HGCalDDDConstants * | hgc, | ||
const SensitiveDetectorCatalog & | clg, | ||
edm::ParameterSet const & | p, | ||
const SimTrackManager * | manager | ||
) |
Definition at line 33 of file HGCalSD.cc.
References angles_, cellOffset_, checkID_, cornerMinMask_, dd4hep_, distanceFromEdge_, eminHit_, fiducialCut_, DetId::Forward, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), guardRing_, guardRingPartial_, DetId::HGCalEE, DetId::HGCalHSi, missingFile_, mouseBite_, mydet_, myName_, Skims_PA_cff::name, nameX_, CaloSD::nHC_, numberingScheme_, AlCaHLTBitMon_ParallelJobs::p, rejectMB_, CaloSD::setNumberCheckedHits(), CaloSD::setUseMap(), storeAllG4Hits_, AlCaHLTBitMon_QueryRunRegistry::string, verbose_, and waferRot_.
|
overridedefault |
|
private |
Definition at line 381 of file HGCalSD.cc.
References calibCellFullHD_, calibCellFullLD_, calibCellPartHD_, calibCellPartLD_, calibCellRHD_, calibCellRLD_, cellOffset_, HGCalCell::cellPlacementIndex(), spr::find(), RemoveAddSevLevel::flag, fraction_, full, hgcons_, info(), nano_mu_digi_cff::layer, HGCalTypes::layerFrontBack(), HGCalDDDConstants::layerType(), M_PI, EgammaValidation_cff::num, HGCSiliconDetId::unpack(), HGCalTypes::waferFull(), HGCalTypes::waferHD(), HGCalDDDConstants::waferInfo(), HGCalWaferIndex::waferU(), HGCalWaferIndex::waferV(), and ecaldqm::zside().
Referenced by setDetUnitId().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 349 of file HGCalSD.cc.
References eminHit_, CaloG4Hit::getEnergyDeposit(), hcalRecHitTable_cff::time, and CaloSD::tmaxHit.
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 110 of file HGCalSD.cc.
References funct::abs(), CaloSD::getResponseWt(), alignCSCRings::r, slopeMin_, weight_, and z.
|
overrideprotectedvirtual |
|
private |
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 353 of file HGCalSD.cc.
References calibCell_, CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, fraction_, and CaloSD::hitExists().
|
overridevirtual |
Implements CaloSD.
Definition at line 141 of file HGCalSD.cc.
References calibCell(), calibCell_, calibCells_, HGCalDDDConstants::cassetteShiftSilicon(), HGCSiliconDetId::cellU(), HGCSiliconDetId::cellV(), checkID_, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), angle_units::operators::convertRadToDeg(), debug, TauDecayModes::dec, change_name::diff, PVValHelper::dx, PVValHelper::dy, fiducialCut_, fraction_, guardRing_, guardRingPartial_, hgcons_, l1ctLayer2EG_cff::id, HGCalDDDConstants::isValidHex8(), nano_mu_digi_cff::layer, HGCSiliconDetId::layer(), HGCalTypes::layerFrontBack(), HGCalDDDConstants::layerType(), levelT1_, levelT2_, DTRecHitClients_cfi::local, HGCalDDDConstants::locateCell(), mouseBite_, CaloSD::printDetectorLevels(), rejectMB_, mathSSE::sqrt(), useSimWt_, verbose_, HGCalDDDConstants::waferFileInfo(), HGCalWaferIndex::waferIndex(), HGCalDDDConstants::waferTypeRotation(), HGCSiliconDetId::waferU(), HGCSiliconDetId::waferUV(), HGCSiliconDetId::waferV(), geometryCSVtoXML::xx, geometryCSVtoXML::xy, and HGCSiliconDetId::zside().
|
private |
Definition at line 367 of file HGCalSD.cc.
References cornerMinMask_, hgcons_, l1ctLayer2EG_cff::id, CaloSD::ignoreRejection(), nano_mu_digi_cff::layer, HGCalDDDConstants::maskCell(), numberingScheme_, HGCalDDDConstants::waferHexagon8File(), and weight_.
|
overrideprotected |
Definition at line 750 of file CaloSD.cc.
Referenced by MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), and MatrixUtil.Steps::overwrite().
|
overrideprotected |
Definition at line 781 of file CaloSD.cc.
Referenced by MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), and MatrixUtil.Steps::overwrite().
|
overrideprotected |
Definition at line 760 of file CaloSD.cc.
Referenced by MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), and MatrixUtil.Steps::overwrite().
|
overrideprotected |
Definition at line 752 of file CaloSD.cc.
Referenced by MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), and MatrixUtil.Steps::overwrite().
|
overrideprotected |
Definition at line 1014 of file CaloSD.cc.
Referenced by MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), and MatrixUtil.Steps::overwrite().
|
overrideprotectedvirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfJob *>.
Definition at line 271 of file HGCalSD.cc.
References angles_, calibCellFullHD_, calibCellFullLD_, calibCellPartHD_, calibCellPartLD_, HGCalDDDConstants::calibCellRad(), calibCellRHD_, calibCellRLD_, HGCalDDDConstants::calibCells(), calibCells_, cellOffset_, CaloSD::collName_, cos30deg_, dd4hep_, Exception, fiducialCut_, geom_mode_, HGCalDDDConstants::geomMode(), HGCalDDDConstants::getParameter(), HGCalDDDConstants::getUVMax(), guardRing_, HGCalDDDConstants::guardRingOffset(), guardRingOffset_, guardRingPartial_, hgcons_, levelT1_, levelT2_, HGCalDDDConstants::levelTop(), HGCalDDDConstants::minSlope(), missingFile_, HGCalDDDConstants::mouseBite(), mouseBite_, mouseBiteCut_, mydet_, nameX_, CaloSD::newCollection(), CaloSD::nHC_, numberingScheme_, ps_, rejectMB_, HGCalDDDConstants::sensorSizeOffset(), sensorSizeOffset_, slopeMin_, tan30deg_, HGCalParameters::useOffset_, useSimWt_, HGCalParameters::useSimWt_, waferRot_, HGCalDDDConstants::waferSize(), and waferSize_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
|
private |
Definition at line 70 of file HGCalSD.h.
Referenced by processSecondHit(), and setDetUnitId().
|
private |
Definition at line 65 of file HGCalSD.h.
Referenced by calibCell(), and update().
|
private |
Definition at line 66 of file HGCalSD.h.
Referenced by calibCell(), and update().
|
private |
Definition at line 65 of file HGCalSD.h.
Referenced by calibCell(), and update().
|
private |
Definition at line 66 of file HGCalSD.h.
Referenced by calibCell(), and update().
|
private |
Definition at line 64 of file HGCalSD.h.
Referenced by calibCell(), and update().
|
private |
Definition at line 64 of file HGCalSD.h.
Referenced by calibCell(), and update().
|
private |
Definition at line 63 of file HGCalSD.h.
Referenced by setDetUnitId(), and update().
|
private |
Definition at line 53 of file HGCalSD.h.
Referenced by calibCell(), HGCalSD(), and update().
|
private |
Definition at line 61 of file HGCalSD.h.
Referenced by HGCalSD(), and setDetUnitId().
|
private |
Definition at line 59 of file HGCalSD.h.
Referenced by HGCalSD(), and setDetUnitId().
|
private |
|
private |
|
private |
|
private |
Definition at line 57 of file HGCalSD.h.
Referenced by filterHit(), and HGCalSD().
|
private |
Definition at line 61 of file HGCalSD.h.
Referenced by HGCalSD(), setDetUnitId(), and update().
|
private |
Definition at line 71 of file HGCalSD.h.
Referenced by calibCell(), processSecondHit(), and setDetUnitId().
|
private |
|
private |
Definition at line 50 of file HGCalSD.h.
Referenced by HGCalSD(), setDetUnitId(), and update().
|
private |
|
private |
Definition at line 51 of file HGCalSD.h.
Referenced by HGCalSD(), setDetUnitId(), and update().
|
private |
Definition at line 47 of file HGCalSD.h.
Referenced by calibCell(), setDetUnitId(), and update().
|
private |
Definition at line 59 of file HGCalSD.h.
Referenced by setDetUnitId(), and update().
|
private |
Definition at line 59 of file HGCalSD.h.
Referenced by setDetUnitId(), and update().
|
private |
|
private |
Definition at line 52 of file HGCalSD.h.
Referenced by HGCalSD(), setDetUnitId(), and update().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 49 of file HGCalSD.h.
Referenced by HGCalSD(), setDetUnitId(), and update().
|
private |
|
private |
Definition at line 61 of file HGCalSD.h.
Referenced by HGCalSD(), setDetUnitId(), and update().
|
private |
|
private |
Definition at line 57 of file HGCalSD.h.
Referenced by getEnergyDeposit(), and update().
|
private |
|
private |
|
private |
Definition at line 62 of file HGCalSD.h.
Referenced by setDetUnitId(), and update().
|
private |
Definition at line 62 of file HGCalSD.h.
Referenced by HGCalSD(), and setDetUnitId().
|
private |
|
private |
Definition at line 58 of file HGCalSD.h.
Referenced by getEnergyDeposit(), and setDetUnitId().