test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 "CondFormats/GeometryObjects/interface/PGeometricDetExtra.h"
5
#include "
Geometry/TrackerNumberingBuilder/interface/GeometricDet.h
"
6
#include "
DetectorDescription/Core/interface/DDExpandedView.h
"
7
/* #include "DetectorDescription/Base/interface/DDRotationMatrix.h" */
8
/* #include "DetectorDescription/Base/interface/DDTranslation.h" */
9
/* #include "DetectorDescription/Core/interface/DDSolidShapes.h" */
10
/* #include "DataFormats/GeometrySurface/interface/Surface.h" */
11
/* #include "DataFormats/GeometrySurface/interface/Bounds.h" */
12
#include "
DataFormats/DetId/interface/DetId.h
"
13
14
#include <vector>
15
#include "
FWCore/ParameterSet/interface/types.h
"
16
17
#include <ext/pool_allocator.h>
18
// waiting for template-alias
19
//#define PoolAlloc __gnu_cxx::__pool_alloc
25
class
GeometricDetExtra
{
26
public
:
27
typedef
DDExpandedView::NavRange
NavRange
;
28
#ifdef PoolAlloc
29
typedef
std::vector< DDExpandedNode, PoolAlloc<DDExpandedNode> >
GeoHistory
;
30
#endif
31
#ifndef PoolAlloc
32
typedef
std::vector<DDExpandedNode>
GeoHistory
;
33
#endif
34
37
GeometricDetExtra
(
GeometricDet
const
*gd ) :
_mygd
(gd) { };
// this better be "copied into" or it will never have any valid numbers/info.
38
39
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
);
40
44
~GeometricDetExtra
();
45
46
/*
47
GeometricDetExtra(const GeometricDetExtra &);
48
49
GeometricDetExtra & operator=( const GeometricDetExtra & );
50
*/
55
GeometricDet
const
*
geometricDet
()
const
{
return
_mygd
; }
56
// void setGeometricDet( GeometricDet* gd ) { _mygd=gd; }
57
61
void
setGeographicalId
(
DetId
id
) {
62
_geographicalId
= id;
63
//std::cout <<"setGeographicalId " << int(id) << std::endl;
64
}
65
DetId
geographicalId
()
const
{
return
_geographicalId
; }
66
//rr
70
GeoHistory
const
&
parents
()
const
{
71
//std::cout<<"parents"<<std::endl;
72
return
_parents
;
73
}
74
//rr
75
int
copyno
()
const
{
76
//std::cout<<"copyno"<<std::endl;
77
return
_copy
;
78
}
79
double
volume
()
const
{
80
//std::cout<<"volume"<<std::endl;
81
return
_volume
;
82
}
83
double
density
()
const
{
84
//std::cout<<"density"<<std::endl;
85
return
_density
;
86
}
87
double
weight
()
const
{
88
//std::cout<<"weight"<<std::endl;
89
return
_weight
;
90
}
91
std::string
const
&
material
()
const
{
92
//std::cout<<"material"<<std::endl;
93
return
_material
;
94
}
95
99
bool
wasBuiltFromDD
()
const
{
100
//std::cout<<"wasBuildFromDD"<<std::endl;
101
return
_fromDD
;
102
}
103
104
std::string
const
&
name
()
const
{
return
_name
; }
105
106
private
:
107
110
GeometricDet
const
*
_mygd
;
111
DetId
_geographicalId
;
112
GeoHistory
_parents
;
113
double
_volume
;
114
double
_density
;
115
double
_weight
;
116
int
_copy
;
117
std::string
_material
;
118
std::string
_name
;
119
bool
_fromDD
;
// may not need this, keep an eye on it.
120
};
121
122
#undef PoolAlloc
123
#endif
createTree.dd
list dd
Definition:
createTree.py:147
GeometricDetExtra::geometricDet
GeometricDet const * geometricDet() const
Definition:
GeometricDetExtra.h:55
types.h
GeometricDetExtra::material
std::string const & material() const
Definition:
GeometricDetExtra.h:91
GeometricDetExtra::NavRange
DDExpandedView::NavRange NavRange
Definition:
GeometricDetExtra.h:27
GeometricDetExtra::parents
GeoHistory const & parents() const
Definition:
GeometricDetExtra.h:70
GeometricDetExtra::weight
double weight() const
Definition:
GeometricDetExtra.h:87
DDExpandedView::NavRange
std::pair< int const *, size_t > NavRange
Definition:
DDExpandedView.h:42
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
GeometricDetExtra::GeoHistory
std::vector< DDExpandedNode > GeoHistory
Definition:
GeometricDetExtra.h:32
GeometricDetExtra::_material
std::string _material
Definition:
GeometricDetExtra.h:117
GeometricDet.h
GeometricDetExtra::~GeometricDetExtra
~GeometricDetExtra()
Definition:
GeometricDetExtra.cc:23
GeometricDet
Definition:
GeometricDet.h:30
GeometricDetExtra::_name
std::string _name
Definition:
GeometricDetExtra.h:118
GeometricDetExtra::_mygd
GeometricDet const * _mygd
Definition:
GeometricDetExtra.h:110
GeometricDetExtra::_fromDD
bool _fromDD
Definition:
GeometricDetExtra.h:119
GeometricDetExtra::_volume
double _volume
Definition:
GeometricDetExtra.h:113
GeometricDetExtra::_geographicalId
DetId _geographicalId
Definition:
GeometricDetExtra.h:111
GeometricDetExtra::density
double density() const
Definition:
GeometricDetExtra.h:83
GeometricDetExtra::_density
double _density
Definition:
GeometricDetExtra.h:114
GeometricDetExtra::_weight
double _weight
Definition:
GeometricDetExtra.h:115
DetId
Definition:
DetId.h:18
DDExpandedView.h
GeometricDetExtra::geographicalId
DetId geographicalId() const
Definition:
GeometricDetExtra.h:65
GeometricDetExtra::GeometricDetExtra
GeometricDetExtra(GeometricDet const *gd)
Definition:
GeometricDetExtra.h:37
GeometricDetExtra::volume
double volume() const
Definition:
GeometricDetExtra.h:79
GeometricDetExtra::setGeographicalId
void setGeographicalId(DetId id)
Definition:
GeometricDetExtra.h:61
GeometricDetExtra::wasBuiltFromDD
bool wasBuiltFromDD() const
Definition:
GeometricDetExtra.h:99
GeometricDetExtra::name
std::string const & name() const
Definition:
GeometricDetExtra.h:104
GeometricDetExtra
Definition:
GeometricDetExtra.h:25
GeometricDetExtra::_copy
int _copy
Definition:
GeometricDetExtra.h:116
DetId.h
GeometricDetExtra::_parents
GeoHistory _parents
Definition:
GeometricDetExtra.h:112
GeometricDetExtra::copyno
int copyno() const
Definition:
GeometricDetExtra.h:75
Generated for CMSSW Reference Manual by
1.8.5