CMS 3D CMS Logo

ECalSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_ECalSD_h
2 #define SimG4CMS_ECalSD_h
3 // File: ECalSD.h
5 // Description: Stores hits of Electromagnetic calorimeters in appropriate
6 // container
7 // Use in your sensitive detector builder:
8 // ECalSD* ecalSD = new ECalSD(SDname, new CaloNumberingScheme());
10 
17 
18 #include "G4String.hh"
19 #include <string>
20 #include <map>
21 
22 class EcalBaseNumber;
23 class G4LogicalVolume;
25 
26 class ECalSD : public CaloSD {
27 
28 public:
29 
30  ECalSD(G4String, const DDCompactView &, const SensitiveDetectorCatalog &,
31  edm::ParameterSet const & p, const SimTrackManager*);
32  virtual ~ECalSD();
33  virtual double getEnergyDeposit(G4Step*);
34  virtual uint16_t getRadiationLength(G4Step *);
35  virtual uint16_t getLayerIDForTimeSim(G4Step *);
36  virtual uint32_t setDetUnitId(G4Step*);
38  virtual int getTrackID(G4Track*);
39  virtual uint16_t getDepth(G4Step*);
40 private:
41  void initMap(G4String, const DDCompactView &);
42  double curve_LY(G4Step*);
43  double crystalLength(G4LogicalVolume*);
44  void getBaseNumber(const G4Step*);
45  double getBirkL3(G4Step*);
46  std::vector<double> getDDDArray(const std::string&,
47  const DDsvalues_type&);
48  std::vector<std::string> getStringArray(const std::string&,
49  const DDsvalues_type&);
50  bool isEB;
51  bool isEE;
56  double slopeLY;
58  std::map<G4LogicalVolume*,double> xtalLMap;
59  std::vector<G4LogicalVolume*> useDepth1, useDepth2, noWeight;
63 
64 };
65 
66 #endif // ECalSD_h
bool useBirkL3
Definition: ECalSD.h:54
std::vector< std::string > getStringArray(const std::string &, const DDsvalues_type &)
Definition: ECalSD.cc:540
double birkSlope
Definition: ECalSD.h:55
double slopeLY
Definition: ECalSD.h:56
std::vector< G4LogicalVolume * > useDepth1
Definition: ECalSD.h:59
Definition: CaloSD.h:42
void getBaseNumber(const G4Step *)
Definition: ECalSD.cc:475
virtual double getEnergyDeposit(G4Step *)
Definition: ECalSD.cc:149
double birk1
Definition: ECalSD.h:55
bool useWeight
Definition: ECalSD.h:53
type of data representation of DDCompactView
Definition: DDCompactView.h:90
bool storeLayerTimeSim
Definition: ECalSD.h:53
std::vector< G4LogicalVolume * > noWeight
Definition: ECalSD.h:59
bool storeRL
Definition: ECalSD.h:53
std::vector< G4LogicalVolume * > useDepth2
Definition: ECalSD.h:59
virtual uint16_t getDepth(G4Step *)
Definition: ECalSD.cc:237
std::string depth1Name
Definition: ECalSD.h:57
virtual ~ECalSD()
Definition: ECalSD.cc:145
EcalBaseNumber theBaseNumber
Definition: ECalSD.h:60
bool storeTrack
Definition: ECalSD.h:53
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
Definition: DDsvalues.h:20
double crystalLength(G4LogicalVolume *)
Definition: ECalSD.cc:467
virtual uint16_t getLayerIDForTimeSim(G4Step *)
Definition: ECalSD.cc:265
virtual int getTrackID(G4Track *)
Definition: ECalSD.cc:216
void initMap(G4String, const DDCompactView &)
Definition: ECalSD.cc:322
double curve_LY(G4Step *)
Definition: ECalSD.cc:433
std::string depth2Name
Definition: ECalSD.h:57
Definition: ECalSD.h:26
bool ageingWithSlopeLY
Definition: ECalSD.h:62
bool useBirk
Definition: ECalSD.h:54
bool isEE
Definition: ECalSD.h:51
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &)
Definition: ECalSD.cc:521
virtual uint16_t getRadiationLength(G4Step *)
Definition: ECalSD.cc:246
double getBirkL3(G4Step *)
Definition: ECalSD.cc:495
ECalSD(G4String, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &p, const SimTrackManager *)
Definition: ECalSD.cc:38
bool isEB
Definition: ECalSD.h:50
double birk2
Definition: ECalSD.h:55
virtual uint32_t setDetUnitId(G4Step *)
Definition: ECalSD.cc:303
EcalNumberingScheme * numberingScheme
Definition: ECalSD.h:52
EnergyResolutionVsLumi ageing
Definition: ECalSD.h:61
std::map< G4LogicalVolume *, double > xtalLMap
Definition: ECalSD.h:58
void setNumberingScheme(EcalNumberingScheme *)
Definition: ECalSD.cc:312
double birkCut
Definition: ECalSD.h:55
std::string crystalMat
Definition: ECalSD.h:57
double birk3
Definition: ECalSD.h:55