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 // $Id: PEcalTBInfo.h,v 1.2 2006/10/25 16:58:04 fabiocos Exp $
10 //
11 
12 // system include files
13 #include <string>
14 #include <vector>
15 #include <memory>
16 
17 // user include files
18 
19 class PEcalTBInfo {
20 
21  typedef std::vector<float> FloatVector;
22  typedef std::vector<int> IntVector;
23 
24 public:
25  PEcalTBInfo();
26  virtual ~PEcalTBInfo();
27 
28  // ---------- const member functions ---------------------
29  int nCrystal() const {return nCrystal_; }
30 
31  double etaBeam() const {return etaBeam_; }
32  double phiBeam() const {return phiBeam_; }
33  double dXbeam() const {return dXbeam_; }
34  double dYbeam() const {return dYbeam_; }
35 
36  double evXbeam() const {return evXbeam_; }
37  double evYbeam() const {return evYbeam_; }
38 
39  double phaseShift() const {return phaseShift_;}
40 
41  // ---------- static member functions --------------------
42 
43  // ---------- member functions ---------------------------
44  void clear();
45 
46  void setCrystal(int nCrystal);
47  void setBeamDirection(double etaBeam, double phiBeam);
48  void setBeamOffset(double dXbeam, double dYbeam);
49 
50  void setBeamPosition(double evXbeam, double evYbeam);
51  void setPhaseShift(double phaseShift);
52 
53 private:
54  // PEcalTBInfo(const PEcalTBInfo&);
55  // const PEcalTBInfo& operator=(const PEcalTBInfo&);
56 
57  // ---------- member data --------------------------------
58 
59  //fixed run beam parameters
60 
61  int nCrystal_;
62 
64  double dXbeam_,dYbeam_;
65 
66  //event beam parameters
67 
69 
70  // phase
71  double phaseShift_;
72 };
73 
74 
75 #endif
void setCrystal(int nCrystal)
Definition: PEcalTBInfo.cc:57
double evYbeam_
Definition: PEcalTBInfo.h:68
void setBeamPosition(double evXbeam, double evYbeam)
Definition: PEcalTBInfo.cc:71
void setPhaseShift(double phaseShift)
Definition: PEcalTBInfo.cc:76
double phiBeam_
Definition: PEcalTBInfo.h:63
double etaBeam() const
Definition: PEcalTBInfo.h:31
void clear()
Definition: PEcalTBInfo.cc:47
void setBeamDirection(double etaBeam, double phiBeam)
Definition: PEcalTBInfo.cc:61
void setBeamOffset(double dXbeam, double dYbeam)
Definition: PEcalTBInfo.cc:66
std::vector< int > IntVector
Definition: PEcalTBInfo.h:22
virtual ~PEcalTBInfo()
Definition: PEcalTBInfo.cc:29
int nCrystal() const
Definition: PEcalTBInfo.h:29
double dXbeam() const
Definition: PEcalTBInfo.h:33
double dYbeam_
Definition: PEcalTBInfo.h:64
double etaBeam_
Definition: PEcalTBInfo.h:63
double evXbeam_
Definition: PEcalTBInfo.h:68
double dXbeam_
Definition: PEcalTBInfo.h:64
double evXbeam() const
Definition: PEcalTBInfo.h:36
std::vector< float > FloatVector
Definition: PEcalTBInfo.h:21
double evYbeam() const
Definition: PEcalTBInfo.h:37
double phaseShift() const
Definition: PEcalTBInfo.h:39
double phiBeam() const
Definition: PEcalTBInfo.h:32
double dYbeam() const
Definition: PEcalTBInfo.h:34
double phaseShift_
Definition: PEcalTBInfo.h:71