|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef REGSELECTORHASHMAP_H
7 #define REGSELECTORHASHMAP_H
13 #include "GaudiKernel/StatusCode.h"
24 #define INITHASH 30000 // nonexistent hashID number (init value)
66 const std::vector<double>&
etaMinOut(
void)
const ;
67 const std::vector<double>&
etaMaxOut(
void)
const ;
68 const std::vector<double>&
phiMinOut(
void)
const ;
69 const std::vector<double>&
phiMaxOut(
void)
const ;
73 const std::vector<IdentifierHash>&
hashIdOut(
void)
const ;
74 const std::vector<std::vector<uint32_t> >&
robIdOut(
void)
const ;
75 const std::vector<int>&
sampleOut(
void)
const ;
76 const std::vector<int>&
layerOut(
void)
const ;
79 double phiminIn,
double phimaxIn,
80 std::vector<uint32_t>& outRobIDList)
const;
83 double etaminIn,
double etamaxIn,
84 double phiminIn,
double phimaxIn,
85 std::vector<uint32_t>& outRobIDList)
const;
88 double phiminIn,
double phimaxIn,
89 std::vector<IdentifierHash> &
outList)
const;
92 double etaminIn,
double etamaxIn,
93 double phiminIn,
double phimaxIn,
94 std::vector<IdentifierHash> &
outList)
const;
100 void verifyInputs(
double &etaminIn,
double &etamaxIn,
double &phiminIn,
double &phimaxIn)
const;
103 double phiminIn,
double phimaxIn,
104 std::vector<uint32_t>& outputIdlist)
const ;
107 double etaminIn,
double etamaxIn,
108 double phiminIn,
double phimaxIn,
109 std::vector<uint32_t>& outputIdlist)
const;
112 double phiminIn,
double phimaxIn,
113 std::vector<IdentifierHash>* outputIdlist)
const;
115 void verifyOutput(
int sampling,
double etaminIn,
double etamaxIn,
116 double phiminIn,
double phimaxIn,
117 std::vector<IdentifierHash>* outputIdlist)
const;
121 double *phiMin,
double *phiMax)
const;
148 const double& emax,
const double& pmin,
const double& pmax,
const int& samp);
151 const double& etamaxIn,
const double& phiminIn,
const double& phimaxIn,
152 std::vector<IdentifierHash>* outListIH )
const;
155 const double& etamaxIn,
const double& phiminIn,
const double& phimaxIn,
156 std::vector<uint32_t>*
outList)
const;
159 double etaminIn,
double etamaxIn,
160 double phiminIn,
double phimaxIn,
161 double etamin,
double etamax,
162 std::set<IdentifierHash>* outset)
const;
165 double etaminIn,
double etamaxIn,
166 double phiminIn,
double phimaxIn,
167 double etamin,
double etamax,
168 std::set<uint32_t>* outset)
const;
172 const int iXBeg,
const int iXEnd,
173 const int iYBeg,
const int iYEnd,
174 const int iPage)
const;
178 const int iXBeg,
const int iXEnd,
179 const int iYBeg,
const int iYEnd,
180 const int iPage)
const;
const std::vector< int > & sampleOut(void) const
std::vector< IdentifierHash > m_hashId
void verifyROBIDOutput(double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< uint32_t > &outputIdlist) const
void populateMatrix(int iPage, IdentifierHash value)
void findIdentifierROB(std::vector< uint32_t > &auxset, const int iXBeg, const int iXEnd, const int iYBeg, const int iYEnd, const int iPage) const
void populateMatrixRobId(int iPage, uint32_t value)
const std::vector< int > & layerOut(void) const
double etamaxValue() const
std::vector< std::vector< uint32_t > > m_robId
void addLut(const RegionSelectorLUT *detLut)
void regionSelectorIN(const int &sampling, const double &etaminIn, const double &etamaxIn, const double &phiminIn, const double &phimaxIn, std::vector< IdentifierHash > *outListIH) const
const std::vector< double > & etaMaxOut(void) const
virtual void ROBIDList(const IRoiDescriptor &roi, std::vector< uint32_t > &roblist) const override
rob methods
void findIdentifier(std::vector< IdentifierHash > &auxsetIH, const int iXBeg, const int iXEnd, const int iYBeg, const int iYEnd, const int iPage) const
std::vector< std::vector< uint32_t > > m_robIDMap
std::vector< size_t > vec
const std::vector< IdentifierHash > & hashIdOut(void) const
std::vector< double > m_etamax
void getEtaPhi(IdentifierHash hashId, double *etaMin, double *etaMax, double *phiMin, double *phiMax) const
bool operator()(uint32_t i, uint32_t j) const
bool operator()(int i, int j) const
std::list< RegSelectorMapElement > m_dataList
std::vector< double > m_phimax
double phimaxValue() const
virtual void HashIDList(const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const override
implementation of the IRegSelUT interface
const std::vector< double > & phiMinOut(void) const
void regionSelectorINROB(const int &sampling, const double &etaminIn, const double &etamaxIn, const double &phiminIn, const double &phimaxIn, std::vector< uint32_t > *outList) const
double etaminValue() const
rest of the class implementation
const std::vector< double > & etaMinOut(void) const
::StatusCode StatusCode
StatusCode definition for legacy code.
Describes the API of the Region of Ineterest geometry.
std::vector< int > m_sample
void writeLine(const int &layer, const IdentifierHash &hashId, const std::vector< uint32_t > &robId, const double &emin, const double &emax, const double &pmin, const double &pmax, const int &samp)
void verifyInputs(double &etaminIn, double &etamaxIn, double &phiminIn, double &phimaxIn) const
void DisableMissingROBs(const std::vector< uint32_t > &vec)
std::vector< double > m_etamin
std::vector< double > m_phimin
std::vector< int > m_layer
double phiminValue() const
void phiCondition(const std::vector< IdentifierHash > &identifier, int i, double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, double etamin, double etamax, std::set< IdentifierHash > *outset) const
void regionSelectorRobIdUint(double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< uint32_t > &outRobIDList) const
void verifyOutput(double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< IdentifierHash > *outputIdlist) const
const std::vector< std::vector< uint32_t > > & robIdOut(void) const
const std::vector< double > & phiMaxOut(void) const
void mountDataStruct(void)
StatusCode read(const char *filename)
void regionSelector(double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, std::vector< IdentifierHash > &outList) const
void phiConditionRobId(const std::vector< std::vector< uint32_t > > &identifier, int i, double etaminIn, double etamaxIn, double phiminIn, double phimaxIn, double etamin, double etamax, std::set< uint32_t > *outset) const
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
int MyRound(double pdValue)
virtual ~RegSelectorHashMap() override=default
void summaryDataFile(std::list< RegSelectorMapElement > &dataList)
std::vector< IdentifierHash > m_hashIDMap