Main Page
Namespaces
Classes
Package Documentation
Geometry
MTDNumberingBuilder
interface
GeometricTimingDetExtra.h
Go to the documentation of this file.
1
#ifndef Geometry_MTDNumberingBuilder_GeometricTimingDetExtra_H
2
#define Geometry_MTDNumberingBuilder_GeometricTimingDetExtra_H
3
4
#include "
Geometry/MTDNumberingBuilder/interface/GeometricTimingDet.h
"
5
#include "
DetectorDescription/Core/interface/DDExpandedView.h
"
6
#include "
DataFormats/DetId/interface/DetId.h
"
7
8
#include <vector>
9
#include "
FWCore/ParameterSet/interface/types.h
"
10
11
#include <ext/pool_allocator.h>
12
13
class
GeometricTimingDetExtra
{
14
public
:
15
typedef
DDExpandedView::NavRange
NavRange
;
16
#ifdef PoolAlloc
17
typedef
std::vector< DDExpandedNode, PoolAlloc<DDExpandedNode> >
GeoHistory
;
18
#endif
19
#ifndef PoolAlloc
20
typedef
std::vector<DDExpandedNode>
GeoHistory
;
21
#endif
22
25
GeometricTimingDetExtra
(
GeometricTimingDet
const
*gd ) :
_mygd
(gd) { };
// this better be "copied into" or it will never have any valid numbers/info.
26
27
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
);
28
32
~GeometricTimingDetExtra
();
33
38
GeometricTimingDet
const
*
geometricDet
()
const
{
return
_mygd
; }
39
43
void
setGeographicalId
(
DetId
id
) {
44
_geographicalId
=
id
;
45
}
46
DetId
geographicalId
()
const
{
return
_geographicalId
; }
47
48
GeoHistory
const
&
parents
()
const
{
49
50
return
_parents
;
51
}
52
//rr
53
int
copyno
()
const
{
54
return
_copy
;
55
}
56
double
volume
()
const
{
57
return
_volume
;
58
}
59
double
density
()
const
{
60
return
_density
;
61
}
62
double
weight
()
const
{
63
return
_weight
;
64
}
65
std::string
const
&
material
()
const
{
66
return
_material
;
67
}
68
72
bool
wasBuiltFromDD
()
const
{
73
return
_fromDD
;
74
}
75
76
std::string
const
&
name
()
const
{
return
_name
; }
77
78
private
:
79
82
GeometricTimingDet
const
*
_mygd
;
83
DetId
_geographicalId
;
84
GeoHistory
_parents
;
85
double
_volume
;
86
double
_density
;
87
double
_weight
;
88
int
_copy
;
89
std::string
_material
;
90
std::string
_name
;
91
bool
_fromDD
;
// may not need this, keep an eye on it.
92
};
93
94
#undef PoolAlloc
95
#endif
GeometricTimingDetExtra::material
std::string const & material() const
Definition:
GeometricTimingDetExtra.h:65
GeometricTimingDetExtra::density
double density() const
Definition:
GeometricTimingDetExtra.h:59
types.h
GeometricTimingDetExtra::_geographicalId
DetId _geographicalId
Definition:
GeometricTimingDetExtra.h:83
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
GeometricTimingDetExtra::_density
double _density
Definition:
GeometricTimingDetExtra.h:86
GeometricTimingDetExtra::GeoHistory
std::vector< DDExpandedNode > GeoHistory
Definition:
GeometricTimingDetExtra.h:20
GeometricTimingDetExtra::setGeographicalId
void setGeographicalId(DetId id)
Definition:
GeometricTimingDetExtra.h:43
GeometricTimingDetExtra::copyno
int copyno() const
Definition:
GeometricTimingDetExtra.h:53
DDExpandedView::NavRange
std::pair< int const *, size_t > NavRange
Definition:
DDExpandedView.h:50
createTree.dd
dd
Definition:
createTree.py:154
GeometricTimingDetExtra::_material
std::string _material
Definition:
GeometricTimingDetExtra.h:89
GeometricTimingDetExtra::_parents
GeoHistory _parents
Definition:
GeometricTimingDetExtra.h:84
GeometricTimingDetExtra::NavRange
DDExpandedView::NavRange NavRange
Definition:
GeometricTimingDetExtra.h:15
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:29
GeometricTimingDetExtra::geometricDet
GeometricTimingDet const * geometricDet() const
Definition:
GeometricTimingDetExtra.h:38
GeometricTimingDetExtra::geographicalId
DetId geographicalId() const
Definition:
GeometricTimingDetExtra.h:46
GeometricTimingDet.h
GeometricTimingDetExtra::_copy
int _copy
Definition:
GeometricTimingDetExtra.h:88
GeometricTimingDetExtra::wasBuiltFromDD
bool wasBuiltFromDD() const
Definition:
GeometricTimingDetExtra.h:72
GeometricTimingDetExtra::weight
double weight() const
Definition:
GeometricTimingDetExtra.h:62
GeometricTimingDetExtra
Definition:
GeometricTimingDetExtra.h:13
GeometricTimingDetExtra::_name
std::string _name
Definition:
GeometricTimingDetExtra.h:90
GeometricTimingDetExtra::name
std::string const & name() const
Definition:
GeometricTimingDetExtra.h:76
DetId
Definition:
DetId.h:18
DDExpandedView.h
GeometricTimingDet
Definition:
GeometricTimingDet.h:26
GeometricTimingDetExtra::volume
double volume() const
Definition:
GeometricTimingDetExtra.h:56
GeometricTimingDetExtra::parents
GeoHistory const & parents() const
Definition:
GeometricTimingDetExtra.h:48
GeometricTimingDetExtra::_volume
double _volume
Definition:
GeometricTimingDetExtra.h:85
GeometricTimingDetExtra::_mygd
GeometricTimingDet const * _mygd
Definition:
GeometricTimingDetExtra.h:82
GeometricTimingDetExtra::~GeometricTimingDetExtra
~GeometricTimingDetExtra()
Definition:
GeometricTimingDetExtra.cc:12
GeometricTimingDetExtra::_weight
double _weight
Definition:
GeometricTimingDetExtra.h:87
GeometricTimingDetExtra::_fromDD
bool _fromDD
Definition:
GeometricTimingDetExtra.h:91
DetId.h
GeometricTimingDetExtra::GeometricTimingDetExtra
GeometricTimingDetExtra(GeometricTimingDet const *gd)
Definition:
GeometricTimingDetExtra.h:25
Generated for CMSSW Reference Manual by
1.8.11