1 #ifndef HGCalCommonData_HGCalDDDConstants_h
2 #define HGCalCommonData_HGCalDDDConstants_h
17 #include <CLHEP/Geometry/Transform3D.h>
29 hgtrap(
int lay0,
float bl0,
float tl0,
float h0,
float dz0,
float alpha0):
38 CLHEP::Hep3Vector
h3v;
39 CLHEP::HepRotation
hr;
46 std::pair<int,int>
assignCell(
float x,
float y,
int lay,
int subSec,
48 std::pair<int,int>
assignCell(
float x,
float y,
float h,
float bl,
float tl,
49 float alpha,
float cellSize)
const;
50 std::pair<int,int>
findCell(
int cell,
int lay,
int subSec,
bool reco)
const;
51 std::pair<int,int>
findCell(
int cell,
float h,
float bl,
float tl,
52 float alpha,
float cellSize)
const;
55 std::pair<float,float>
locateCell(
int cell,
int lay,
int subSec,
60 float cellSize)
const;
62 std::pair<int,int>
newCell(
int cell,
int layer,
int sector,
int subsector,
63 int incrx,
int incry,
bool half)
const;
64 std::pair<int,int>
newCell(
int cell,
int layer,
int subsector,
int incrz,
66 int newCell(
int kx,
int ky,
int lay,
int subSec)
const;
69 float cellSize)
const;
71 std::pair<int,int>
simToReco(
int cell,
int layer,
bool half)
const;
bool isValid(int lay, int mod, int cell, bool reco) const
std::vector< double > cellSize_
std::vector< hgtrap >::const_iterator getLastModule(bool reco=false) const
std::vector< hgtrap >::const_iterator getFirstModule(bool reco=false) const
int maxRows(int lay, bool reco) const
std::vector< int > numberCells(int lay, bool reco) const
std::vector< int > depth_
std::vector< hgtrap > moduler_
type of data representation of DDCompactView
std::vector< int > depthIndex
void loadGeometry(const DDFilteredView &fv, const std::string &tag)
unsigned int layers(bool reco) const
void initialize(const DDCompactView &cpv, std::string name)
std::pair< int, int > findCell(int cell, int lay, int subSec, bool reco) const
std::pair< int, float > getIndex(int lay, bool reco) const
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
std::vector< int > cellFactor_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
void loadSpecPars(const DDFilteredView &fv)
std::pair< int, int > simToReco(int cell, int layer, bool half) const
std::vector< hgtrform >::const_iterator getFirstTrForm() const
std::vector< hgtrform > trform_
std::vector< int > layer_
std::vector< int > layerGroup_
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &, int &) const
HGCalDDDConstants(const DDCompactView &cpv, std::string &name)
std::pair< int, int > newCell(int cell, int layer, int sector, int subsector, int incrx, int incry, bool half) const
std::pair< int, int > assignCell(float x, float y, int lay, int subSec, bool reco) const
hgtrap(int lay0, float bl0, float tl0, float h0, float dz0, float alpha0)
volatile std::atomic< bool > shutdown_flag false
std::pair< float, float > locateCell(int cell, int lay, int subSec, bool reco) const
std::vector< hgtrap > modules_
int maxCells(bool reco) const
T mod(const T &a, const T &b)
std::vector< hgtrform >::const_iterator getLastTrForm() const
std::vector< int > layerIndex