CMS 3D CMS Logo

HGCalSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HGCalSD_h
2 #define SimG4CMS_HGCalSD_h
3 // File: HGCalSD.h
5 // Description: Stores hits of the High Granularity Calorimeter (HGC) in the
6 // appropriate container (post TDR version)
8 
13 
14 #include <string>
15 
16 class HGCalDDDConstants;
17 class G4LogicalVolume;
18 class G4Step;
19 
20 class HGCalSD : public CaloSD, public Observer<const BeginOfJob *> {
21 public:
22  HGCalSD(const std::string &,
23  const HGCalDDDConstants *,
25  edm::ParameterSet const &,
26  const SimTrackManager *);
27  ~HGCalSD() override = default;
28 
29  uint32_t setDetUnitId(const G4Step *step) override;
30 
31 protected:
32  double getEnergyDeposit(const G4Step *) override;
33  using CaloSD::update;
34  void update(const BeginOfJob *) override;
35  void initRun() override;
36  bool filterHit(CaloG4Hit *, double) override;
37 
38 private:
39  uint32_t setDetUnitId(int, int, int, int, G4ThreeVector &);
40  bool isItinFidVolume(const G4ThreeVector &);
41 
43  std::unique_ptr<HGCalNumberingScheme> numberingScheme_;
44  std::unique_ptr<HGCMouseBite> mouseBite_;
53  int useSimWt_;
54  const double tan30deg_;
55  std::vector<double> angles_;
57 };
58 
59 #endif // HGCalSD_h
double distanceFromEdge_
Definition: HGCalSD.h:48
int levelT2_
Definition: HGCalSD.h:50
double slopeMin_
Definition: HGCalSD.h:48
Definition: CaloSD.h:40
HGCalSD(const std::string &, const HGCalDDDConstants *, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HGCalSD.cc:28
std::unique_ptr< HGCalNumberingScheme > numberingScheme_
Definition: HGCalSD.h:43
std::string nameX_
Definition: HGCalSD.h:46
double mouseBiteCut_
Definition: HGCalSD.h:49
void initRun() override
Definition: HGCalSD.cc:234
double getEnergyDeposit(const G4Step *) override
Definition: HGCalSD.cc:95
bool rejectMB_
Definition: HGCalSD.h:52
DetId::Detector mydet_
Definition: HGCalSD.h:45
uint32_t setDetUnitId(const G4Step *step) override
Definition: HGCalSD.cc:126
std::string missingFile_
Definition: HGCalSD.h:56
bool storeAllG4Hits_
Definition: HGCalSD.h:51
std::vector< double > angles_
Definition: HGCalSD.h:55
const HGCalDDDConstants * hgcons_
Definition: HGCalSD.h:42
const double tan30deg_
Definition: HGCalSD.h:54
bool waferRot_
Definition: HGCalSD.h:52
bool isItinFidVolume(const G4ThreeVector &)
Definition: HGCalSD.cc:253
~HGCalSD() override=default
int cornerMinMask_
Definition: HGCalSD.h:50
Detector
Definition: DetId.h:24
HGCalGeometryMode::GeometryMode geom_mode_
Definition: HGCalSD.h:47
double weight_
Definition: HGCalSD.h:49
bool fiducialCut_
Definition: HGCalSD.h:52
bool filterHit(CaloG4Hit *, double) override
Definition: HGCalSD.cc:236
int useSimWt_
Definition: HGCalSD.h:53
step
Definition: StallMonitor.cc:98
int levelT1_
Definition: HGCalSD.h:50
std::unique_ptr< HGCMouseBite > mouseBite_
Definition: HGCalSD.h:44
double eminHit_
Definition: HGCalSD.h:48
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
Definition: CaloSD.cc:688
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: HGCalSD.cc:210