SimDataFormats
EcalTestBeam
src
PEcalTBInfo.cc
Go to the documentation of this file.
1
//
2
//
3
4
// system include files
5
6
// user include files
7
#include "
SimDataFormats/EcalTestBeam/interface/PEcalTBInfo.h
"
8
9
//
10
// constants, enums and typedefs
11
//
12
13
//
14
// static data member definitions
15
//
16
17
//
18
// constructors and destructor
19
//
20
PEcalTBInfo::PEcalTBInfo
() {
clear
(); }
21
22
// PEcalTBInfo::PEcalTBInfo(const PEcalTBInfo& rhs) {
23
// // do actual copying here;
24
// }
25
26
PEcalTBInfo::~PEcalTBInfo
() {}
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
43
void
PEcalTBInfo::clear
() {
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
; }
PEcalTBInfo::phaseShift
double phaseShift() const
Definition:
PEcalTBInfo.h:37
PEcalTBInfo::setPhaseShift
void setPhaseShift(double phaseShift)
Definition:
PEcalTBInfo.cc:70
PEcalTBInfo::evYbeam_
double evYbeam_
Definition:
PEcalTBInfo.h:66
PEcalTBInfo::setBeamPosition
void setBeamPosition(double evXbeam, double evYbeam)
Definition:
PEcalTBInfo.cc:65
PEcalTBInfo::setCrystal
void setCrystal(int nCrystal)
Definition:
PEcalTBInfo.cc:53
PEcalTBInfo::phaseShift_
double phaseShift_
Definition:
PEcalTBInfo.h:69
PEcalTBInfo::clear
void clear()
Definition:
PEcalTBInfo.cc:43
PEcalTBInfo::phiBeam_
double phiBeam_
Definition:
PEcalTBInfo.h:61
PEcalTBInfo::setBeamDirection
void setBeamDirection(double etaBeam, double phiBeam)
Definition:
PEcalTBInfo.cc:55
PEcalTBInfo::nCrystal_
int nCrystal_
Definition:
PEcalTBInfo.h:59
PEcalTBInfo::phiBeam
double phiBeam() const
Definition:
PEcalTBInfo.h:30
PEcalTBInfo::evYbeam
double evYbeam() const
Definition:
PEcalTBInfo.h:35
PEcalTBInfo::nCrystal
int nCrystal() const
Definition:
PEcalTBInfo.h:27
PEcalTBInfo::setBeamOffset
void setBeamOffset(double dXbeam, double dYbeam)
Definition:
PEcalTBInfo.cc:60
PEcalTBInfo::dYbeam_
double dYbeam_
Definition:
PEcalTBInfo.h:62
PEcalTBInfo::evXbeam_
double evXbeam_
Definition:
PEcalTBInfo.h:66
PEcalTBInfo::etaBeam
double etaBeam() const
Definition:
PEcalTBInfo.h:29
PEcalTBInfo.h
PEcalTBInfo::dXbeam
double dXbeam() const
Definition:
PEcalTBInfo.h:31
PEcalTBInfo::~PEcalTBInfo
virtual ~PEcalTBInfo()
Definition:
PEcalTBInfo.cc:26
PEcalTBInfo::dXbeam_
double dXbeam_
Definition:
PEcalTBInfo.h:62
PEcalTBInfo::etaBeam_
double etaBeam_
Definition:
PEcalTBInfo.h:61
PEcalTBInfo::PEcalTBInfo
PEcalTBInfo()
Definition:
PEcalTBInfo.cc:20
PEcalTBInfo::dYbeam
double dYbeam() const
Definition:
PEcalTBInfo.h:32
PEcalTBInfo::evXbeam
double evXbeam() const
Definition:
PEcalTBInfo.h:34
Generated for CMSSW Reference Manual by
1.8.16