CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CaloDetInfo Class Reference

#include <CaloDetInfo.h>

Public Member Functions

 CaloDetInfo ()
 
 CaloDetInfo (const CaloDetInfo &)
 
 CaloDetInfo (uint32_t id, uint32_t depth, double rho, const std::string &name, G4ThreeVector pos, const G4VSolid *sol, bool flag=false)
 
uint32_t depth () const
 
bool flag () const
 
uint32_t id () const
 
std::string name () const
 
bool operator< (const CaloDetInfo &info) const
 
G4ThreeVector pos () const
 
double rho () const
 
const G4VSolid * solid () const
 
 ~CaloDetInfo ()=default
 

Private Attributes

uint32_t depth_
 
bool flag_
 
uint32_t id_
 
std::string name_
 
G4ThreeVector pos_
 
double rho_
 
const G4VSolid * solid_
 

Detailed Description

Definition at line 9 of file CaloDetInfo.h.

Constructor & Destructor Documentation

◆ CaloDetInfo() [1/3]

CaloDetInfo::CaloDetInfo ( uint32_t  id,
uint32_t  depth,
double  rho,
const std::string &  name,
G4ThreeVector  pos,
const G4VSolid *  sol,
bool  flag = false 
)

Definition at line 5 of file CaloDetInfo.cc.

7  : id_(id), depth_(d), rho_(r), name_(name), pos_(pos), solid_(solid), flag_(flag) {}

◆ CaloDetInfo() [2/3]

CaloDetInfo::CaloDetInfo ( )

Definition at line 9 of file CaloDetInfo.cc.

10  : id_(0), depth_(0), rho_(0), name_(""), pos_(G4ThreeVector(0, 0, 0)), solid_(nullptr), flag_(false) {}

◆ CaloDetInfo() [3/3]

CaloDetInfo::CaloDetInfo ( const CaloDetInfo right)

Definition at line 12 of file CaloDetInfo.cc.

12  {
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 }

References depth_, flag_, id_, name_, pos_, rho_, and solid_.

◆ ~CaloDetInfo()

CaloDetInfo::~CaloDetInfo ( )
default

Member Function Documentation

◆ depth()

uint32_t CaloDetInfo::depth ( void  ) const
inline

Definition at line 23 of file CaloDetInfo.h.

23 { return depth_; }

References depth_.

◆ flag()

bool CaloDetInfo::flag ( void  ) const
inline

Definition at line 28 of file CaloDetInfo.h.

28 { return flag_; }

References flag_.

◆ id()

uint32_t CaloDetInfo::id ( void  ) const
inline

Definition at line 22 of file CaloDetInfo.h.

22 { return id_; }

References id_.

◆ name()

std::string CaloDetInfo::name ( void  ) const
inline

Definition at line 25 of file CaloDetInfo.h.

25 { return name_; }

References name_.

Referenced by config.CFG::__str__(), and validation.Sample::digest().

◆ operator<()

bool CaloDetInfo::operator< ( const CaloDetInfo info) const

Definition at line 22 of file CaloDetInfo.cc.

22  {
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 }

References depth_, id_, info(), and rho_.

◆ pos()

G4ThreeVector CaloDetInfo::pos ( ) const
inline

Definition at line 26 of file CaloDetInfo.h.

26 { return pos_; }

References pos_.

◆ rho()

double CaloDetInfo::rho ( ) const
inline

Definition at line 24 of file CaloDetInfo.h.

24 { return rho_; }

References rho_.

Referenced by Lepton.Lepton::absIsoFromEA(), and Muon.Muon::absIsoWithFSR().

◆ solid()

const G4VSolid* CaloDetInfo::solid ( void  ) const
inline

Definition at line 27 of file CaloDetInfo.h.

27 { return solid_; }

References solid_.

Member Data Documentation

◆ depth_

uint32_t CaloDetInfo::depth_
private

Definition at line 34 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), depth(), and operator<().

◆ flag_

bool CaloDetInfo::flag_
private

Definition at line 39 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), and flag().

◆ id_

uint32_t CaloDetInfo::id_
private

Definition at line 33 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), id(), and operator<().

◆ name_

std::string CaloDetInfo::name_
private

Definition at line 36 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), and name().

◆ pos_

G4ThreeVector CaloDetInfo::pos_
private

Definition at line 37 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), and pos().

◆ rho_

double CaloDetInfo::rho_
private

Definition at line 35 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), operator<(), and rho().

◆ solid_

const G4VSolid* CaloDetInfo::solid_
private

Definition at line 38 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), and solid().

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::name
std::string name() const
Definition: CaloDetInfo.h:25
CaloDetInfo::solid
const G4VSolid * solid() const
Definition: CaloDetInfo.h:27
CaloDetInfo::depth_
uint32_t depth_
Definition: CaloDetInfo.h:34
alignCSCRings.r
r
Definition: alignCSCRings.py:93
CaloDetInfo::rho_
double rho_
Definition: CaloDetInfo.h:35
CaloDetInfo::flag
bool flag() const
Definition: CaloDetInfo.h:28
CaloDetInfo::name_
std::string name_
Definition: CaloDetInfo.h:36
ztail.d
d
Definition: ztail.py:151
CaloDetInfo::solid_
const G4VSolid * solid_
Definition: CaloDetInfo.h:38
CaloDetInfo::id_
uint32_t id_
Definition: CaloDetInfo.h:33