CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
HGCSD Class Reference

#include <HGCSD.h>

Inheritance diagram for HGCSD:
CaloSD Observer< const BeginOfJob * > SensitiveCaloDetector Observer< const BeginOfRun * > Observer< const BeginOfEvent * > Observer< const BeginOfTrack * > Observer< const EndOfTrack * > Observer< const EndOfEvent * > SensitiveDetector

Public Member Functions

 HGCSD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
 
uint32_t setDetUnitId (const G4Step *step) override
 
 ~HGCSD () override=default
 
- 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
 
void reset () 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 ()
 
- Public Member Functions inherited from Observer< const BeginOfJob * >
 Observer ()
 
void slotForUpdate (const BeginOfJob * iT)
 
virtual ~Observer ()
 

Protected Member Functions

void endEvent () override
 
bool filterHit (CaloG4Hit *, double) override
 
double getEnergyDeposit (const G4Step *) override
 
void initEvent (const BeginOfEvent *) override
 
void initRun () 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 ()
 
CaloG4HitcreateNewHit (const G4Step *)
 
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 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
TrackInformationcmsTrackInformation (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 isItinFidVolume (const G4ThreeVector &)
 
uint32_t setDetUnitId (ForwardSubdetector &, int, int, int, int, G4ThreeVector &)
 

Private Attributes

std::vector< double > angles_
 
double eminHit_
 
HGCalGeometryMode::GeometryMode geom_mode_
 
int levelT_
 
std::unique_ptr< HGCMouseBitemouseBite_
 
double mouseBiteCut_
 
ForwardSubdetector myFwdSubdet_
 
std::string nameX_
 
std::unique_ptr< HGCNumberingSchemenumberingScheme_
 
bool rejectMB_
 
double slopeMin_
 
bool storeAllG4Hits_
 
std::vector< double > t_Angle_
 
std::vector< double > t_dEStep1_
 
std::vector< double > t_dEStep2_
 
uint32_t t_EventID_
 
std::vector< int > t_Layer_
 
std::vector< int > t_Parcode_
 
std::vector< double > t_TrackE_
 
TTree * tree_
 
bool waferRot_
 

Additional Inherited Members

- Protected Types inherited from SensitiveDetector
enum  coordinates { WorldCoordinates, LocalCoordinates }
 
- Protected Attributes inherited from CaloSD
CaloG4HitcurrentHit
 
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
 

Detailed Description

Definition at line 25 of file HGCSD.h.

Constructor & Destructor Documentation

HGCSD::HGCSD ( const std::string &  name,
const DDCompactView cpv,
const SensitiveDetectorCatalog clg,
edm::ParameterSet const &  p,
const SimTrackManager manager 
)

Definition at line 39 of file HGCSD.cc.

References angles_, CaloSD::eminHit, eminHit_, ForwardEmpty, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HGCEE, HGCHEB, HGCHEF, MeV, mouseBite_, mouseBiteCut_, myFwdSubdet_, dataset::name, nameX_, numberingScheme_, rejectMB_, CaloSD::setNumberCheckedHits(), CaloSD::setUseMap(), storeAllG4Hits_, funct::tan(), and waferRot_.

44  : CaloSD(name,
45  cpv,
46  clg,
47  p,
48  manager,
49  (float)(p.getParameter<edm::ParameterSet>("HGCSD").getParameter<double>("TimeSliceUnit")),
50  p.getParameter<edm::ParameterSet>("HGCSD").getParameter<bool>("IgnoreTrackID")),
51  slopeMin_(0),
52  levelT_(99),
53  tree_(nullptr) {
54  numberingScheme_.reset(nullptr);
55  mouseBite_.reset(nullptr);
56 
57  edm::ParameterSet m_HGC = p.getParameter<edm::ParameterSet>("HGCSD");
58  eminHit_ = m_HGC.getParameter<double>("EminHit") * CLHEP::MeV;
59  storeAllG4Hits_ = m_HGC.getParameter<bool>("StoreAllG4Hits");
60  rejectMB_ = m_HGC.getParameter<bool>("RejectMouseBite");
61  waferRot_ = m_HGC.getParameter<bool>("RotatedWafer");
62  angles_ = m_HGC.getUntrackedParameter<std::vector<double>>("WaferAngles");
63  double waferSize = m_HGC.getUntrackedParameter<double>("WaferSize") * CLHEP::mm;
64  double mouseBite = m_HGC.getUntrackedParameter<double>("MouseBite") * CLHEP::mm;
65  mouseBiteCut_ = waferSize * tan(30.0 * CLHEP::deg) - mouseBite;
66 
67  if (storeAllG4Hits_) {
68  setUseMap(false);
70  }
71  //this is defined in the hgcsens.xml
72  G4String myName = name;
74  nameX_ = "HGCal";
75  if (myName.find("HitsEE") != std::string::npos) {
77  nameX_ = "HGCalEESensitive";
78  } else if (myName.find("HitsHEfront") != std::string::npos) {
80  nameX_ = "HGCalHESiliconSensitive";
81  } else if (myName.find("HitsHEback") != std::string::npos) {
83  nameX_ = "HGCalHEScintillatorSensitive";
84  }
85 
86 #ifdef EDM_ML_DEBUG
87  edm::LogVerbatim("HGCSim") << "**************************************************"
88  << "\n"
89  << "* *"
90  << "\n"
91  << "* Constructing a HGCSD with name " << name << "\n"
92  << "* *"
93  << "\n"
94  << "**************************************************";
95 #endif
96  edm::LogVerbatim("HGCSim") << "HGCSD:: Threshold for storing hits: " << eminHit << " for " << nameX_ << " subdet "
97  << myFwdSubdet_;
98  edm::LogVerbatim("HGCSim") << "Flag for storing individual Geant4 Hits " << storeAllG4Hits_;
99  edm::LogVerbatim("HGCSim") << "Reject MosueBite Flag: " << rejectMB_ << " Size of wafer " << waferSize
100  << " Mouse Bite " << mouseBite << ":" << mouseBiteCut_ << " along " << angles_.size()
101  << " axes";
102 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void setNumberCheckedHits(int val)
Definition: CaloSD.h:112
int levelT_
Definition: HGCSD.h:56
double mouseBiteCut_
Definition: HGCSD.h:58
std::string nameX_
Definition: HGCSD.h:49
std::vector< double > angles_
Definition: HGCSD.h:59
bool storeAllG4Hits_
Definition: HGCSD.h:57
bool waferRot_
Definition: HGCSD.h:57
void setUseMap(bool val)
Definition: CaloSD.h:101
double eminHit
Definition: CaloSD.h:133
const double MeV
double slopeMin_
Definition: HGCSD.h:55
std::unique_ptr< HGCMouseBite > mouseBite_
Definition: HGCSD.h:52
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
CaloSD(const std::string &aSDname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false)
Definition: CaloSD.cc:27
std::unique_ptr< HGCNumberingScheme > numberingScheme_
Definition: HGCSD.h:51
double eminHit_
Definition: HGCSD.h:53
bool rejectMB_
Definition: HGCSD.h:57
TTree * tree_
Definition: HGCSD.h:61
ForwardSubdetector myFwdSubdet_
Definition: HGCSD.h:54
HGCSD::~HGCSD ( )
overridedefault

Member Function Documentation

void HGCSD::endEvent ( )
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 255 of file HGCSD.cc.

References tree_.

255  {
256 #ifdef plotDebug
257  if (tree_)
258  tree_->Fill();
259 #endif
260 }
TTree * tree_
Definition: HGCSD.h:61
bool HGCSD::filterHit ( CaloG4Hit aHit,
double  time 
)
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 262 of file HGCSD.cc.

References eminHit_, CaloG4Hit::getEnergyDeposit(), and CaloSD::tmaxHit.

262  {
263  return ((time <= tmaxHit) && (aHit->getEnergyDeposit() > eminHit_));
264 }
double tmaxHit
Definition: CaloSD.h:133
double eminHit_
Definition: HGCSD.h:53
double getEnergyDeposit() const
Definition: CaloG4Hit.h:77
double HGCSD::getEnergyDeposit ( const G4Step *  aStep)
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 104 of file HGCSD.cc.

References funct::abs(), angle(), CaloSD::getResponseWt(), levelT_, alignCSCRings::r, slopeMin_, t_Angle_, t_dEStep1_, t_dEStep2_, t_Layer_, t_Parcode_, t_TrackE_, and z.

104  {
105  double r = aStep->GetPreStepPoint()->GetPosition().perp();
106  double z = std::abs(aStep->GetPreStepPoint()->GetPosition().z());
107 
108 #ifdef EDM_ML_DEBUG
109  G4int parCode = aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
110  G4LogicalVolume* lv = aStep->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume();
111  edm::LogVerbatim("HGCSim") << "HGCSD: Hit from standard path from " << lv->GetName() << " for Track "
112  << aStep->GetTrack()->GetTrackID() << " ("
113  << aStep->GetTrack()->GetDefinition()->GetParticleName() << ") R = " << r << " Z = " << z
114  << " slope = " << r / z << ":" << slopeMin_;
115 #endif
116 
117  // Apply fiductial volume
118  if (r < z * slopeMin_) {
119  return 0.0;
120  }
121 
122  double wt1 = getResponseWt(aStep->GetTrack());
123  double wt2 = aStep->GetTrack()->GetWeight();
124  double destep = wt1 * aStep->GetTotalEnergyDeposit();
125  if (wt2 > 0)
126  destep *= wt2;
127 
128 #ifdef plotDebug
129  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
130  G4double tmptrackE = aStep->GetTrack()->GetKineticEnergy();
131  G4int parCode = aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
132  G4double angle = (aStep->GetTrack()->GetMomentumDirection().theta()) / CLHEP::deg;
133  G4int layer = ((touch->GetHistoryDepth() == levelT_) ? touch->GetReplicaNumber(0) : touch->GetReplicaNumber(2));
134  G4int ilayer = (layer - 1) / 3;
135  if (aStep->GetTotalEnergyDeposit() > 0) {
136  t_Layer_.emplace_back(ilayer);
137  t_Parcode_.emplace_back(parCode);
138  t_dEStep1_.emplace_back(aStep->GetTotalEnergyDeposit());
139  t_dEStep2_.emplace_back(destep);
140  t_TrackE_.emplace_back(tmptrackE);
141  t_Angle_.emplace_back(angle);
142  }
143 #endif
144 
145  return destep;
146 }
std::vector< double > t_TrackE_
Definition: HGCSD.h:64
std::vector< double > t_dEStep1_
Definition: HGCSD.h:64
std::vector< double > t_dEStep2_
Definition: HGCSD.h:64
int levelT_
Definition: HGCSD.h:56
std::vector< int > t_Layer_
Definition: HGCSD.h:63
double slopeMin_
Definition: HGCSD.h:55
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
std::vector< int > t_Parcode_
Definition: HGCSD.h:63
std::vector< double > t_Angle_
Definition: HGCSD.h:65
double getResponseWt(const G4Track *)
Definition: CaloSD.cc:623
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void HGCSD::initEvent ( const BeginOfEvent g4Event)
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 242 of file HGCSD.cc.

References t_Angle_, t_dEStep1_, t_dEStep2_, t_EventID_, t_Layer_, t_Parcode_, and t_TrackE_.

242  {
243  const G4Event* evt = (*g4Event)();
244  t_EventID_ = evt->GetEventID();
245 #ifdef plotDebug
246  t_Layer_.clear();
247  t_Parcode_.clear();
248  t_dEStep1_.clear();
249  t_dEStep2_.clear();
250  t_TrackE_.clear();
251  t_Angle_.clear();
252 #endif
253 }
std::vector< double > t_TrackE_
Definition: HGCSD.h:64
std::vector< double > t_dEStep1_
Definition: HGCSD.h:64
std::vector< double > t_dEStep2_
Definition: HGCSD.h:64
std::vector< int > t_Layer_
Definition: HGCSD.h:63
std::vector< int > t_Parcode_
Definition: HGCSD.h:63
std::vector< double > t_Angle_
Definition: HGCSD.h:65
uint32_t t_EventID_
Definition: HGCSD.h:62
void HGCSD::initRun ( )
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 226 of file HGCSD.cc.

References edm::Service< T >::isAvailable(), TFileService::make(), t_Angle_, t_dEStep1_, t_dEStep2_, t_EventID_, t_Layer_, t_Parcode_, t_TrackE_, compare::tfile, and tree_.

226  {
227 #ifdef plotDebug
229  if (tfile.isAvailable()) {
230  tree_ = tfile->make<TTree>("TreeHGCSD", "TreeHGCSD");
231  tree_->Branch("EventID", &t_EventID_);
232  tree_->Branch("Layer", &t_Layer_);
233  tree_->Branch("ParticleCode", &t_Parcode_);
234  tree_->Branch("dEStepOriginal", &t_dEStep1_);
235  tree_->Branch("dEStepWeighted", &t_dEStep2_);
236  tree_->Branch("TrackEnergy", &t_TrackE_);
237  tree_->Branch("ThetaAngle", &t_Angle_);
238  }
239 #endif
240 }
std::vector< double > t_TrackE_
Definition: HGCSD.h:64
std::vector< double > t_dEStep1_
Definition: HGCSD.h:64
std::vector< double > t_dEStep2_
Definition: HGCSD.h:64
std::vector< int > t_Layer_
Definition: HGCSD.h:63
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
bool isAvailable() const
Definition: Service.h:40
std::vector< int > t_Parcode_
Definition: HGCSD.h:63
std::vector< double > t_Angle_
Definition: HGCSD.h:65
TTree * tree_
Definition: HGCSD.h:61
uint32_t t_EventID_
Definition: HGCSD.h:62
bool HGCSD::isItinFidVolume ( const G4ThreeVector &  )
inlineprivate

Definition at line 47 of file HGCSD.h.

47 { return true; }
uint32_t HGCSD::setDetUnitId ( const G4Step *  step)
overridevirtual

Implements CaloSD.

Definition at line 148 of file HGCSD.cc.

References TauDecayModes::dec, triggerObjects_cff::id, levelT_, mouseBite_, myFwdSubdet_, rejectMB_, HGCalTestNumbering::unpackHexagonIndex(), and z.

148  {
149  const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
150  const G4VTouchable* touch = preStepPoint->GetTouchable();
151 
152  //determine the exact position in global coordinates in the mass geometry
153  G4ThreeVector hitPoint = preStepPoint->GetPosition();
154  float globalZ = touch->GetTranslation(0).z();
155  int iz(globalZ > 0 ? 1 : -1);
156 
157  //convert to local coordinates (=local to the current volume):
158  G4ThreeVector localpos = touch->GetHistory()->GetTopTransform().TransformPoint(hitPoint);
159 
160  //get the det unit id with
162 
163  int layer, module, cell;
164  if (touch->GetHistoryDepth() == levelT_) {
165  layer = touch->GetReplicaNumber(0);
166  module = -1;
167  cell = -1;
168 #ifdef EDM_ML_DEBUG
169  edm::LogVerbatim("HGCSim") << "Depths: " << touch->GetHistoryDepth() << " name " << touch->GetVolume(0)->GetName()
170  << " layer:module:cell " << layer << ":" << module << ":" << cell;
171 #endif
172  } else {
173  layer = touch->GetReplicaNumber(2);
174  module = touch->GetReplicaNumber(1);
175  cell = touch->GetReplicaNumber(0);
176  }
177 #ifdef EDM_ML_DEBUG
178  edm::LogVerbatim("HGCSim") << "Depths: " << touch->GetHistoryDepth() << " name " << touch->GetVolume(0)->GetName()
179  << ":" << touch->GetReplicaNumber(0) << " " << touch->GetVolume(1)->GetName() << ":"
180  << touch->GetReplicaNumber(1) << " " << touch->GetVolume(2)->GetName() << ":"
181  << touch->GetReplicaNumber(2) << " "
182  << " layer:module:cell " << layer << ":" << module << ":" << cell << " Material "
183  << mat->GetName() << ":" << aStep->GetPreStepPoint()->GetMaterial()->GetRadlen();
184 #endif
185  // The following statement should be examined later before elimination
186  // VI: this is likely a check if media is vacuum - not needed
187  if (aStep->GetPreStepPoint()->GetMaterial()->GetRadlen() > 100000.)
188  return 0;
189 
190  uint32_t id = setDetUnitId(subdet, layer, module, cell, iz, localpos);
191  if (rejectMB_ && id != 0) {
192  int det, z, lay, wafer, type, ic;
193  HGCalTestNumbering::unpackHexagonIndex(id, det, z, lay, wafer, type, ic);
194 #ifdef EDM_ML_DEBUG
195  edm::LogVerbatim("HGCSim") << "ID " << std::hex << id << std::dec << " Decode " << det << ":" << z << ":" << lay
196  << ":" << wafer << ":" << type << ":" << ic;
197 #endif
198  if (mouseBite_->exclude(hitPoint, z, wafer, 0))
199  id = 0;
200  }
201  return id;
202 }
type
Definition: HCALResponse.h:21
int levelT_
Definition: HGCSD.h:56
ForwardSubdetector
std::unique_ptr< HGCMouseBite > mouseBite_
Definition: HGCSD.h:52
bool rejectMB_
Definition: HGCSD.h:57
uint32_t setDetUnitId(const G4Step *step) override
Definition: HGCSD.cc:148
ForwardSubdetector myFwdSubdet_
Definition: HGCSD.h:54
Definition: vlib.h:208
static void unpackHexagonIndex(const uint32_t &idx, int &subdet, int &z, int &lay, int &wafer, int &celltyp, int &cell)
uint32_t HGCSD::setDetUnitId ( ForwardSubdetector subdet,
int  layer,
int  module,
int  cell,
int  iz,
G4ThreeVector &  pos 
)
private

Definition at line 266 of file HGCSD.cc.

References triggerObjects_cff::id, and numberingScheme_.

266  {
267  uint32_t id = numberingScheme_ ? numberingScheme_->getUnitID(subdet, layer, module, cell, iz, pos) : 0;
268  return id;
269 }
std::unique_ptr< HGCNumberingScheme > numberingScheme_
Definition: HGCSD.h:51
Definition: vlib.h:208
void HGCSD::update ( const BeginOfJob )
overrideprotectedvirtual

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(), edm::EventSetup::get(), levelT_, HGCalDDDConstants::levelTop(), HGCalDDDConstants::minSlope(), mouseBite_, mouseBiteCut_, nameX_, numberingScheme_, rejectMB_, slopeMin_, and waferRot_.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

204  {
205  const edm::EventSetup* es = (*job)();
207  es->get<IdealGeometryRecord>().get(nameX_, hdc);
208  if (hdc.isValid()) {
209  const HGCalDDDConstants* hgcons = hdc.product();
210  geom_mode_ = hgcons->geomMode();
211  slopeMin_ = hgcons->minSlope();
212  levelT_ = hgcons->levelTop();
213  numberingScheme_.reset(new HGCNumberingScheme(*hgcons, nameX_));
214  if (rejectMB_)
215  mouseBite_.reset(new HGCMouseBite(*hgcons, angles_, mouseBiteCut_, waferRot_));
216  } else {
217  edm::LogError("HGCSim") << "HCalSD : Cannot find HGCalDDDConstants for " << nameX_;
218  throw cms::Exception("Unknown", "HGCSD") << "Cannot find HGCalDDDConstants for " << nameX_ << "\n";
219  }
220 #ifdef EDM_ML_DEBUG
221  edm::LogVerbatim("HGCSim") << "HGCSD::Initialized with mode " << geom_mode_ << " Slope cut " << slopeMin_
222  << " top Level " << levelT_;
223 #endif
224 }
int levelT_
Definition: HGCSD.h:56
double mouseBiteCut_
Definition: HGCSD.h:58
std::string nameX_
Definition: HGCSD.h:49
std::vector< double > angles_
Definition: HGCSD.h:59
bool waferRot_
Definition: HGCSD.h:57
HGCalGeometryMode::GeometryMode geom_mode_
Definition: HGCSD.h:50
double slopeMin_
Definition: HGCSD.h:55
std::unique_ptr< HGCMouseBite > mouseBite_
Definition: HGCSD.h:52
double minSlope() const
HGCalGeometryMode::GeometryMode geomMode() const
std::unique_ptr< HGCNumberingScheme > numberingScheme_
Definition: HGCSD.h:51
bool rejectMB_
Definition: HGCSD.h:57
T get() const
Definition: EventSetup.h:71
int levelTop(int ind=0) const

Member Data Documentation

std::vector<double> HGCSD::angles_
private

Definition at line 59 of file HGCSD.h.

Referenced by HGCSD(), and update().

double HGCSD::eminHit_
private

Definition at line 53 of file HGCSD.h.

Referenced by filterHit(), and HGCSD().

HGCalGeometryMode::GeometryMode HGCSD::geom_mode_
private

Definition at line 50 of file HGCSD.h.

Referenced by update().

int HGCSD::levelT_
private

Definition at line 56 of file HGCSD.h.

Referenced by getEnergyDeposit(), setDetUnitId(), and update().

std::unique_ptr<HGCMouseBite> HGCSD::mouseBite_
private

Definition at line 52 of file HGCSD.h.

Referenced by HGCSD(), setDetUnitId(), and update().

double HGCSD::mouseBiteCut_
private

Definition at line 58 of file HGCSD.h.

Referenced by HGCSD(), and update().

ForwardSubdetector HGCSD::myFwdSubdet_
private

Definition at line 54 of file HGCSD.h.

Referenced by HGCSD(), and setDetUnitId().

std::string HGCSD::nameX_
private

Definition at line 49 of file HGCSD.h.

Referenced by HGCSD(), and update().

std::unique_ptr<HGCNumberingScheme> HGCSD::numberingScheme_
private

Definition at line 51 of file HGCSD.h.

Referenced by HGCSD(), setDetUnitId(), and update().

bool HGCSD::rejectMB_
private

Definition at line 57 of file HGCSD.h.

Referenced by HGCSD(), setDetUnitId(), and update().

double HGCSD::slopeMin_
private

Definition at line 55 of file HGCSD.h.

Referenced by getEnergyDeposit(), and update().

bool HGCSD::storeAllG4Hits_
private

Definition at line 57 of file HGCSD.h.

Referenced by HGCSD().

std::vector<double> HGCSD::t_Angle_
private

Definition at line 65 of file HGCSD.h.

Referenced by getEnergyDeposit(), initEvent(), and initRun().

std::vector<double> HGCSD::t_dEStep1_
private

Definition at line 64 of file HGCSD.h.

Referenced by getEnergyDeposit(), initEvent(), and initRun().

std::vector<double> HGCSD::t_dEStep2_
private

Definition at line 64 of file HGCSD.h.

Referenced by getEnergyDeposit(), initEvent(), and initRun().

uint32_t HGCSD::t_EventID_
private

Definition at line 62 of file HGCSD.h.

Referenced by initEvent(), and initRun().

std::vector<int> HGCSD::t_Layer_
private

Definition at line 63 of file HGCSD.h.

Referenced by getEnergyDeposit(), initEvent(), and initRun().

std::vector<int> HGCSD::t_Parcode_
private

Definition at line 63 of file HGCSD.h.

Referenced by getEnergyDeposit(), initEvent(), and initRun().

std::vector<double> HGCSD::t_TrackE_
private

Definition at line 64 of file HGCSD.h.

Referenced by getEnergyDeposit(), initEvent(), and initRun().

TTree* HGCSD::tree_
private

Definition at line 61 of file HGCSD.h.

Referenced by endEvent(), and initRun().

bool HGCSD::waferRot_
private

Definition at line 57 of file HGCSD.h.

Referenced by HGCSD(), and update().