CMS 3D CMS Logo

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 
54 
56  etaBeam_ = etaBeam;
57  phiBeam_ = phiBeam;
58 }
59 
61  dXbeam_ = dXbeam;
62  dYbeam_ = dYbeam;
63 }
64 
66  evXbeam_ = evXbeam;
67  evYbeam_ = evYbeam;
68 }
69 
void setCrystal(int nCrystal)
Definition: PEcalTBInfo.cc:53
double evYbeam_
Definition: PEcalTBInfo.h:66
void setBeamPosition(double evXbeam, double evYbeam)
Definition: PEcalTBInfo.cc:65
void setPhaseShift(double phaseShift)
Definition: PEcalTBInfo.cc:70
double phiBeam_
Definition: PEcalTBInfo.h:61
double etaBeam() const
Definition: PEcalTBInfo.h:29
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
virtual ~PEcalTBInfo()
Definition: PEcalTBInfo.cc:26
int nCrystal() const
Definition: PEcalTBInfo.h:27
double dXbeam() const
Definition: PEcalTBInfo.h:31
double dYbeam_
Definition: PEcalTBInfo.h:62
double etaBeam_
Definition: PEcalTBInfo.h:61
double evXbeam_
Definition: PEcalTBInfo.h:66
double dXbeam_
Definition: PEcalTBInfo.h:62
double evXbeam() const
Definition: PEcalTBInfo.h:34
double evYbeam() const
Definition: PEcalTBInfo.h:35
double phaseShift() const
Definition: PEcalTBInfo.h:37
double phiBeam() const
Definition: PEcalTBInfo.h:30
double dYbeam() const
Definition: PEcalTBInfo.h:32
double phaseShift_
Definition: PEcalTBInfo.h:69