CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::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
tuple d
Definition: ztail.py:151
uint32_t depth_
Definition: CaloDetInfo.h:34
G4ThreeVector pos() const
Definition: CaloDetInfo.h:26
const G4VSolid * solid() const
Definition: CaloDetInfo.h:27
double rho_
Definition: CaloDetInfo.h:35
bool flag() const
Definition: CaloDetInfo.h:28
std::string name_
Definition: CaloDetInfo.h:36
const G4VSolid * solid_
Definition: CaloDetInfo.h:38
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::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 ( )
default

Member Function Documentation

uint32_t CaloDetInfo::depth ( void  ) const
inline

Definition at line 23 of file CaloDetInfo.h.

References depth_.

Referenced by CaloDetInfoLess::operator()(), operator<(), and operator<<().

23 { return depth_; }
uint32_t depth_
Definition: CaloDetInfo.h:34
bool CaloDetInfo::flag ( void  ) const
inline

Definition at line 28 of file CaloDetInfo.h.

References flag_.

28 { return flag_; }
uint32_t CaloDetInfo::id ( void  ) const
inline

Definition at line 22 of file CaloDetInfo.h.

References id_.

Referenced by CaloDetInfoLess::operator()(), operator<(), and operator<<().

22 { return id_; }
uint32_t id_
Definition: CaloDetInfo.h:33
std::string CaloDetInfo::name ( void  ) const
inline
bool CaloDetInfo::operator< ( const CaloDetInfo info) const

Definition at line 22 of file CaloDetInfo.cc.

References depth(), depth_, id(), id_, rho(), 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 }
uint32_t id_
Definition: CaloDetInfo.h:33
uint32_t depth() const
Definition: CaloDetInfo.h:23
uint32_t depth_
Definition: CaloDetInfo.h:34
uint32_t id() const
Definition: CaloDetInfo.h:22
double rho_
Definition: CaloDetInfo.h:35
double rho() const
Definition: CaloDetInfo.h:24
G4ThreeVector CaloDetInfo::pos ( ) const
inline

Definition at line 26 of file CaloDetInfo.h.

References pos_.

Referenced by operator<<().

26 { return pos_; }
G4ThreeVector pos_
Definition: CaloDetInfo.h:37
double CaloDetInfo::rho ( ) const
inline

Definition at line 24 of file CaloDetInfo.h.

References rho_.

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

24 { return rho_; }
double rho_
Definition: CaloDetInfo.h:35
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

uint32_t CaloDetInfo::depth_
private

Definition at line 34 of file CaloDetInfo.h.

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

bool CaloDetInfo::flag_
private

Definition at line 39 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), and flag().

uint32_t CaloDetInfo::id_
private

Definition at line 33 of file CaloDetInfo.h.

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

std::string CaloDetInfo::name_
private

Definition at line 36 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), and name().

G4ThreeVector CaloDetInfo::pos_
private

Definition at line 37 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), and pos().

double CaloDetInfo::rho_
private

Definition at line 35 of file CaloDetInfo.h.

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

const G4VSolid* CaloDetInfo::solid_
private

Definition at line 38 of file CaloDetInfo.h.

Referenced by CaloDetInfo(), and solid().