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
}
funct::false
false
Definition:
Factorize.h:29
CaloDetInfo::pos_
G4ThreeVector pos_
Definition:
CaloDetInfo.h:37
pos
Definition:
PixelAliasList.h:18
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition:
FWCollectionSummaryWidget.cc:153
CaloDetInfo::flag_
bool flag_
Definition:
CaloDetInfo.h:39
CaloDetInfo.h
CaloDetInfo::CaloDetInfo
CaloDetInfo()
Definition:
CaloDetInfo.cc:9
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CaloDetInfo::depth_
uint32_t depth_
Definition:
CaloDetInfo.h:34
CaloDetInfo
Definition:
CaloDetInfo.h:9
CaloDetInfo::operator<
bool operator<(const CaloDetInfo &info) const
Definition:
CaloDetInfo.cc:22
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
CaloDetInfo::rho_
double rho_
Definition:
CaloDetInfo.h:35
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:31
CaloDetInfo::name_
std::string name_
Definition:
CaloDetInfo.h:36
flag_
struct @690 flag_
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
ztail.d
d
Definition:
ztail.py:151
CaloDetInfo::solid_
const G4VSolid * solid_
Definition:
CaloDetInfo.h:38
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:143
RemoveAddSevLevel.flag
flag
Definition:
RemoveAddSevLevel.py:116
CaloDetInfo::id_
uint32_t id_
Definition:
CaloDetInfo.h:33
operator<<
std::ostream & operator<<(std::ostream &os, const CaloDetInfo &info)
Definition:
CaloDetInfo.cc:34
Generated for CMSSW Reference Manual by
1.8.16