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
double dYbeam() const
Definition: PEcalTBInfo.h:32
void setCrystal(int nCrystal)
Definition: PEcalTBInfo.cc:53
double evYbeam_
Definition: PEcalTBInfo.h:66
void setBeamPosition(double evXbeam, double evYbeam)
Definition: PEcalTBInfo.cc:65
double evYbeam() const
Definition: PEcalTBInfo.h:35
double phaseShift() const
Definition: PEcalTBInfo.h:37
void setPhaseShift(double phaseShift)
Definition: PEcalTBInfo.cc:70
double phiBeam_
Definition: PEcalTBInfo.h:61
double phiBeam() const
Definition: PEcalTBInfo.h:30
void clear()
Definition: PEcalTBInfo.cc:43
void setBeamDirection(double etaBeam, double phiBeam)
Definition: PEcalTBInfo.cc:55
void setBeamOffset(double dXbeam, double dYbeam)
Definition: PEcalTBInfo.cc:60
std::vector< int > IntVector
Definition: PEcalTBInfo.h:20
int nCrystal() const
Definition: PEcalTBInfo.h:27
virtual ~PEcalTBInfo()
Definition: PEcalTBInfo.cc:26
double dYbeam_
Definition: PEcalTBInfo.h:62
double etaBeam_
Definition: PEcalTBInfo.h:61
double evXbeam_
Definition: PEcalTBInfo.h:66
double etaBeam() const
Definition: PEcalTBInfo.h:29
double dXbeam_
Definition: PEcalTBInfo.h:62
std::vector< float > FloatVector
Definition: PEcalTBInfo.h:19
double dXbeam() const
Definition: PEcalTBInfo.h:31
double evXbeam() const
Definition: PEcalTBInfo.h:34
double phaseShift_
Definition: PEcalTBInfo.h:69