CMS 3D CMS Logo

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

#include <GeometricDetExtra.h>

Public Types

using GeoHistory = std::vector< DDExpandedNode >
 

Public Member Functions

int copyno () const
 
double density () const
 
DetId geographicalId () const
 
GeometricDet const * geometricDet () const
 
 GeometricDetExtra (GeometricDet const *gd, DetId id, GeoHistory &gh, double vol, double dens, double wgt, double cpy, const std::string &mat, const std::string &name, bool dd=false)
 
std::string const & material () const
 
std::string const & name () const
 
GeoHistory const & parents () const
 
void setGeographicalId (DetId id)
 
double volume () const
 
bool wasBuiltFromDD () const
 
double weight () const
 

Private Attributes

int _copy
 
double _density
 
bool _fromDD
 
DetId _geographicalId
 
std::string _material
 
GeometricDet const * _mygd
 
std::string _name
 
GeoHistory _parents
 
double _volume
 
double _weight
 

Detailed Description

Composite class GeometricDetExtra. A composite can contain other composites, and so on; You can understand what you are looking at via enum.

Definition at line 17 of file GeometricDetExtra.h.

Member Typedef Documentation

◆ GeoHistory

Definition at line 22 of file GeometricDetExtra.h.

Constructor & Destructor Documentation

◆ GeometricDetExtra()

GeometricDetExtra::GeometricDetExtra ( GeometricDet const *  gd,
DetId  id,
GeoHistory gh,
double  vol,
double  dens,
double  wgt,
double  cpy,
const std::string &  mat,
const std::string &  name,
bool  dd = false 
)
explicit

Constructors to be used when looping over DDD

Definition at line 6 of file GeometricDetExtra.cc.

16  : _mygd(gd),
17  _geographicalId(id),
18  _parents(gh),
19  _volume(vol),
20  _density(dens),
21  _weight(wgt),
22  _copy((int)(cpy)),
23  _material(mat),
24  _name(name),
25  _fromDD(dd) {}

Member Function Documentation

◆ copyno()

int GeometricDetExtra::copyno ( ) const
inline

Definition at line 50 of file GeometricDetExtra.h.

50 { return _copy; }

References _copy.

Referenced by CmsTrackerDebugNavigator::iterate(), and PGeometricDetExtraBuilder::putOne().

◆ density()

double GeometricDetExtra::density ( ) const
inline

Definition at line 52 of file GeometricDetExtra.h.

52 { return _density; }

References _density.

Referenced by CmsTrackerDebugNavigator::iterate(), and PGeometricDetExtraBuilder::putOne().

◆ geographicalId()

DetId GeometricDetExtra::geographicalId ( ) const
inline

Definition at line 48 of file GeometricDetExtra.h.

48 { return _geographicalId; }

References _geographicalId.

Referenced by PGeometricDetExtraBuilder::putOne().

◆ geometricDet()

GeometricDet const* GeometricDetExtra::geometricDet ( ) const
inline

get and set associated GeometricDet DOES NO CHECKING!

Definition at line 42 of file GeometricDetExtra.h.

42 { return _mygd; }

References _mygd.

◆ material()

std::string const& GeometricDetExtra::material ( void  ) const
inline

Definition at line 54 of file GeometricDetExtra.h.

54 { return _material; }

References _material.

Referenced by PGeometricDetExtraBuilder::putOne().

◆ name()

std::string const& GeometricDetExtra::name ( void  ) const
inline

Definition at line 61 of file GeometricDetExtra.h.

61 { return _name; }

References _name.

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

◆ parents()

GeoHistory const& GeometricDetExtra::parents ( ) const
inline

Definition at line 49 of file GeometricDetExtra.h.

49 { return _parents; }

References _parents.

◆ setGeographicalId()

void GeometricDetExtra::setGeographicalId ( DetId  id)
inline

set or add or clear components

Definition at line 47 of file GeometricDetExtra.h.

47 { _geographicalId = id; }

References _geographicalId, and triggerObjects_cff::id.

◆ volume()

double GeometricDetExtra::volume ( void  ) const
inline

Definition at line 51 of file GeometricDetExtra.h.

51 { return _volume; }

References _volume.

Referenced by CmsTrackerDebugNavigator::iterate(), and PGeometricDetExtraBuilder::putOne().

◆ wasBuiltFromDD()

bool GeometricDetExtra::wasBuiltFromDD ( ) const
inline

what it says... used the DD in memory model to build the geometry... or not.

Definition at line 59 of file GeometricDetExtra.h.

59 { return _fromDD; }

References _fromDD.

◆ weight()

double GeometricDetExtra::weight ( ) const
inline

Definition at line 53 of file GeometricDetExtra.h.

53 { return _weight; }

References _weight.

Referenced by CmsTrackerDebugNavigator::iterate(), and PGeometricDetExtraBuilder::putOne().

Member Data Documentation

◆ _copy

int GeometricDetExtra::_copy
private

Definition at line 72 of file GeometricDetExtra.h.

Referenced by copyno().

◆ _density

double GeometricDetExtra::_density
private

Definition at line 70 of file GeometricDetExtra.h.

Referenced by density().

◆ _fromDD

bool GeometricDetExtra::_fromDD
private

Definition at line 75 of file GeometricDetExtra.h.

Referenced by wasBuiltFromDD().

◆ _geographicalId

DetId GeometricDetExtra::_geographicalId
private

Definition at line 67 of file GeometricDetExtra.h.

Referenced by geographicalId(), and setGeographicalId().

◆ _material

std::string GeometricDetExtra::_material
private

Definition at line 73 of file GeometricDetExtra.h.

Referenced by material().

◆ _mygd

GeometricDet const* GeometricDetExtra::_mygd
private

Data members

Definition at line 66 of file GeometricDetExtra.h.

Referenced by geometricDet().

◆ _name

std::string GeometricDetExtra::_name
private

◆ _parents

GeoHistory GeometricDetExtra::_parents
private

Definition at line 68 of file GeometricDetExtra.h.

Referenced by parents().

◆ _volume

double GeometricDetExtra::_volume
private

Definition at line 69 of file GeometricDetExtra.h.

Referenced by volume().

◆ _weight

double GeometricDetExtra::_weight
private

Definition at line 71 of file GeometricDetExtra.h.

Referenced by weight().

GeometricDetExtra::_copy
int _copy
Definition: GeometricDetExtra.h:72
GeometricDetExtra::_material
std::string _material
Definition: GeometricDetExtra.h:73
createTree.dd
string dd
Definition: createTree.py:154
GeometricDetExtra::name
std::string const & name() const
Definition: GeometricDetExtra.h:61
GeometricDetExtra::_mygd
GeometricDet const * _mygd
Definition: GeometricDetExtra.h:66
GeometricDetExtra::_fromDD
bool _fromDD
Definition: GeometricDetExtra.h:75
GeometricDetExtra::_name
std::string _name
Definition: GeometricDetExtra.h:74
GeometricDetExtra::_density
double _density
Definition: GeometricDetExtra.h:70
GeometricDetExtra::_volume
double _volume
Definition: GeometricDetExtra.h:69
GeometricDetExtra::_geographicalId
DetId _geographicalId
Definition: GeometricDetExtra.h:67
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
GeometricDetExtra::_weight
double _weight
Definition: GeometricDetExtra.h:71
GeometricDetExtra::_parents
GeoHistory _parents
Definition: GeometricDetExtra.h:68