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 
22 public:
23 
24  HGCScintSD(const std::string& , const DDCompactView &,
26  const SimTrackManager*);
27  ~HGCScintSD() override = default;
28 
29  uint32_t setDetUnitId(const G4Step* step) override;
30 
31 protected:
32 
33  double getEnergyDeposit(const G4Step*) override;
34  using CaloSD::update;
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_;
52  bool useBirk_;
54 };
55 
56 #endif // HGCScintSD_h
double birk2_
Definition: HGCScintSD.h:53
HGCalGeometryMode::GeometryMode geom_mode_
Definition: HGCScintSD.h:48
int levelT2_
Definition: HGCScintSD.h:50
double birk1_
Definition: HGCScintSD.h:53
Definition: CaloSD.h:37
double distanceFromEdge_
Definition: HGCScintSD.h:49
uint32_t setDetUnitId(const G4Step *step) override
Definition: HGCScintSD.cc:135
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
int levelT1_
Definition: HGCScintSD.h:50
bool fiducialCut_
Definition: HGCScintSD.h:51
bool useBirk_
Definition: HGCScintSD.h:52
const HGCalDDDConstants * hgcons_
Definition: HGCScintSD.h:44
HGCScintSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HGCScintSD.cc:37
double weight_
Definition: HGCScintSD.h:53
bool isItinFidVolume(const G4ThreeVector &)
Definition: HGCScintSD.cc:238
void initRun() override
Definition: HGCScintSD.cc:224
double getEnergyDeposit(const G4Step *) override
Definition: HGCScintSD.cc:95
double eminHit_
Definition: HGCScintSD.h:49
Detector
Definition: DetId.h:26
double slopeMin_
Definition: HGCScintSD.h:49
std::unique_ptr< HGCalNumberingScheme > numberingScheme_
Definition: HGCScintSD.h:45
std::string nameX_
Definition: HGCScintSD.h:47
~HGCScintSD() override=default
DetId::Detector mydet_
Definition: HGCScintSD.h:46
step
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: HGCScintSD.cc:201
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
Definition: CaloSD.cc:484
double birk3_
Definition: HGCScintSD.h:53
bool storeAllG4Hits_
Definition: HGCScintSD.h:51
bool filterHit(CaloG4Hit *, double) override
Definition: HGCScintSD.cc:227