CMS 3D CMS Logo

GeometricTimingDetExtra.h
Go to the documentation of this file.
1 #ifndef Geometry_MTDNumberingBuilder_GeometricTimingDetExtra_H
2 #define Geometry_MTDNumberingBuilder_GeometricTimingDetExtra_H
3 
7 
8 #include <vector>
10 
11 #include <ext/pool_allocator.h>
12 
14 public:
15 #ifdef PoolAlloc
16  using GeoHistory = std::vector<DDExpandedNode, PoolAlloc<DDExpandedNode> >;
17 #else
18  using GeoHistory = std::vector<DDExpandedNode>;
19 #endif
20 
22  DetId id,
23  GeoHistory& gh,
24  double vol,
25  double dens,
26  double wgt,
27  double cpy,
28  const std::string& mat,
29  const std::string& name,
30  bool dd = false);
31 
36 
41  GeometricTimingDet const* geometricDet() const { return _mygd; }
42 
47  DetId geographicalId() const { return _geographicalId; }
48 
49  GeoHistory const& parents() const { return _parents; }
50  //rr
51  int copyno() const { return _copy; }
52  double volume() const { return _volume; }
53  double density() const { return _density; }
54  double weight() const { return _weight; }
55  std::string const& material() const { return _material; }
56 
60  bool wasBuiltFromDD() const { return _fromDD; }
61 
62  std::string const& name() const { return _name; }
63 
64 private:
70  double _volume;
71  double _density;
72  double _weight;
73  int _copy;
76  bool _fromDD; // may not need this, keep an eye on it.
77 };
78 
79 #undef PoolAlloc
80 #endif
GeometricTimingDetExtra::material
std::string const & material() const
Definition: GeometricTimingDetExtra.h:55
GeometricTimingDetExtra::_geographicalId
DetId _geographicalId
Definition: GeometricTimingDetExtra.h:68
types.h
GeometricTimingDetExtra::parents
GeoHistory const & parents() const
Definition: GeometricTimingDetExtra.h:49
GeometricTimingDetExtra::density
double density() const
Definition: GeometricTimingDetExtra.h:53
GeometricTimingDetExtra
Definition: GeometricTimingDetExtra.h:13
GeometricTimingDetExtra::_material
std::string _material
Definition: GeometricTimingDetExtra.h:74
GeometricTimingDetExtra::_parents
GeoHistory _parents
Definition: GeometricTimingDetExtra.h:69
GeometricTimingDetExtra::_density
double _density
Definition: GeometricTimingDetExtra.h:71
DetId
Definition: DetId.h:17
GeometricTimingDetExtra::wasBuiltFromDD
bool wasBuiltFromDD() const
Definition: GeometricTimingDetExtra.h:60
GeometricTimingDetExtra::geographicalId
DetId geographicalId() const
Definition: GeometricTimingDetExtra.h:47
GeometricTimingDetExtra::weight
double weight() const
Definition: GeometricTimingDetExtra.h:54
GeometricTimingDetExtra::setGeographicalId
void setGeographicalId(DetId id)
Definition: GeometricTimingDetExtra.h:46
createTree.dd
string dd
Definition: createTree.py:154
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GeometricTimingDetExtra::GeoHistory
std::vector< DDExpandedNode > GeoHistory
Definition: GeometricTimingDetExtra.h:18
GeometricTimingDetExtra::GeometricTimingDetExtra
GeometricTimingDetExtra(GeometricTimingDet 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)
Definition: GeometricTimingDetExtra.cc:6
GeometricTimingDet
Definition: GeometricTimingDet.h:28
GeometricTimingDetExtra::geometricDet
GeometricTimingDet const * geometricDet() const
Definition: GeometricTimingDetExtra.h:41
GeometricTimingDetExtra::_copy
int _copy
Definition: GeometricTimingDetExtra.h:73
GeometricTimingDetExtra::volume
double volume() const
Definition: GeometricTimingDetExtra.h:52
DDExpandedView.h
GeometricTimingDetExtra::_weight
double _weight
Definition: GeometricTimingDetExtra.h:72
GeometricTimingDetExtra::name
std::string const & name() const
Definition: GeometricTimingDetExtra.h:62
GeometricTimingDetExtra::_fromDD
bool _fromDD
Definition: GeometricTimingDetExtra.h:76
GeometricTimingDet.h
GeometricTimingDetExtra::_name
std::string _name
Definition: GeometricTimingDetExtra.h:75
DetId.h
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
GeometricTimingDetExtra::~GeometricTimingDetExtra
~GeometricTimingDetExtra()
Definition: GeometricTimingDetExtra.cc:27
GeometricTimingDetExtra::_volume
double _volume
Definition: GeometricTimingDetExtra.h:70
GeometricTimingDetExtra::_mygd
GeometricTimingDet const * _mygd
Definition: GeometricTimingDetExtra.h:67
GeometricTimingDetExtra::copyno
int copyno() const
Definition: GeometricTimingDetExtra.h:51