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 DDCompactView;
17 class HGCalDDDConstants;
18 class G4LogicalVolume;
19 class G4Step;
20 
21 class HGCalSD : public CaloSD, public Observer<const BeginOfJob *> {
22 
23 public:
24 
25  HGCalSD(const std::string& , const DDCompactView &,
27  edm::ParameterSet const &, const SimTrackManager*);
28  ~HGCalSD() override = default;
29 
30  uint32_t setDetUnitId(const G4Step* step) override;
31 
32 protected:
33 
34  double getEnergyDeposit(const G4Step*) override;
35  void update(const BeginOfJob *) override;
36  void initRun() override;
37  bool filterHit(CaloG4Hit*, double) override;
38 
39 private:
40 
41  uint32_t setDetUnitId(int, int, int, int, G4ThreeVector &);
42  bool isItinFidVolume (const G4ThreeVector&);
43 
45  std::unique_ptr<HGCalNumberingScheme> numberingScheme_;
46  std::unique_ptr<HGCMouseBite> mouseBite_;
55  const double tan30deg_;
56  std::vector<double> angles_;
57 };
58 
59 #endif // HGCalSD_h
double distanceFromEdge_
Definition: HGCalSD.h:50
int levelT2_
Definition: HGCalSD.h:52
double slopeMin_
Definition: HGCalSD.h:50
Definition: CaloSD.h:37
std::unique_ptr< HGCalNumberingScheme > numberingScheme_
Definition: HGCalSD.h:45
std::string nameX_
Definition: HGCalSD.h:48
double mouseBiteCut_
Definition: HGCalSD.h:51
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:83
HGCalSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HGCalSD.cc:36
void initRun() override
Definition: HGCalSD.cc:235
double getEnergyDeposit(const G4Step *) override
Definition: HGCalSD.cc:96
bool rejectMB_
Definition: HGCalSD.h:54
DetId::Detector mydet_
Definition: HGCalSD.h:47
uint32_t setDetUnitId(const G4Step *step) override
Definition: HGCalSD.cc:134
bool storeAllG4Hits_
Definition: HGCalSD.h:53
std::vector< double > angles_
Definition: HGCalSD.h:56
const HGCalDDDConstants * hgcons_
Definition: HGCalSD.h:44
const double tan30deg_
Definition: HGCalSD.h:55
bool waferRot_
Definition: HGCalSD.h:54
bool isItinFidVolume(const G4ThreeVector &)
Definition: HGCalSD.cc:249
~HGCalSD() override=default
Detector
Definition: DetId.h:26
HGCalGeometryMode::GeometryMode geom_mode_
Definition: HGCalSD.h:49
double weight_
Definition: HGCalSD.h:51
bool fiducialCut_
Definition: HGCalSD.h:54
bool filterHit(CaloG4Hit *, double) override
Definition: HGCalSD.cc:238
step
int levelT1_
Definition: HGCalSD.h:52
std::unique_ptr< HGCMouseBite > mouseBite_
Definition: HGCalSD.h:46
double eminHit_
Definition: HGCalSD.h:50
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: HGCalSD.cc:205