CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PEcalTBInfo.cc
Go to the documentation of this file.
1 //
2 //
3 
4 // system include files
5 
6 // user include files
8 
9 //
10 // constants, enums and typedefs
11 //
12 
13 //
14 // static data member definitions
15 //
16 
17 //
18 // constructors and destructor
19 //
21 
22 // PEcalTBInfo::PEcalTBInfo(const PEcalTBInfo& rhs) {
23 // // do actual copying here;
24 // }
25 
27 
28 //
29 // assignment operators
30 //
31 // const PEcalTBInfo& PEcalTBInfo::operator=(const PEcalTBInfo& rhs) {
32 // //An exception safe implementation is
33 // PEcalTBInfo temp(rhs);
34 // swap(rhs);
35 //
36 // return *this;
37 // }
38 
39 //
40 // member functions
41 //
42 
44  nCrystal_ = 0;
45 
46  etaBeam_ = phiBeam_ = 0.;
47  dXbeam_ = dYbeam_ = 0.;
48 
49  evXbeam_ = evYbeam_ = 0.;
50  phaseShift_ = 1.;
51 }
52 
53 void PEcalTBInfo::setCrystal(int nCrystal) { nCrystal_ = nCrystal; }
54 
55 void PEcalTBInfo::setBeamDirection(double etaBeam, double phiBeam) {
56  etaBeam_ = etaBeam;
57  phiBeam_ = phiBeam;
58 }
59 
60 void PEcalTBInfo::setBeamOffset(double dXbeam, double dYbeam) {
61  dXbeam_ = dXbeam;
62  dYbeam_ = dYbeam;
63 }
64 
65 void PEcalTBInfo::setBeamPosition(double evXbeam, double evYbeam) {
66  evXbeam_ = evXbeam;
67  evYbeam_ = evYbeam;
68 }
69 
70 void PEcalTBInfo::setPhaseShift(double phaseShift) { phaseShift_ = phaseShift; }
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
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
double dXbeam() const
Definition: PEcalTBInfo.h:31
double evXbeam() const
Definition: PEcalTBInfo.h:34
double phaseShift_
Definition: PEcalTBInfo.h:69