CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  const double tan30deg_;
54  std::vector<double> angles_;
55 };
56 
57 #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:228
double getEnergyDeposit(const G4Step *) override
Definition: HGCalSD.cc:93
bool rejectMB_
Definition: HGCalSD.h:52
DetId::Detector mydet_
Definition: HGCalSD.h:45
uint32_t setDetUnitId(const G4Step *step) override
Definition: HGCalSD.cc:124
bool storeAllG4Hits_
Definition: HGCalSD.h:51
std::vector< double > angles_
Definition: HGCalSD.h:54
const HGCalDDDConstants * hgcons_
Definition: HGCalSD.h:42
const double tan30deg_
Definition: HGCalSD.h:53
bool waferRot_
Definition: HGCalSD.h:52
bool isItinFidVolume(const G4ThreeVector &)
Definition: HGCalSD.cc:247
~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:230
step
Definition: StallMonitor.cc:94
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:679
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: HGCalSD.cc:205