Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
flag_
struct @724 flag_
CaloDetInfo::operator<
bool operator<(const CaloDetInfo &info) const
Definition:
CaloDetInfo.cc:22
CaloDetInfo::id_
uint32_t id_
Definition:
CaloDetInfo.h:33
funct::false
false
Definition:
Factorize.h:29
CaloDetInfo::pos_
G4ThreeVector pos_
Definition:
CaloDetInfo.h:37
CaloDetInfo::flag_
bool flag_
Definition:
CaloDetInfo.h:39
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:167
CaloDetInfo::name
std::string name() const
Definition:
CaloDetInfo.h:25
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:78
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CaloDetInfo.h
ztail.d
tuple d
Definition:
ztail.py:151
CaloDetInfo::depth
uint32_t depth() const
Definition:
CaloDetInfo.h:23
CaloDetInfo::depth_
uint32_t depth_
Definition:
CaloDetInfo.h:34
CaloDetInfo::pos
G4ThreeVector pos() const
Definition:
CaloDetInfo.h:26
CaloDetInfo
Definition:
CaloDetInfo.h:9
CaloDetInfo::CaloDetInfo
CaloDetInfo()
Definition:
CaloDetInfo.cc:9
CaloDetInfo::id
uint32_t id() const
Definition:
CaloDetInfo.h:22
CaloDetInfo::rho_
double rho_
Definition:
CaloDetInfo.h:35
CaloDetInfo::name_
std::string name_
Definition:
CaloDetInfo.h:36
alignCSCRings.r
list r
Definition:
alignCSCRings.py:93
CaloDetInfo::solid_
const G4VSolid * solid_
Definition:
CaloDetInfo.h:38
TauDecayModes.dec
tuple dec
Definition:
TauDecayModes.py:142
CaloDetInfo::rho
double rho() const
Definition:
CaloDetInfo.h:24
Generated for CMSSW Reference Manual by
1.8.5