Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
() {
21
clear
();
22
}
23
24
// PEcalTBInfo::PEcalTBInfo(const PEcalTBInfo& rhs) {
25
// // do actual copying here;
26
// }
27
28
PEcalTBInfo::~PEcalTBInfo
() {
29
}
30
31
//
32
// assignment operators
33
//
34
// const PEcalTBInfo& PEcalTBInfo::operator=(const PEcalTBInfo& rhs) {
35
// //An exception safe implementation is
36
// PEcalTBInfo temp(rhs);
37
// swap(rhs);
38
//
39
// return *this;
40
// }
41
42
//
43
// member functions
44
//
45
46
void
PEcalTBInfo::clear
() {
47
nCrystal_
= 0;
48
49
etaBeam_
=
phiBeam_
= 0.;
50
dXbeam_
=
dYbeam_
= 0.;
51
52
evXbeam_
=
evYbeam_
= 0.;
53
phaseShift_
= 1.;
54
}
55
56
void
PEcalTBInfo::setCrystal
(
int
nCrystal) {
57
nCrystal_
=
nCrystal
;
58
}
59
60
void
PEcalTBInfo::setBeamDirection
(
double
etaBeam,
double
phiBeam) {
61
etaBeam_
=
etaBeam
;
62
phiBeam_
=
phiBeam
;
63
}
64
65
void
PEcalTBInfo::setBeamOffset
(
double
dXbeam,
double
dYbeam) {
66
dXbeam_
=
dXbeam
;
67
dYbeam_
=
dYbeam
;
68
}
69
70
void
PEcalTBInfo::setBeamPosition
(
double
evXbeam,
double
evYbeam) {
71
evXbeam_
=
evXbeam
;
72
evYbeam_
=
evYbeam
;
73
}
74
75
void
PEcalTBInfo::setPhaseShift
(
double
phaseShift) {
76
phaseShift_
=
phaseShift
;
77
}
PEcalTBInfo::PEcalTBInfo
PEcalTBInfo()
Definition:
PEcalTBInfo.cc:20
PEcalTBInfo::setCrystal
void setCrystal(int nCrystal)
Definition:
PEcalTBInfo.cc:56
PEcalTBInfo::evYbeam_
double evYbeam_
Definition:
PEcalTBInfo.h:67
PEcalTBInfo::setBeamPosition
void setBeamPosition(double evXbeam, double evYbeam)
Definition:
PEcalTBInfo.cc:70
PEcalTBInfo::setPhaseShift
void setPhaseShift(double phaseShift)
Definition:
PEcalTBInfo.cc:75
PEcalTBInfo::nCrystal_
int nCrystal_
Definition:
PEcalTBInfo.h:60
PEcalTBInfo::phiBeam_
double phiBeam_
Definition:
PEcalTBInfo.h:62
PEcalTBInfo::etaBeam
double etaBeam() const
Definition:
PEcalTBInfo.h:30
PEcalTBInfo::clear
void clear()
Definition:
PEcalTBInfo.cc:46
PEcalTBInfo::setBeamDirection
void setBeamDirection(double etaBeam, double phiBeam)
Definition:
PEcalTBInfo.cc:60
PEcalTBInfo::setBeamOffset
void setBeamOffset(double dXbeam, double dYbeam)
Definition:
PEcalTBInfo.cc:65
PEcalTBInfo::~PEcalTBInfo
virtual ~PEcalTBInfo()
Definition:
PEcalTBInfo.cc:28
PEcalTBInfo::nCrystal
int nCrystal() const
Definition:
PEcalTBInfo.h:28
PEcalTBInfo::dXbeam
double dXbeam() const
Definition:
PEcalTBInfo.h:32
PEcalTBInfo.h
PEcalTBInfo::dYbeam_
double dYbeam_
Definition:
PEcalTBInfo.h:63
PEcalTBInfo::etaBeam_
double etaBeam_
Definition:
PEcalTBInfo.h:62
PEcalTBInfo::evXbeam_
double evXbeam_
Definition:
PEcalTBInfo.h:67
PEcalTBInfo::dXbeam_
double dXbeam_
Definition:
PEcalTBInfo.h:63
PEcalTBInfo::evXbeam
double evXbeam() const
Definition:
PEcalTBInfo.h:35
PEcalTBInfo::evYbeam
double evYbeam() const
Definition:
PEcalTBInfo.h:36
PEcalTBInfo::phaseShift
double phaseShift() const
Definition:
PEcalTBInfo.h:38
PEcalTBInfo::phiBeam
double phiBeam() const
Definition:
PEcalTBInfo.h:31
PEcalTBInfo::dYbeam
double dYbeam() const
Definition:
PEcalTBInfo.h:33
PEcalTBInfo::phaseShift_
double phaseShift_
Definition:
PEcalTBInfo.h:70
Generated for CMSSW Reference Manual by
1.8.5