src
SimG4CMS
Calo
src
CaloDetInfo.cc
Go to the documentation of this file.
1
#include "
SimG4CMS/Calo/interface/CaloDetInfo.h
"
2
3
#include <iomanip>
4
5
CaloDetInfo::CaloDetInfo
(
6
uint32_t
id
, uint32_t
d
,
double
r
,
const
std::string
&
name
, G4ThreeVector
pos
,
const
G4VSolid* solid,
bool
flag
)
7
: id_(
id
), depth_(
d
), rho_(
r
), name_(
name
), pos_(
pos
), solid_(solid),
flag_
(
flag
) {}
8
9
CaloDetInfo::CaloDetInfo
()
10
: id_(0), depth_(0), rho_(0), name_(
""
), pos_(G4ThreeVector(0, 0, 0)), solid_(nullptr),
flag_
(
false
) {}
11
12
CaloDetInfo::CaloDetInfo
(
const
CaloDetInfo
& right) {
13
id_
= right.
id_
;
14
depth_
= right.
depth_
;
15
rho_
= right.
rho_
;
16
name_
= right.
name_
;
17
pos_
= right.
pos_
;
18
solid_
= right.
solid_
;
19
flag_
= right.
flag_
;
20
}
21
22
bool
CaloDetInfo::operator<
(
const
CaloDetInfo
&
info
)
const
{
23
if
(
id_
==
info
.id()) {
24
if
(
depth_
==
info
.depth()) {
25
return
(
rho_
>
info
.rho());
26
}
else
{
27
return
(
depth_
>
info
.depth());
28
}
29
}
else
{
30
return
(
id_
>
info
.id());
31
}
32
}
33
34
std::ostream&
operator<<
(std::ostream& os,
const
CaloDetInfo
&
info
) {
35
os <<
info
.name() <<
" Id 0x"
<< std::hex <<
info
.id() <<
std::dec
<<
":"
<<
info
.depth() <<
" R "
36
<< std::setprecision(4) <<
info
.rho() <<
" Position "
<<
info
.pos();
37
return
os;
38
}
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition:
FWCollectionSummaryWidget.cc:153
CaloDetInfo::id_
uint32_t id_
Definition:
CaloDetInfo.h:33
flag_
struct @730 flag_
funct::false
false
Definition:
Factorize.h:29
RemoveAddSevLevel.flag
flag
Definition:
RemoveAddSevLevel.py:117
CaloDetInfo::pos_
G4ThreeVector pos_
Definition:
CaloDetInfo.h:37
CaloDetInfo::flag_
bool flag_
Definition:
CaloDetInfo.h:39
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:85
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CaloDetInfo.h
operator<<
std::ostream & operator<<(std::ostream &os, const CaloDetInfo &info)
Definition:
CaloDetInfo.cc:34
CaloDetInfo::depth_
uint32_t depth_
Definition:
CaloDetInfo.h:34
CaloDetInfo
Definition:
CaloDetInfo.h:9
CaloDetInfo::CaloDetInfo
CaloDetInfo()
Definition:
CaloDetInfo.cc:9
ztail.d
d
Definition:
ztail.py:151
CaloDetInfo::operator<
bool operator<(const CaloDetInfo &info) const
Definition:
CaloDetInfo.cc:22
pos
Definition:
PixelCalibBase.h:13
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
CaloDetInfo::rho_
double rho_
Definition:
CaloDetInfo.h:35
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
CaloDetInfo::name_
std::string name_
Definition:
CaloDetInfo.h:36
CaloDetInfo::solid_
const G4VSolid * solid_
Definition:
CaloDetInfo.h:38
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14