test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
20  typedef std::vector<float> FloatVector;
21  typedef std::vector<int> IntVector;
22 
23 public:
24  PEcalTBInfo();
25  virtual ~PEcalTBInfo();
26 
27  // ---------- const member functions ---------------------
28  int nCrystal() const {return nCrystal_; }
29 
30  double etaBeam() const {return etaBeam_; }
31  double phiBeam() const {return phiBeam_; }
32  double dXbeam() const {return dXbeam_; }
33  double dYbeam() const {return dYbeam_; }
34 
35  double evXbeam() const {return evXbeam_; }
36  double evYbeam() const {return evYbeam_; }
37 
38  double phaseShift() const {return phaseShift_;}
39 
40  // ---------- static member functions --------------------
41 
42  // ---------- member functions ---------------------------
43  void clear();
44 
45  void setCrystal(int nCrystal);
46  void setBeamDirection(double etaBeam, double phiBeam);
47  void setBeamOffset(double dXbeam, double dYbeam);
48 
49  void setBeamPosition(double evXbeam, double evYbeam);
50  void setPhaseShift(double phaseShift);
51 
52 private:
53  // PEcalTBInfo(const PEcalTBInfo&);
54  // const PEcalTBInfo& operator=(const PEcalTBInfo&);
55 
56  // ---------- member data --------------------------------
57 
58  //fixed run beam parameters
59 
60  int nCrystal_;
61 
63  double dXbeam_,dYbeam_;
64 
65  //event beam parameters
66 
68 
69  // phase
70  double phaseShift_;
71 };
72 
73 
74 #endif
void setCrystal(int nCrystal)
Definition: PEcalTBInfo.cc:56
double evYbeam_
Definition: PEcalTBInfo.h:67
void setBeamPosition(double evXbeam, double evYbeam)
Definition: PEcalTBInfo.cc:70
void setPhaseShift(double phaseShift)
Definition: PEcalTBInfo.cc:75
double phiBeam_
Definition: PEcalTBInfo.h:62
double etaBeam() const
Definition: PEcalTBInfo.h:30
void clear()
Definition: PEcalTBInfo.cc:46
void setBeamDirection(double etaBeam, double phiBeam)
Definition: PEcalTBInfo.cc:60
void setBeamOffset(double dXbeam, double dYbeam)
Definition: PEcalTBInfo.cc:65
std::vector< int > IntVector
Definition: PEcalTBInfo.h:21
virtual ~PEcalTBInfo()
Definition: PEcalTBInfo.cc:28
int nCrystal() const
Definition: PEcalTBInfo.h:28
double dXbeam() const
Definition: PEcalTBInfo.h:32
double dYbeam_
Definition: PEcalTBInfo.h:63
double etaBeam_
Definition: PEcalTBInfo.h:62
double evXbeam_
Definition: PEcalTBInfo.h:67
double dXbeam_
Definition: PEcalTBInfo.h:63
double evXbeam() const
Definition: PEcalTBInfo.h:35
std::vector< float > FloatVector
Definition: PEcalTBInfo.h:20
double evYbeam() const
Definition: PEcalTBInfo.h:36
double phaseShift() const
Definition: PEcalTBInfo.h:38
double phiBeam() const
Definition: PEcalTBInfo.h:31
double dYbeam() const
Definition: PEcalTBInfo.h:33
double phaseShift_
Definition: PEcalTBInfo.h:70