|
| HGCSD (const std::string &, const HGCalDDDConstants *, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) |
|
uint32_t | setDetUnitId (const G4Step *step) override |
|
| ~HGCSD () override=default |
|
| CaloSD (const std::string &aSDname, 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 |
|
bool | isItFineCalo (const G4VTouchable *touch) |
|
void | PrintAll () override |
|
G4bool | ProcessHits (G4Step *step, G4TouchableHistory *) override |
|
bool | ProcessHits (G4GFlashSpot *aSpot, G4TouchableHistory *) override |
|
void | reset () override |
|
| ~CaloSD () override |
|
| SensitiveCaloDetector (const std::string &iname, const SensitiveDetectorCatalog &clg) |
|
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) |
|
| ~SensitiveDetector () override |
|
| Observer () |
|
void | slotForUpdate (const BeginOfRun * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const BeginOfEvent * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const BeginOfTrack * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const EndOfTrack * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const EndOfEvent * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const BeginOfJob * iT) |
|
virtual | ~Observer () |
|
|
void | endEvent () override |
|
bool | filterHit (CaloG4Hit *, double) override |
|
double | getEnergyDeposit (const G4Step *) override |
|
void | initEvent (const BeginOfEvent *) override |
|
void | initRun () override |
|
void | update (const BeginOfRun *) override |
|
void | update (const BeginOfTrack *trk) override |
|
void | update (const EndOfTrack *trk) override |
|
void | update (const BeginOfEvent *) override |
|
void | update (const ::EndOfEvent *) override |
|
void | update (const BeginOfJob *) override |
| This routine will be called when the appropriate signal arrives. More...
|
|
bool | checkHit () |
|
CaloG4Hit * | createNewHit (const G4Step *, const G4Track *) |
|
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 () |
|
double | getResponseWt (const G4Track *) |
|
virtual int | getTrackID (const G4Track *) |
|
bool | hitExists (const G4Step *) |
|
void | ignoreRejection () |
|
void | printDetectorLevels (const G4VTouchable *) const |
|
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) |
|
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 *) |
|
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 > &) |
|
virtual void | update (const EndOfEvent *)=0 |
| This routine will be called when the appropriate signal arrives. More...
|
|
Definition at line 22 of file HGCSD.h.
Definition at line 32 of file HGCSD.cc.
References angles_, CaloSD::eminHit, eminHit_, ForwardEmpty, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HGCEE, HGCHEB, HGCHEF, mouseBite_, mouseBiteCut_, myFwdSubdet_, Skims_PA_cff::name, nameX_, numberingScheme_, AlCaHLTBitMon_ParallelJobs::p, rejectMB_, CaloSD::setNumberCheckedHits(), CaloSD::setUseMap(), storeAllG4Hits_, funct::tan(), and waferRot_.
65 G4String myName =
name;
68 if (myName.find(
"HitsEE") != std::string::npos) {
70 nameX_ =
"HGCalEESensitive";
71 }
else if (myName.find(
"HitsHEfront") != std::string::npos) {
73 nameX_ =
"HGCalHESiliconSensitive";
74 }
else if (myName.find(
"HitsHEback") != std::string::npos) {
76 nameX_ =
"HGCalHEScintillatorSensitive";
80 edm::LogVerbatim(
"HGCSim") <<
"**************************************************" 84 <<
"* Constructing a HGCSD with name " <<
name <<
"\n" 87 <<
"**************************************************";
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
void setNumberCheckedHits(int val)
std::vector< double > angles_
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< HGCMouseBite > mouseBite_
const HGCalDDDConstants * hgcons_
Tan< T >::type tan(const T &t)
std::unique_ptr< HGCNumberingScheme > numberingScheme_
CaloSD(const std::string &aSDname, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false)
ForwardSubdetector myFwdSubdet_
double HGCSD::getEnergyDeposit |
( |
const G4Step * |
aStep | ) |
|
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 97 of file HGCSD.cc.
References funct::abs(), angle(), CaloSD::getResponseWt(), nano_mu_digi_cff::layer, levelT_, alignCSCRings::r, slopeMin_, t_Angle_, t_dEStep1_, t_dEStep2_, t_Layer_, t_Parcode_, t_TrackE_, and z.
98 double r = aStep->GetPreStepPoint()->GetPosition().perp();
99 double z =
std::abs(aStep->GetPreStepPoint()->GetPosition().z());
102 G4int parCode = aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
103 G4LogicalVolume* lv = aStep->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume();
104 edm::LogVerbatim(
"HGCSim") <<
"HGCSD: Hit from standard path from " << lv->GetName() <<
" for Track " 105 << aStep->GetTrack()->GetTrackID() <<
" (" 106 << aStep->GetTrack()->GetDefinition()->GetParticleName() <<
":" << parCode <<
") R = " <<
r 107 <<
" Z = " <<
z <<
" slope = " <<
r /
z <<
":" <<
slopeMin_;
116 double wt2 = aStep->GetTrack()->GetWeight();
117 double destep = wt1 * aStep->GetTotalEnergyDeposit();
122 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
123 G4double tmptrackE = aStep->GetTrack()->GetKineticEnergy();
124 G4int parCodex = aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
125 G4double
angle = (aStep->GetTrack()->GetMomentumDirection().theta()) / CLHEP::deg;
126 G4int
layer = ((touch->GetHistoryDepth() ==
levelT_) ? touch->GetReplicaNumber(0) : touch->GetReplicaNumber(2));
127 G4int ilayer = (
layer - 1) / 3;
128 if (aStep->GetTotalEnergyDeposit() > 0) {
131 t_dEStep1_.emplace_back(aStep->GetTotalEnergyDeposit());
std::vector< double > t_TrackE_
Log< level::Info, true > LogVerbatim
std::vector< double > t_dEStep1_
std::vector< double > t_dEStep2_
std::vector< int > t_Layer_
Abs< T >::type abs(const T &t)
std::vector< int > t_Parcode_
std::vector< double > t_Angle_
double getResponseWt(const G4Track *)
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
uint32_t HGCSD::setDetUnitId |
( |
const G4Step * |
step | ) |
|
|
overridevirtual |
Implements CaloSD.
Definition at line 141 of file HGCSD.cc.
References TauDecayModes::dec, l1ctLayer2EG_cff::id, dqmdumpme::k, nano_mu_digi_cff::layer, levelT_, DTRecHitClients_cfi::local, callgraph::module, mouseBite_, myFwdSubdet_, rejectMB_, HGCalTestNumbering::unpackHexagonIndex(), and z.
142 const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
143 const G4VTouchable* touch = preStepPoint->GetTouchable();
146 G4ThreeVector hitPoint = preStepPoint->GetPosition();
147 float globalZ = touch->GetTranslation(0).z();
148 int iz(globalZ > 0 ? 1 : -1);
151 G4ThreeVector localpos = touch->GetHistory()->GetTopTransform().TransformPoint(hitPoint);
156 int layer(-1), moduleLev(-1),
module(-1), cell(-1);
157 if (touch->GetHistoryDepth() ==
levelT_) {
158 layer = touch->GetReplicaNumber(0);
160 edm::LogVerbatim(
"HGCSim") <<
"Depths: " << touch->GetHistoryDepth() <<
" name " << touch->GetVolume(0)->GetName()
161 <<
" layer:module:cell " <<
layer <<
":" << moduleLev <<
":" <<
module <<
":" << cell;
164 layer = touch->GetReplicaNumber(2);
165 module = touch->GetReplicaNumber(1);
166 cell = touch->GetReplicaNumber(0);
170 const G4Material* mat = aStep->GetPreStepPoint()->GetMaterial();
171 edm::LogVerbatim(
"HGCSim") <<
"Depths: " << touch->GetHistoryDepth() <<
" name " << touch->GetVolume(0)->GetName()
172 <<
":" << touch->GetReplicaNumber(0) <<
" " << touch->GetVolume(1)->GetName() <<
":" 173 << touch->GetReplicaNumber(1) <<
" " << touch->GetVolume(2)->GetName() <<
":" 174 << touch->GetReplicaNumber(2) <<
" layer:module:cell " <<
layer <<
":" << moduleLev
175 <<
":" <<
module <<
":" << cell <<
" Material " << mat->GetName() <<
":" 177 for (
int k = 0;
k < touch->GetHistoryDepth(); ++
k)
178 edm::LogVerbatim(
"HGCSim") <<
"Level [" <<
k <<
"] " << touch->GetVolume(
k)->GetName() <<
":" 179 << touch->GetReplicaNumber(
k);
183 if (aStep->GetPreStepPoint()->GetMaterial()->GetRadlen() > 100000.)
188 int det,
z, lay, wafer,
type, ic;
192 <<
module <<
":" << cell <<
":" << iz << localpos.x() <<
":" << localpos.y()
193 <<
" Decode " << det <<
":" <<
z <<
":" << lay <<
":" << wafer <<
":" <<
type <<
":" 196 G4ThreeVector
local =
197 ((moduleLev >= 0) ? (touch->GetHistory()->GetTransform(moduleLev).TransformPoint(hitPoint)) : G4ThreeVector());
Log< level::Info, true > LogVerbatim
std::unique_ptr< HGCMouseBite > mouseBite_
uint32_t setDetUnitId(const G4Step *step) override
ForwardSubdetector myFwdSubdet_
static void unpackHexagonIndex(const uint32_t &idx, int &subdet, int &z, int &lay, int &wafer, int &celltyp, int &cell)
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfJob *>.
Definition at line 204 of file HGCSD.cc.
References angles_, Exception, geom_mode_, HGCalDDDConstants::geomMode(), hgcons_, levelT_, HGCalDDDConstants::levelTop(), HGCalDDDConstants::minSlope(), mouseBite_, mouseBiteCut_, nameX_, numberingScheme_, rejectMB_, slopeMin_, and waferRot_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
214 throw cms::Exception(
"Unknown",
"HGCSD") <<
"Cannot find HGCalDDDConstants for " <<
nameX_ <<
"\n";
Log< level::Info, true > LogVerbatim
std::vector< double > angles_
Log< level::Error, false > LogError
HGCalGeometryMode::GeometryMode geomMode() const
HGCalGeometryMode::GeometryMode geom_mode_
std::unique_ptr< HGCMouseBite > mouseBite_
const HGCalDDDConstants * hgcons_
std::unique_ptr< HGCNumberingScheme > numberingScheme_
int levelTop(int ind=0) const