1 #ifndef Geometry_HcalTowerAlgo_HcalDDDRecConstants_h 2 #define Geometry_HcalTowerAlgo_HcalDDDRecConstants_h 32 HcalID(
int sub=0,
int et=0,
int fi=0,
int d=0) : subdet(sub), eta(
et),
38 std::vector<std::pair<int, int> >
layer;
39 std::vector<std::pair<int,double> >
phis;
41 double et2=0) : ieta(
eta), zside(zs), depthStart(0), dphi(dfi),
42 etaMin(et1), etaMax(et2) {}
49 double t=0) : ieta(ie), depth(
d), zside(
z), stype(
s),
56 double r1=0,
double r2=0) : ieta(ie), depth(
d),
57 firstPhi(ffi), stepPhi(sfi),
58 nPhi(nfi), rMin(
r1), rMax(
r2) {}
63 else if (type == 1)
return gconsHE;
64 else {std::vector<std::pair<double,double> > gcons;
return gcons;}
66 std::vector<int>
getDepth(
const int& det,
const int&
phi,
67 const int&
zside,
const unsigned int&
eta)
const;
68 std::vector<int>
getDepth(
const unsigned int& eta,
const bool& extra)
const;
73 std::vector<HcalEtaBin>
getEtaBins(
const int& itype)
const;
74 std::pair<double,double>
getEtaPhi(
const int&
subdet,
const int& ieta,
const int& iphi)
const;
80 {
return std::pair<double,double>(
etaTable[
i],etaTable[i+1]);}
81 HcalID getHCID(
int subdet,
int ieta,
int iphi,
int lay,
int idepth)
const;
84 int getLayerFront(
const int& det,
const int& eta,
const int& phi,
85 const int&
depth)
const;
90 const int& iphi,
const int& zside)
const;
92 const int& iphi,
const int& zside)
const;
99 std::vector<std::pair<int,double> >
getPhis(
const int& subdet,
const int& ieta)
const;
102 int getPhiZOne(std::vector<std::pair<int,int> >& phiz)
const;
103 double getRZ(
const int& subdet,
const int& ieta,
const int& depth)
const;
104 double getRZ(
const int& subdet,
const int& ieta,
const int& iphi,
105 const int& depth)
const;
106 double getRZ(
const int& subdet,
const int& layer)
const;
116 unsigned int nCells()
const;
121 std::vector<HcalDetId>&
ids)
const;
123 std::vector<HcalDetId> &)
const;
125 std::vector<HcalDetId> &)
const;
134 std::vector<std::pair<int,double>>& phis,
135 std::map<int,int>& layers,
bool planOne,
136 std::vector<HcalDDDRecConstants::HcalEtaBin>&
bins)
const;
153 std::vector<std::pair<double,double> >
gconsHB;
154 std::vector<std::pair<double,double> >
gconsHE;
std::vector< int > getDepth(const int &det, const int &phi, const int &zside, const unsigned int &eta) const
std::vector< std::pair< double, double > > getConstHBHE(const int &type) const
std::vector< int > iEtaMin
std::vector< int > etagroup
std::pair< int, int > depthMaxSp_
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
std::map< HcalDetId, std::vector< HcalDetId > > detIdSpR_
std::pair< double, double > getEtaPhi(const int &subdet, const int &ieta, const int &iphi) const
std::vector< std::pair< int, int > > etaSimValu
HcalDetId mergedDepthDetId(const HcalDetId &id) const
const std::vector< double > & getEtaTableHF() const
double getPhiOff(const int &i) const
unsigned int layerGroup(int eta, int i) const
void getOneEtaBin(HcalSubdetector subdet, int ieta, int zside, std::vector< std::pair< int, double >> &phis, std::map< int, int > &layers, bool planOne, std::vector< HcalDDDRecConstants::HcalEtaBin > &bins) const
static const int maxLayer_
std::vector< int > maxDepth
std::vector< double > etaTableHF
HcalEtaBin(int eta=0, int zs=1, double dfi=0, double et1=0, double et2=0)
const std::vector< double > & getPhiOffs() const
std::pair< int, int > getEtaRange(const int &i) const
int getTriggerMode() const
std::vector< int > phiUnitS
const HcalParameters * hpar
std::vector< std::pair< double, double > > gconsHE
std::vector< HcalEtaBin > getEtaBins(const int &itype) const
std::vector< double > phibin
bool isPlan1MergedId(const HcalDetId &id) const
HFCellParameters(int ie=0, int d=1, int ffi=1, int sfi=2, int nfi=36, double r1=0, double r2=0)
void specialRBXHBHE(const std::vector< HcalDetId > &, std::vector< HcalDetId > &) const
int getDepthEta29(const int &phi, const int &zside, const int &i) const
unsigned int numberOfCells(HcalSubdetector) const
HcalDetId idFront(const HcalDetId &id) const
HcalID getHCID(int subdet, int ieta, int iphi, int lay, int idepth) const
int getMinDepth(const int &itype, const int &ieta, const int &iphi, const int &zside) const
double getRZ(const int &subdet, const int &ieta, const int &depth) const
HcalActiveLength(int ie=0, int d=0, int z=0, int s=0, double et=0, double t=0)
std::vector< HFCellParameters > getHFCellParameters() const
std::vector< int > iEtaMax
int getDepthEta16(const int &det, const int &iphi, const int &zside) const
std::map< HcalDetId, HcalDetId > detIdSp_
std::vector< int > ietaMap
std::vector< int > nPhiBins
int getDepthEta29(const int &iphi, const int &zside, const int &type) const
std::vector< std::pair< int, int > > layer
double getLayer0Wt(const int &det, const int &phi, const int &zside) const
void getLayerDepth(const int &ieta, std::map< int, int > &layers) const
std::vector< HcalCellType > HcalCellTypes(HcalSubdetector) const
int getLayerFront(const int &det, const int &eta, const int &phi, const int &depth) const
double getLayer0Wt(const int &det, const int &phi, const int &zside) const
std::vector< std::pair< int, double > > getPhis(const int &subdet, const int &ieta) const
HcalDetId idBack(const HcalDetId &id) const
double getPhiBin(const int &i) const
std::vector< double > phioff
unsigned int layerGroupSize(int eta) const
const std::vector< double > & getPhiTable() const
std::pair< double, double > getEtaLimit(const int &i) const
int getNoff(const int &i) const
std::vector< double > etaTable
HcalDDDRecConstants(const HcalParameters *hp, const HcalDDDSimConstants &hc)
HcalID(int sub=0, int et=0, int fi=0, int d=0)
int getMaxDepth(const int &type) const
void unmergeDepthDetId(const HcalDetId &id, std::vector< HcalDetId > &ids) const
const std::vector< double > & getEtaTable() const
et
define resolution functions of each parameter
std::vector< double > phitable
const std::vector< double > & getPhiTableHF() const
const HcalDDDSimConstants & hcons
std::pair< int, int > depthMaxDf_
bool isPlan1ToBeMergedId(const HcalDetId &id) const
const HcalDDDSimConstants * dddConstants() const
std::vector< HcalActiveLength > getThickActive(const int &type) const
bool isPlan1(const HcalDetId &id) const
std::vector< std::pair< double, double > > gconsHB
int maxHFDepth(int ieta, int iphi) const
bool withSpecialRBXHBHE() const
int maxHFDepth(const int &ieta, const int &iphi) const
static const int maxLayerHB_
std::vector< std::pair< int, double > > phis
unsigned int nCells() const
int getNPhi(const int &type) const
int getPhiZOne(std::vector< std::pair< int, int > > &phiz) const
int getDepthEta16(const int &det, const int &phi, const int &zside) const
const HcalLayerDepthMap * ldMap() const