CMS 3D CMS Logo

HGCScintSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HGCScintSD_h
2 #define SimG4CMS_HGCScintSD_h
3 // File: HGCScintSD.h
5 // Description: Stores hits of the High Granularity Calorimeter (HGC) in the
6 // appropriate container (post TDR version)
8 
12 
13 #include <string>
14 
15 class DDCompactView;
16 class HGCalDDDConstants;
17 class G4LogicalVolume;
18 class G4Step;
19 
20 class HGCScintSD : public CaloSD, public Observer<const BeginOfJob *> {
21 public:
22  HGCScintSD(const std::string &,
23  const DDCompactView &,
25  edm::ParameterSet const &,
26  const SimTrackManager *);
27  ~HGCScintSD() 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_;
50  bool useBirk_;
52 };
53 
54 #endif // HGCScintSD_h
double birk2_
Definition: HGCScintSD.h:51
HGCalGeometryMode::GeometryMode geom_mode_
Definition: HGCScintSD.h:46
int levelT2_
Definition: HGCScintSD.h:48
double birk1_
Definition: HGCScintSD.h:51
Definition: CaloSD.h:38
double distanceFromEdge_
Definition: HGCScintSD.h:47
uint32_t setDetUnitId(const G4Step *step) override
Definition: HGCScintSD.cc:131
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
int levelT1_
Definition: HGCScintSD.h:48
bool fiducialCut_
Definition: HGCScintSD.h:49
bool useBirk_
Definition: HGCScintSD.h:50
const HGCalDDDConstants * hgcons_
Definition: HGCScintSD.h:42
HGCScintSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HGCScintSD.cc:37
double weight_
Definition: HGCScintSD.h:51
bool isItinFidVolume(const G4ThreeVector &)
Definition: HGCScintSD.cc:218
void initRun() override
Definition: HGCScintSD.cc:207
double getEnergyDeposit(const G4Step *) override
Definition: HGCScintSD.cc:98
double eminHit_
Definition: HGCScintSD.h:47
Detector
Definition: DetId.h:26
double slopeMin_
Definition: HGCScintSD.h:47
std::unique_ptr< HGCalNumberingScheme > numberingScheme_
Definition: HGCScintSD.h:43
std::string nameX_
Definition: HGCScintSD.h:45
~HGCScintSD() override=default
DetId::Detector mydet_
Definition: HGCScintSD.h:44
step
Definition: StallMonitor.cc:94
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: HGCScintSD.cc:186
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
Definition: CaloSD.cc:460
double birk3_
Definition: HGCScintSD.h:51
bool storeAllG4Hits_
Definition: HGCScintSD.h:49
bool filterHit(CaloG4Hit *, double) override
Definition: HGCScintSD.cc:209