CMS 3D CMS Logo

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

#include <CaloDetInfo.h>

Public Member Functions

 CaloDetInfo (uint32_t id, uint32_t depth, double rho, const std::string &name, G4ThreeVector pos, const G4VSolid *sol, bool flag=false)
 
 CaloDetInfo ()
 
 CaloDetInfo (const CaloDetInfo &)
 
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) {}
uint32_t id_
Definition: CaloDetInfo.h:33
G4ThreeVector pos_
Definition: CaloDetInfo.h:37
std::string name() const
Definition: CaloDetInfo.h:25
uint32_t depth_
Definition: CaloDetInfo.h:34
const G4VSolid * solid() const
Definition: CaloDetInfo.h:27
d
Definition: ztail.py:151
double rho_
Definition: CaloDetInfo.h:35
std::string name_
Definition: CaloDetInfo.h:36
bool flag() const
Definition: CaloDetInfo.h:28
const G4VSolid * solid_
Definition: CaloDetInfo.h:38

◆ 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) {}
uint32_t id_
Definition: CaloDetInfo.h:33
G4ThreeVector pos_
Definition: CaloDetInfo.h:37
uint32_t depth_
Definition: CaloDetInfo.h:34
double rho_
Definition: CaloDetInfo.h:35
std::string name_
Definition: CaloDetInfo.h:36
const G4VSolid * solid_
Definition: CaloDetInfo.h:38

◆ CaloDetInfo() [3/3]

CaloDetInfo::CaloDetInfo ( const CaloDetInfo right)

Definition at line 12 of file CaloDetInfo.cc.

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

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 }
uint32_t id_
Definition: CaloDetInfo.h:33
G4ThreeVector pos_
Definition: CaloDetInfo.h:37
uint32_t depth_
Definition: CaloDetInfo.h:34
double rho_
Definition: CaloDetInfo.h:35
std::string name_
Definition: CaloDetInfo.h:36
const G4VSolid * solid_
Definition: CaloDetInfo.h:38

◆ ~CaloDetInfo()

CaloDetInfo::~CaloDetInfo ( )
default

Member Function Documentation

◆ depth()

uint32_t CaloDetInfo::depth ( void  ) const
inline

Definition at line 23 of file CaloDetInfo.h.

References depth_.

23 { return depth_; }
uint32_t depth_
Definition: CaloDetInfo.h:34

◆ flag()

bool CaloDetInfo::flag ( void  ) const
inline

Definition at line 28 of file CaloDetInfo.h.

References flag_.

28 { return flag_; }

◆ id()

uint32_t CaloDetInfo::id ( void  ) const
inline

Definition at line 22 of file CaloDetInfo.h.

References id_.

22 { return id_; }
uint32_t id_
Definition: CaloDetInfo.h:33

◆ name()

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

Definition at line 25 of file CaloDetInfo.h.

References name_.

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

25 { return name_; }
std::string name_
Definition: CaloDetInfo.h:36

◆ operator<()

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

Definition at line 22 of file CaloDetInfo.cc.

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

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 }
static const TGPicture * info(bool iBackgroundIsBlack)
uint32_t id_
Definition: CaloDetInfo.h:33
uint32_t depth_
Definition: CaloDetInfo.h:34
double rho_
Definition: CaloDetInfo.h:35

◆ pos()

G4ThreeVector CaloDetInfo::pos ( ) const
inline

Definition at line 26 of file CaloDetInfo.h.

References pos_.

26 { return pos_; }
G4ThreeVector pos_
Definition: CaloDetInfo.h:37

◆ rho()

double CaloDetInfo::rho ( ) const
inline

Definition at line 24 of file CaloDetInfo.h.

References rho_.

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

24 { return rho_; }
double rho_
Definition: CaloDetInfo.h:35

◆ solid()

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

Definition at line 27 of file CaloDetInfo.h.

References solid_.

27 { return solid_; }
const G4VSolid * solid_
Definition: CaloDetInfo.h:38

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().