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

Definition at line 22 of file GeometricDetExtra.h.

Constructor & Destructor Documentation

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) {}
GeometricDet const * _mygd
std::string const & name() const

Member Function Documentation

int GeometricDetExtra::copyno ( ) const
inline

Definition at line 50 of file GeometricDetExtra.h.

References _copy.

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

50 { return _copy; }
double GeometricDetExtra::density ( ) const
inline

Definition at line 52 of file GeometricDetExtra.h.

References _density.

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

52 { return _density; }
DetId GeometricDetExtra::geographicalId ( ) const
inline

Definition at line 48 of file GeometricDetExtra.h.

References _geographicalId.

Referenced by PGeometricDetExtraBuilder::putOne().

48 { return _geographicalId; }
GeometricDet const* GeometricDetExtra::geometricDet ( ) const
inline

get and set associated GeometricDet DOES NO CHECKING!

Definition at line 42 of file GeometricDetExtra.h.

References _mygd.

42 { return _mygd; }
GeometricDet const * _mygd
std::string const& GeometricDetExtra::material ( void  ) const
inline

Definition at line 54 of file GeometricDetExtra.h.

References _material.

Referenced by PGeometricDetExtraBuilder::putOne().

54 { return _material; }
std::string const& GeometricDetExtra::name ( void  ) const
inline

Definition at line 61 of file GeometricDetExtra.h.

References _name.

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

61 { return _name; }
GeoHistory const& GeometricDetExtra::parents ( ) const
inline

Definition at line 49 of file GeometricDetExtra.h.

References _parents.

49 { return _parents; }
void GeometricDetExtra::setGeographicalId ( DetId  id)
inline

set or add or clear components

Definition at line 47 of file GeometricDetExtra.h.

References _geographicalId, and triggerObjects_cff::id.

double GeometricDetExtra::volume ( void  ) const
inline

Definition at line 51 of file GeometricDetExtra.h.

References _volume.

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

51 { return _volume; }
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.

References _fromDD.

59 { return _fromDD; }
double GeometricDetExtra::weight ( ) const
inline

Definition at line 53 of file GeometricDetExtra.h.

References _weight.

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

53 { return _weight; }

Member Data Documentation

int GeometricDetExtra::_copy
private

Definition at line 72 of file GeometricDetExtra.h.

Referenced by copyno().

double GeometricDetExtra::_density
private

Definition at line 70 of file GeometricDetExtra.h.

Referenced by density().

bool GeometricDetExtra::_fromDD
private

Definition at line 75 of file GeometricDetExtra.h.

Referenced by wasBuiltFromDD().

DetId GeometricDetExtra::_geographicalId
private

Definition at line 67 of file GeometricDetExtra.h.

Referenced by geographicalId(), and setGeographicalId().

std::string GeometricDetExtra::_material
private

Definition at line 73 of file GeometricDetExtra.h.

Referenced by material().

GeometricDet const* GeometricDetExtra::_mygd
private

Data members

Definition at line 66 of file GeometricDetExtra.h.

Referenced by geometricDet().

std::string GeometricDetExtra::_name
private
GeoHistory GeometricDetExtra::_parents
private

Definition at line 68 of file GeometricDetExtra.h.

Referenced by parents().

double GeometricDetExtra::_volume
private

Definition at line 69 of file GeometricDetExtra.h.

Referenced by volume().

double GeometricDetExtra::_weight
private

Definition at line 71 of file GeometricDetExtra.h.

Referenced by weight().