CMS 3D CMS Logo

PEcalTBInfo.h
Go to the documentation of this file.
1 #ifndef EcalTestBeam_PEcalTBInfo_h
2 #define EcalTestBeam_PEcalTBInfo_h
3 // -*- C++ -*-
4 //
5 // Package: EcalTestBeam
6 // Class : PEcalTBInfo
7 //
8 //
9 //
10 
11 // system include files
12 #include <string>
13 #include <vector>
14 #include <memory>
15 
16 // user include files
17 
18 class PEcalTBInfo {
19  typedef std::vector<float> FloatVector;
20  typedef std::vector<int> IntVector;
21 
22 public:
23  PEcalTBInfo();
24  virtual ~PEcalTBInfo();
25 
26  // ---------- const member functions ---------------------
27  int nCrystal() const { return nCrystal_; }
28 
29  double etaBeam() const { return etaBeam_; }
30  double phiBeam() const { return phiBeam_; }
31  double dXbeam() const { return dXbeam_; }
32  double dYbeam() const { return dYbeam_; }
33 
34  double evXbeam() const { return evXbeam_; }
35  double evYbeam() const { return evYbeam_; }
36 
37  double phaseShift() const { return phaseShift_; }
38 
39  // ---------- static member functions --------------------
40 
41  // ---------- member functions ---------------------------
42  void clear();
43 
44  void setCrystal(int nCrystal);
45  void setBeamDirection(double etaBeam, double phiBeam);
46  void setBeamOffset(double dXbeam, double dYbeam);
47 
48  void setBeamPosition(double evXbeam, double evYbeam);
49  void setPhaseShift(double phaseShift);
50 
51 private:
52  // PEcalTBInfo(const PEcalTBInfo&);
53  // const PEcalTBInfo& operator=(const PEcalTBInfo&);
54 
55  // ---------- member data --------------------------------
56 
57  //fixed run beam parameters
58 
59  int nCrystal_;
60 
61  double etaBeam_, phiBeam_;
62  double dXbeam_, dYbeam_;
63 
64  //event beam parameters
65 
66  double evXbeam_, evYbeam_;
67 
68  // phase
69  double phaseShift_;
70 };
71 
72 #endif
PEcalTBInfo::phaseShift
double phaseShift() const
Definition: PEcalTBInfo.h:37
PEcalTBInfo::setPhaseShift
void setPhaseShift(double phaseShift)
Definition: PEcalTBInfo.cc:70
PEcalTBInfo::evYbeam_
double evYbeam_
Definition: PEcalTBInfo.h:66
PEcalTBInfo::setBeamPosition
void setBeamPosition(double evXbeam, double evYbeam)
Definition: PEcalTBInfo.cc:65
PEcalTBInfo::setCrystal
void setCrystal(int nCrystal)
Definition: PEcalTBInfo.cc:53
PEcalTBInfo::phaseShift_
double phaseShift_
Definition: PEcalTBInfo.h:69
PEcalTBInfo::clear
void clear()
Definition: PEcalTBInfo.cc:43
PEcalTBInfo::phiBeam_
double phiBeam_
Definition: PEcalTBInfo.h:61
PEcalTBInfo::setBeamDirection
void setBeamDirection(double etaBeam, double phiBeam)
Definition: PEcalTBInfo.cc:55
PEcalTBInfo::nCrystal_
int nCrystal_
Definition: PEcalTBInfo.h:59
PEcalTBInfo::phiBeam
double phiBeam() const
Definition: PEcalTBInfo.h:30
PEcalTBInfo::evYbeam
double evYbeam() const
Definition: PEcalTBInfo.h:35
PEcalTBInfo::nCrystal
int nCrystal() const
Definition: PEcalTBInfo.h:27
PEcalTBInfo::setBeamOffset
void setBeamOffset(double dXbeam, double dYbeam)
Definition: PEcalTBInfo.cc:60
PEcalTBInfo::dYbeam_
double dYbeam_
Definition: PEcalTBInfo.h:62
PEcalTBInfo::evXbeam_
double evXbeam_
Definition: PEcalTBInfo.h:66
PEcalTBInfo::etaBeam
double etaBeam() const
Definition: PEcalTBInfo.h:29
PEcalTBInfo::IntVector
std::vector< int > IntVector
Definition: PEcalTBInfo.h:20
PEcalTBInfo::FloatVector
std::vector< float > FloatVector
Definition: PEcalTBInfo.h:19
PEcalTBInfo::dXbeam
double dXbeam() const
Definition: PEcalTBInfo.h:31
PEcalTBInfo
Definition: PEcalTBInfo.h:18
PEcalTBInfo::~PEcalTBInfo
virtual ~PEcalTBInfo()
Definition: PEcalTBInfo.cc:26
PEcalTBInfo::dXbeam_
double dXbeam_
Definition: PEcalTBInfo.h:62
PEcalTBInfo::etaBeam_
double etaBeam_
Definition: PEcalTBInfo.h:61
PEcalTBInfo::PEcalTBInfo
PEcalTBInfo()
Definition: PEcalTBInfo.cc:20
PEcalTBInfo::dYbeam
double dYbeam() const
Definition: PEcalTBInfo.h:32
PEcalTBInfo::evXbeam
double evXbeam() const
Definition: PEcalTBInfo.h:34