CMS 3D CMS Logo

HFNoseSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HFNoseSD_h
2 #define SimG4CMS_HFNoseSD_h
3 // File: HFNoseSD.h
5 // Description: Stores hits of the High Granularity Calorimeter (HGC) in the
6 // appropriate container (post TDR version)
8 
14 
15 #include <string>
16 
17 class HGCalDDDConstants;
18 class G4LogicalVolume;
19 class G4Step;
20 
21 class HFNoseSD : public CaloSD, public Observer<const BeginOfJob *> {
22 public:
23  HFNoseSD(const std::string &,
24  const HGCalDDDConstants *,
26  edm::ParameterSet const &,
27  const SimTrackManager *);
28  ~HFNoseSD() override = default;
29 
30  uint32_t setDetUnitId(const G4Step *step) override;
31 
32 protected:
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  uint32_t setDetUnitId(int, int, int, int, G4ThreeVector &);
41  bool isItinFidVolume(const G4ThreeVector &);
42 
44  std::unique_ptr<HFNoseNumberingScheme> numberingScheme_;
45  std::unique_ptr<HGCGuardRing> guardRing_;
46  std::unique_ptr<HGCMouseBite> mouseBite_;
55  const double tan30deg_;
56  std::vector<double> angles_;
57 };
58 
59 #endif // HFNoseSD_h
double eminHit_
Definition: HFNoseSD.h:49
std::unique_ptr< HFNoseNumberingScheme > numberingScheme_
Definition: HFNoseSD.h:44
int cornerMinMask_
Definition: HFNoseSD.h:51
Definition: CaloSD.h:40
bool storeAllG4Hits_
Definition: HFNoseSD.h:52
int levelT1_
Definition: HFNoseSD.h:51
bool fiducialCut_
Definition: HFNoseSD.h:53
double distanceFromEdge_
Definition: HFNoseSD.h:50
uint32_t setDetUnitId(const G4Step *step) override
Definition: HFNoseSD.cc:114
double mouseBiteCut_
Definition: HFNoseSD.h:50
bool rejectMB_
Definition: HFNoseSD.h:53
bool waferRot_
Definition: HFNoseSD.h:53
HGCalGeometryMode::GeometryMode geom_mode_
Definition: HFNoseSD.h:48
double weight_
Definition: HFNoseSD.h:49
~HFNoseSD() override=default
HFNoseSD(const std::string &, const HGCalDDDConstants *, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HFNoseSD.cc:27
bool isItinFidVolume(const G4ThreeVector &)
Definition: HFNoseSD.cc:212
const double tan30deg_
Definition: HFNoseSD.h:55
int useSimWt_
Definition: HFNoseSD.h:54
bool checkID_
Definition: HFNoseSD.h:53
int levelT2_
Definition: HFNoseSD.h:51
const HGCalDDDConstants * hgcons_
Definition: HFNoseSD.h:43
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: HFNoseSD.cc:169
double getEnergyDeposit(const G4Step *) override
Definition: HFNoseSD.cc:83
int verbose_
Definition: HFNoseSD.h:54
std::string nameX_
Definition: HFNoseSD.h:47
void initRun() override
Definition: HFNoseSD.cc:197
std::unique_ptr< HGCMouseBite > mouseBite_
Definition: HFNoseSD.h:46
step
Definition: StallMonitor.cc:83
std::unique_ptr< HGCGuardRing > guardRing_
Definition: HFNoseSD.h:45
std::vector< double > angles_
Definition: HFNoseSD.h:56
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
Definition: CaloSD.cc:749
bool filterHit(CaloG4Hit *, double) override
Definition: HFNoseSD.cc:199
double slopeMin_
Definition: HFNoseSD.h:49