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  void update(const BeginOfJob *) override;
35  void initRun() override;
36  bool filterHit(CaloG4Hit*, double) override;
37 
38 private:
39 
40  uint32_t setDetUnitId(int, int, int, int, G4ThreeVector &);
41  bool isItinFidVolume (const G4ThreeVector&);
42 
44  std::unique_ptr<HGCalNumberingScheme> numberingScheme_;
51  bool useBirk_;
53 };
54 
55 #endif // HGCScintSD_h
double birk2_
Definition: HGCScintSD.h:52
HGCalGeometryMode::GeometryMode geom_mode_
Definition: HGCScintSD.h:47
int levelT2_
Definition: HGCScintSD.h:49
double birk1_
Definition: HGCScintSD.h:52
Definition: CaloSD.h:37
double distanceFromEdge_
Definition: HGCScintSD.h:48
uint32_t setDetUnitId(const G4Step *step) override
Definition: HGCScintSD.cc:135
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:83
int levelT1_
Definition: HGCScintSD.h:49
bool fiducialCut_
Definition: HGCScintSD.h:50
bool useBirk_
Definition: HGCScintSD.h:51
const HGCalDDDConstants * hgcons_
Definition: HGCScintSD.h:43
HGCScintSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HGCScintSD.cc:37
double weight_
Definition: HGCScintSD.h:52
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:48
Detector
Definition: DetId.h:26
double slopeMin_
Definition: HGCScintSD.h:48
std::unique_ptr< HGCalNumberingScheme > numberingScheme_
Definition: HGCScintSD.h:44
std::string nameX_
Definition: HGCScintSD.h:46
~HGCScintSD() override=default
DetId::Detector mydet_
Definition: HGCScintSD.h:45
step
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: HGCScintSD.cc:201
double birk3_
Definition: HGCScintSD.h:52
bool storeAllG4Hits_
Definition: HGCScintSD.h:50
bool filterHit(CaloG4Hit *, double) override
Definition: HGCScintSD.cc:227