CMS 3D CMS Logo

MaterialInformation.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_CaloHit_MaterialInformation_H
2 #define SimDataFormats_CaloHit_MaterialInformation_H
3 
4 #include <string>
5 #include <vector>
6 
7 // Persistent information about steps in material
8 
10 public:
12  std::string vname, int id = 0, float eta = 0, float phi = 0, float length = 0, float radlen = 0, float intlen = 0)
13  : vname_(vname), id_(id), eta_(eta), phi_(phi), length_(length), radlen_(radlen), intlen_(intlen) {}
14  MaterialInformation() : vname_(""), id_(0), eta_(0), phi_(0), length_(0), radlen_(0), intlen_(0) {}
15 
16  //Names
17  static const char *name() { return "MaterialInformation"; }
18  const char *getName() const { return name(); }
19  std::string vname() const { return vname_; }
20  int id() const { return id_; }
21  void setID(int i) { id_ = i; }
22 
23  //Track eta, phi
24  double trackEta() const { return eta_; }
25  void setTrackEta(double e) { eta_ = e; }
26  double trackPhi() const { return phi_; }
27  void setTrackPhi(double f) { phi_ = f; }
28 
29  //Lengths
30  double stepLength() const { return length_; }
31  void setStepLength(double l) { length_ = l; }
32  double radiationLength() const { return radlen_; }
33  void setRadiationLength(double r) { radlen_ = r; }
34  double interactionLength() const { return intlen_; }
35  void setInteractionLength(double i) { intlen_ = i; }
36 
37 protected:
39  int id_;
40  float eta_;
41  float phi_;
42  float length_;
43  float radlen_;
44  float intlen_;
45 };
46 
47 namespace edm {
48  typedef std::vector<MaterialInformation> MaterialInformationContainer;
49 } // namespace edm
50 
51 #include <iosfwd>
52 std::ostream &operator<<(std::ostream &, const MaterialInformation &);
53 
54 #endif // _SimDataFormats_CaloHit_MaterialInformation_h_
operator<<
std::ostream & operator<<(std::ostream &, const MaterialInformation &)
Definition: MaterialInformation.cc:5
mps_fire.i
i
Definition: mps_fire.py:428
MaterialInformation::setTrackEta
void setTrackEta(double e)
Definition: MaterialInformation.h:25
MaterialInformation::MaterialInformation
MaterialInformation()
Definition: MaterialInformation.h:14
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
edm::MaterialInformationContainer
std::vector< MaterialInformation > MaterialInformationContainer
Definition: MaterialInformation.h:48
edm
HLT enums.
Definition: AlignableModifier.h:19
MaterialInformation::setInteractionLength
void setInteractionLength(double i)
Definition: MaterialInformation.h:35
MaterialInformation::radiationLength
double radiationLength() const
Definition: MaterialInformation.h:32
MaterialInformation::getName
const char * getName() const
Definition: MaterialInformation.h:18
MaterialInformation::phi_
float phi_
Definition: MaterialInformation.h:41
MaterialInformation::vname_
std::string vname_
Definition: MaterialInformation.h:38
MaterialInformation
Definition: MaterialInformation.h:9
MaterialInformation::length_
float length_
Definition: MaterialInformation.h:42
PVValHelper::eta
Definition: PVValidationHelpers.h:70
MaterialInformation::setStepLength
void setStepLength(double l)
Definition: MaterialInformation.h:31
MaterialInformation::id_
int id_
Definition: MaterialInformation.h:39
MaterialInformation::vname
std::string vname() const
Definition: MaterialInformation.h:19
MaterialInformation::stepLength
double stepLength() const
Definition: MaterialInformation.h:30
MaterialInformation::name
static const char * name()
Definition: MaterialInformation.h:17
MaterialInformation::trackEta
double trackEta() const
Definition: MaterialInformation.h:24
MaterialInformation::id
int id() const
Definition: MaterialInformation.h:20
MaterialInformation::eta_
float eta_
Definition: MaterialInformation.h:40
MaterialInformation::setTrackPhi
void setTrackPhi(double f)
Definition: MaterialInformation.h:27
MaterialInformation::setRadiationLength
void setRadiationLength(double r)
Definition: MaterialInformation.h:33
MaterialInformation::setID
void setID(int i)
Definition: MaterialInformation.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
alignCSCRings.r
r
Definition: alignCSCRings.py:93
MaterialInformation::trackPhi
double trackPhi() const
Definition: MaterialInformation.h:26
DDAxes::phi
MaterialInformation::radlen_
float radlen_
Definition: MaterialInformation.h:43
MaterialInformation::MaterialInformation
MaterialInformation(std::string vname, int id=0, float eta=0, float phi=0, float length=0, float radlen=0, float intlen=0)
Definition: MaterialInformation.h:11
MaterialInformation::intlen_
float intlen_
Definition: MaterialInformation.h:44
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
MaterialInformation::interactionLength
double interactionLength() const
Definition: MaterialInformation.h:34