CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
GeometricDetExtra Class Reference

#include <GeometricDetExtra.h>

Public Types

typedef std::vector
< DDExpandedNode
GeoHistory
 
typedef DDExpandedView::NavRange NavRange
 

Public Member Functions

int copyno () const
 
double density () const
 
DetId geographicalId () const
 
GeometricDet const * geometricDet () const
 
 GeometricDetExtra (GeometricDet const *gd)
 
 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) const
 
double volume () const
 
bool wasBuiltFromDD () const
 
double weight () const
 
 ~GeometricDetExtra ()
 

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 25 of file GeometricDetExtra.h.

Member Typedef Documentation

Definition at line 32 of file GeometricDetExtra.h.

Definition at line 27 of file GeometricDetExtra.h.

Constructor & Destructor Documentation

GeometricDetExtra::GeometricDetExtra ( GeometricDet const *  gd)
inline

Constructors to be used when looping over DDD

Definition at line 37 of file GeometricDetExtra.h.

37 : _mygd(gd) { }; // this better be "copied into" or it will never have any valid numbers/info.
GeometricDet const * _mygd
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 
)

Constructors to be used when looping over DDD

Definition at line 17 of file GeometricDetExtra.cc.

18  : _mygd(gd), _geographicalId(id), _parents(gh), _volume(vol), _density(dens), _weight(wgt), _copy((int)(cpy)), _material(mat), _name(name), _fromDD(dd)
19 {
20 
21 }
GeometricDet const * _mygd
std::string const & name() const
GeometricDetExtra::~GeometricDetExtra ( )

Definition at line 23 of file GeometricDetExtra.cc.

24 { }

Member Function Documentation

int GeometricDetExtra::copyno ( void  ) const
inline

Definition at line 75 of file GeometricDetExtra.h.

References _copy.

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

75  {
76  //std::cout<<"copyno"<<std::endl;
77  return _copy;
78  }
double GeometricDetExtra::density ( ) const
inline

Definition at line 83 of file GeometricDetExtra.h.

References _density.

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

83  {
84  //std::cout<<"density"<<std::endl;
85  return _density;
86  }
DetId GeometricDetExtra::geographicalId ( ) const
inline

Definition at line 65 of file GeometricDetExtra.h.

References _geographicalId.

Referenced by PGeometricDetExtraBuilder::putOne().

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

get and set associated GeometricDet DOES NO CHECKING!

Definition at line 55 of file GeometricDetExtra.h.

References _mygd.

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

Definition at line 91 of file GeometricDetExtra.h.

References _material.

Referenced by PGeometricDetExtraBuilder::putOne().

91  {
92  //std::cout<<"material"<<std::endl;
93  return _material;
94  }
std::string const& GeometricDetExtra::name ( void  ) const
inline

Definition at line 104 of file GeometricDetExtra.h.

References _name.

Referenced by BeautifulSoup.Tag::_invert().

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

parents() retuns the geometrical history mec: only works if this is built from DD and not from reco DB.

Definition at line 70 of file GeometricDetExtra.h.

References _parents.

70  {
71  //std::cout<<"parents"<<std::endl;
72  return _parents;
73  }
void GeometricDetExtra::setGeographicalId ( DetId  id) const
inline

set or add or clear components

Definition at line 61 of file GeometricDetExtra.h.

References _geographicalId, and errorMatrix2Lands_multiChannel::id.

61  {
63  //std::cout <<"setGeographicalId " << int(id) << std::endl;
64  }
double GeometricDetExtra::volume ( void  ) const
inline

Definition at line 79 of file GeometricDetExtra.h.

References _volume.

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

79  {
80  //std::cout<<"volume"<<std::endl;
81  return _volume;
82  }
bool GeometricDetExtra::wasBuiltFromDD ( ) const
inline

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

Definition at line 99 of file GeometricDetExtra.h.

References _fromDD.

99  {
100  //std::cout<<"wasBuildFromDD"<<std::endl;
101  return _fromDD;
102  }
double GeometricDetExtra::weight ( void  ) const
inline

Definition at line 87 of file GeometricDetExtra.h.

References _weight.

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

87  {
88  //std::cout<<"weight"<<std::endl;
89  return _weight;
90  }

Member Data Documentation

int GeometricDetExtra::_copy
private

Definition at line 117 of file GeometricDetExtra.h.

Referenced by copyno().

double GeometricDetExtra::_density
private

Definition at line 115 of file GeometricDetExtra.h.

Referenced by density().

bool GeometricDetExtra::_fromDD
private

Definition at line 120 of file GeometricDetExtra.h.

Referenced by wasBuiltFromDD().

DetId GeometricDetExtra::_geographicalId
mutableprivate

Definition at line 112 of file GeometricDetExtra.h.

Referenced by geographicalId(), and setGeographicalId().

std::string GeometricDetExtra::_material
private

Definition at line 118 of file GeometricDetExtra.h.

Referenced by material().

GeometricDet const* GeometricDetExtra::_mygd
private

Data members

Definition at line 110 of file GeometricDetExtra.h.

Referenced by geometricDet().

std::string GeometricDetExtra::_name
private

Definition at line 119 of file GeometricDetExtra.h.

Referenced by name().

GeoHistory GeometricDetExtra::_parents
private

Definition at line 113 of file GeometricDetExtra.h.

Referenced by parents().

double GeometricDetExtra::_volume
private

Definition at line 114 of file GeometricDetExtra.h.

Referenced by volume().

double GeometricDetExtra::_weight
private

Definition at line 116 of file GeometricDetExtra.h.

Referenced by weight().