#include <SimG4CMS/HcalTestBeam/interface/HcalTB02SD.h>
Public Member Functions | |
HcalTB02SD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) | |
uint32_t | setDetUnitId (const G4Step *step) override |
void | setNumberingScheme (HcalTB02NumberingScheme *scheme) |
~HcalTB02SD () 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 |
G4bool | ProcessHits (G4Step *step, G4TouchableHistory *) 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 |
bool | isCaloSD () const |
SensitiveDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &, edm::ParameterSet const &p, bool calo) | |
~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 | getEnergyDeposit (const G4Step *) override |
Protected Member Functions inherited from CaloSD | |
bool | checkHit () |
CaloG4Hit * | createNewHit (const G4Step *) |
virtual void | endEvent () |
virtual bool | filterHit (CaloG4Hit *, double) |
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 () |
double | getResponseWt (const G4Track *) |
virtual int | getTrackID (const G4Track *) |
bool | hitExists (const G4Step *) |
virtual void | initEvent (const BeginOfEvent *) |
virtual void | initRun () |
void | processHit (const G4Step *step) |
void | resetForNewPrimary (const G4Step *) |
void | setNumberCheckedHits (int val) |
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) |
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 | |
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 | |
double | crystalLength (const G4String &) |
double | curve_LY (const G4String &, const G4StepPoint *) |
void | initMap (const std::string &, const DDCompactView &) |
Private Attributes | |
double | birk1 |
double | birk2 |
double | birk3 |
std::map< G4String, double > | lengthMap |
HcalTB02NumberingScheme * | numberingScheme |
bool | useBirk |
bool | useWeight |
Additional Inherited Members | |
Protected Types inherited from SensitiveDetector | |
enum | coordinates { WorldCoordinates, LocalCoordinates } |
Protected Attributes inherited from CaloSD | |
CaloG4Hit * | currentHit |
CaloHitID | currentID |
float | edepositEM |
float | edepositHAD |
double | eminHit |
double | energyCut |
G4ThreeVector | entranceLocal |
G4ThreeVector | entrancePoint |
bool | forceSave |
float | incidentEnergy |
double | kmaxIon |
double | kmaxNeutron |
double | kmaxProton |
G4ThreeVector | posGlobal |
CaloHitID | previousID |
bool | suppressHeavy |
double | tmaxHit |
Description: Stores hits of Test Beam 2002 calorimeters
Usage: Activation is done using the XML file by choosing HcalTB02SensitiveDetector
Definition at line 29 of file HcalTB02SD.h.
HcalTB02SD::HcalTB02SD | ( | const std::string & | name, |
const DDCompactView & | cpv, | ||
const SensitiveDetectorCatalog & | clg, | ||
edm::ParameterSet const & | p, | ||
const SimTrackManager * | manager | ||
) |
Definition at line 36 of file HcalTB02SD.cc.
References birk1, birk2, birk3, g, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), initMap(), LogDebug, MeV, setNumberingScheme(), useBirk, and useWeight.
|
override |
|
private |
|
private |
Definition at line 147 of file HcalTB02SD.cc.
References crystalLength(), LogDebug, CaloSD::setToLocal(), and mps_merge::weight.
Referenced by getEnergyDeposit().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 87 of file HcalTB02SD.cc.
References birk1, birk2, birk3, curve_LY(), CaloSD::getAttenuation(), LogDebug, MeV, useBirk, useWeight, and mps_merge::weight.
|
private |
Definition at line 116 of file HcalTB02SD.cc.
References ddtrap, PVValHelper::dz, ALCARECOTkAlBeamHalo_cff::filter, DDFilteredView::firstChild(), mps_fire::i, lengthMap, LogDebug, DDFilteredView::logicalPart(), DDName::name(), dataset::name, DDBase< N, C >::name(), DDFilteredView::next(), DDSolid::parameters(), DDSolid::shape(), and DDLogicalPart::solid().
Referenced by HcalTB02SD().
|
overridevirtual |
Implements CaloSD.
Definition at line 103 of file HcalTB02SD.cc.
References HcalTB02NumberingScheme::getUnitID(), and numberingScheme.
void HcalTB02SD::setNumberingScheme | ( | HcalTB02NumberingScheme * | scheme | ) |
Definition at line 107 of file HcalTB02SD.cc.
References numberingScheme.
Referenced by HcalTB02SD().
|
private |
Definition at line 53 of file HcalTB02SD.h.
Referenced by getEnergyDeposit(), and HcalTB02SD().
|
private |
Definition at line 53 of file HcalTB02SD.h.
Referenced by getEnergyDeposit(), and HcalTB02SD().
|
private |
Definition at line 53 of file HcalTB02SD.h.
Referenced by getEnergyDeposit(), and HcalTB02SD().
|
private |
Definition at line 54 of file HcalTB02SD.h.
Referenced by crystalLength(), and initMap().
|
private |
Definition at line 50 of file HcalTB02SD.h.
Referenced by setDetUnitId(), setNumberingScheme(), and ~HcalTB02SD().
|
private |
Definition at line 52 of file HcalTB02SD.h.
Referenced by getEnergyDeposit(), and HcalTB02SD().
|
private |
Definition at line 51 of file HcalTB02SD.h.
Referenced by getEnergyDeposit(), and HcalTB02SD().