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
// $Id: PEcalTBInfo.cc,v 1.2 2006/10/25 16:58:05 fabiocos Exp $
3
//
4
5
// system include files
6
7
// user include files
8
#include "
SimDataFormats/EcalTestBeam/interface/PEcalTBInfo.h
"
9
10
//
11
// constants, enums and typedefs
12
//
13
14
//
15
// static data member definitions
16
//
17
18
//
19
// constructors and destructor
20
//
21
PEcalTBInfo::PEcalTBInfo
() {
22
clear
();
23
}
24
25
// PEcalTBInfo::PEcalTBInfo(const PEcalTBInfo& rhs) {
26
// // do actual copying here;
27
// }
28
29
PEcalTBInfo::~PEcalTBInfo
() {
30
}
31
32
//
33
// assignment operators
34
//
35
// const PEcalTBInfo& PEcalTBInfo::operator=(const PEcalTBInfo& rhs) {
36
// //An exception safe implementation is
37
// PEcalTBInfo temp(rhs);
38
// swap(rhs);
39
//
40
// return *this;
41
// }
42
43
//
44
// member functions
45
//
46
47
void
PEcalTBInfo::clear
() {
48
nCrystal_
= 0;
49
50
etaBeam_
=
phiBeam_
= 0.;
51
dXbeam_
=
dYbeam_
= 0.;
52
53
evXbeam_
=
evYbeam_
= 0.;
54
phaseShift_
= 1.;
55
}
56
57
void
PEcalTBInfo::setCrystal
(
int
nCrystal) {
58
nCrystal_
=
nCrystal
;
59
}
60
61
void
PEcalTBInfo::setBeamDirection
(
double
etaBeam,
double
phiBeam) {
62
etaBeam_
=
etaBeam
;
63
phiBeam_
=
phiBeam
;
64
}
65
66
void
PEcalTBInfo::setBeamOffset
(
double
dXbeam,
double
dYbeam) {
67
dXbeam_
=
dXbeam
;
68
dYbeam_
=
dYbeam
;
69
}
70
71
void
PEcalTBInfo::setBeamPosition
(
double
evXbeam,
double
evYbeam) {
72
evXbeam_
=
evXbeam
;
73
evYbeam_
=
evYbeam
;
74
}
75
76
void
PEcalTBInfo::setPhaseShift
(
double
phaseShift) {
77
phaseShift_
=
phaseShift
;
78
}
PEcalTBInfo::PEcalTBInfo
PEcalTBInfo()
Definition:
PEcalTBInfo.cc:21
PEcalTBInfo::setCrystal
void setCrystal(int nCrystal)
Definition:
PEcalTBInfo.cc:57
PEcalTBInfo::evYbeam_
double evYbeam_
Definition:
PEcalTBInfo.h:68
PEcalTBInfo::setBeamPosition
void setBeamPosition(double evXbeam, double evYbeam)
Definition:
PEcalTBInfo.cc:71
PEcalTBInfo::setPhaseShift
void setPhaseShift(double phaseShift)
Definition:
PEcalTBInfo.cc:76
PEcalTBInfo::nCrystal_
int nCrystal_
Definition:
PEcalTBInfo.h:61
PEcalTBInfo::phiBeam_
double phiBeam_
Definition:
PEcalTBInfo.h:63
PEcalTBInfo::etaBeam
double etaBeam() const
Definition:
PEcalTBInfo.h:31
PEcalTBInfo::clear
void clear()
Definition:
PEcalTBInfo.cc:47
PEcalTBInfo::setBeamDirection
void setBeamDirection(double etaBeam, double phiBeam)
Definition:
PEcalTBInfo.cc:61
PEcalTBInfo::setBeamOffset
void setBeamOffset(double dXbeam, double dYbeam)
Definition:
PEcalTBInfo.cc:66
PEcalTBInfo::~PEcalTBInfo
virtual ~PEcalTBInfo()
Definition:
PEcalTBInfo.cc:29
PEcalTBInfo::nCrystal
int nCrystal() const
Definition:
PEcalTBInfo.h:29
PEcalTBInfo::dXbeam
double dXbeam() const
Definition:
PEcalTBInfo.h:33
PEcalTBInfo.h
PEcalTBInfo::dYbeam_
double dYbeam_
Definition:
PEcalTBInfo.h:64
PEcalTBInfo::etaBeam_
double etaBeam_
Definition:
PEcalTBInfo.h:63
PEcalTBInfo::evXbeam_
double evXbeam_
Definition:
PEcalTBInfo.h:68
PEcalTBInfo::dXbeam_
double dXbeam_
Definition:
PEcalTBInfo.h:64
PEcalTBInfo::evXbeam
double evXbeam() const
Definition:
PEcalTBInfo.h:36
PEcalTBInfo::evYbeam
double evYbeam() const
Definition:
PEcalTBInfo.h:37
PEcalTBInfo::phaseShift
double phaseShift() const
Definition:
PEcalTBInfo.h:39
PEcalTBInfo::phiBeam
double phiBeam() const
Definition:
PEcalTBInfo.h:32
PEcalTBInfo::dYbeam
double dYbeam() const
Definition:
PEcalTBInfo.h:34
PEcalTBInfo::phaseShift_
double phaseShift_
Definition:
PEcalTBInfo.h:71
Generated for CMSSW Reference Manual by
1.8.5