Main Page
Namespaces
Classes
Package Documentation
Geometry
TrackerNumberingBuilder
interface
GeometricDetExtra.h
Go to the documentation of this file.
1
#ifndef Geometry_TrackerNumberingBuilder_GeometricDetExtra_H
2
#define Geometry_TrackerNumberingBuilder_GeometricDetExtra_H
3
4
#include "
Geometry/TrackerNumberingBuilder/interface/GeometricDet.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>
17
class
GeometricDetExtra
{
18
public
:
19
#ifdef PoolAlloc
20
using
GeoHistory
= std::vector<DDExpandedNode, PoolAlloc<DDExpandedNode> >;
21
#else
22
using
GeoHistory
= std::vector<DDExpandedNode>;
23
#endif
24
27
explicit
GeometricDetExtra
(
GeometricDet
const
* gd,
28
DetId
id
,
29
GeoHistory
& gh,
30
double
vol,
31
double
dens,
32
double
wgt,
33
double
cpy,
34
const
std::string
& mat,
35
const
std::string
&
name
,
36
bool
dd
=
false
);
37
42
GeometricDet
const
*
geometricDet
()
const
{
return
_mygd
; }
43
47
void
setGeographicalId
(
DetId
id
) {
_geographicalId
=
id
; }
48
DetId
geographicalId
()
const
{
return
_geographicalId
; }
49
GeoHistory
const
&
parents
()
const
{
return
_parents
; }
50
int
copyno
()
const
{
return
_copy
; }
51
double
volume
()
const
{
return
_volume
; }
52
double
density
()
const
{
return
_density
; }
53
double
weight
()
const
{
return
_weight
; }
54
std::string
const
&
material
()
const
{
return
_material
; }
55
59
bool
wasBuiltFromDD
()
const
{
return
_fromDD
; }
60
61
std::string
const
&
name
()
const
{
return
_name
; }
62
63
private
:
66
GeometricDet
const
*
_mygd
;
67
DetId
_geographicalId
;
68
GeoHistory
_parents
;
69
double
_volume
;
70
double
_density
;
71
double
_weight
;
72
int
_copy
;
73
std::string
_material
;
74
std::string
_name
;
75
bool
_fromDD
;
// may not need this, keep an eye on it.
76
};
77
78
#undef PoolAlloc
79
#endif
GeometricDetExtra::geometricDet
GeometricDet const * geometricDet() const
Definition:
GeometricDetExtra.h:42
types.h
GeometricDetExtra::material
std::string const & material() const
Definition:
GeometricDetExtra.h:54
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
GeometricDetExtra::parents
GeoHistory const & parents() const
Definition:
GeometricDetExtra.h:49
DDExpandedView.h
GeometricDetExtra::weight
double weight() const
Definition:
GeometricDetExtra.h:53
createTree.dd
dd
Definition:
createTree.py:154
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)
Definition:
GeometricDetExtra.cc:6
GeometricDetExtra::_material
std::string _material
Definition:
GeometricDetExtra.h:73
GeometricDet.h
GeometricDet
Definition:
GeometricDet.h:30
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:31
GeometricDetExtra::_name
std::string _name
Definition:
GeometricDetExtra.h:74
GeometricDetExtra::_mygd
GeometricDet const * _mygd
Definition:
GeometricDetExtra.h:66
GeometricDetExtra::_fromDD
bool _fromDD
Definition:
GeometricDetExtra.h:75
GeometricDetExtra::_volume
double _volume
Definition:
GeometricDetExtra.h:69
GeometricDetExtra::_geographicalId
DetId _geographicalId
Definition:
GeometricDetExtra.h:67
GeometricDetExtra::density
double density() const
Definition:
GeometricDetExtra.h:52
GeometricDetExtra::_density
double _density
Definition:
GeometricDetExtra.h:70
GeometricDetExtra::_weight
double _weight
Definition:
GeometricDetExtra.h:71
DetId
Definition:
DetId.h:17
GeometricDetExtra::geographicalId
DetId geographicalId() const
Definition:
GeometricDetExtra.h:48
GeometricDetExtra::volume
double volume() const
Definition:
GeometricDetExtra.h:51
GeometricDetExtra::setGeographicalId
void setGeographicalId(DetId id)
Definition:
GeometricDetExtra.h:47
GeometricDetExtra::GeoHistory
std::vector< DDExpandedNode > GeoHistory
Definition:
GeometricDetExtra.h:22
GeometricDetExtra::wasBuiltFromDD
bool wasBuiltFromDD() const
Definition:
GeometricDetExtra.h:59
GeometricDetExtra::name
std::string const & name() const
Definition:
GeometricDetExtra.h:61
GeometricDetExtra
Definition:
GeometricDetExtra.h:17
GeometricDetExtra::_copy
int _copy
Definition:
GeometricDetExtra.h:72
DetId.h
GeometricDetExtra::_parents
GeoHistory _parents
Definition:
GeometricDetExtra.h:68
GeometricDetExtra::copyno
int copyno() const
Definition:
GeometricDetExtra.h:50
Generated for CMSSW Reference Manual by
1.8.11