|
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)
67 const std::vector<double>&
etaMinOut(
void)
const ;
68 const std::vector<double>&
etaMaxOut(
void)
const ;
69 const std::vector<double>&
phiMinOut(
void)
const ;
70 const std::vector<double>&
phiMaxOut(
void)
const ;
74 const std::vector<IdentifierHash>&
hashIdOut(
void)
const ;
75 const std::vector<std::vector<uint32_t> >&
robIdOut(
void)
const ;
76 const std::vector<int>&
sampleOut(
void)
const ;
77 const std::vector<int>&
layerOut(
void)
const ;
80 double phiminIn,
double phimaxIn,
81 std::vector<uint32_t>& outRobIDList)
const;
84 double etaminIn,
double etamaxIn,
85 double phiminIn,
double phimaxIn,
86 std::vector<uint32_t>& outRobIDList)
const;
89 double phiminIn,
double phimaxIn,
90 std::vector<IdentifierHash> &
outList)
const;
93 double etaminIn,
double etamaxIn,
94 double phiminIn,
double phimaxIn,
95 std::vector<IdentifierHash> &
outList)
const;
101 void verifyInputs(
double &etaminIn,
double &etamaxIn,
double &phiminIn,
double &phimaxIn)
const;
104 double phiminIn,
double phimaxIn,
105 std::vector<uint32_t>& outputIdlist)
const ;
108 double etaminIn,
double etamaxIn,
109 double phiminIn,
double phimaxIn,
110 std::vector<uint32_t>& outputIdlist)
const;
113 double phiminIn,
double phimaxIn,
114 std::vector<IdentifierHash>* outputIdlist)
const;
116 void verifyOutput(
int sampling,
double etaminIn,
double etamaxIn,
117 double phiminIn,
double phimaxIn,
118 std::vector<IdentifierHash>* outputIdlist)
const;
122 double *phiMin,
double *phiMax)
const;
149 const double& emax,
const double& pmin,
const double& pmax,
const int& samp);
152 const double& etamaxIn,
const double& phiminIn,
const double& phimaxIn,
153 std::vector<IdentifierHash>* outListIH )
const;
156 const double& etamaxIn,
const double& phiminIn,
const double& phimaxIn,
157 std::vector<uint32_t>*
outList)
const;
160 double etaminIn,
double etamaxIn,
161 double phiminIn,
double phimaxIn,
162 double etamin,
double etamax,
163 std::set<IdentifierHash>* outset)
const;
166 double etaminIn,
double etamaxIn,
167 double phiminIn,
double phimaxIn,
168 double etamin,
double etamax,
169 std::set<uint32_t>* outset)
const;
173 const int iXBeg,
const int iXEnd,
174 const int iYBeg,
const int iYEnd,
175 const int iPage)
const;
179 const int iXBeg,
const int iXEnd,
180 const int iYBeg,
const int iYEnd,
181 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
virtual void ROBIDList_internal(const IRoiDescriptor &roi, std::vector< uint32_t > &roblist) const
rob methods
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
virtual void HashIDList_internal(const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const
internal implementation of the IRegSelUT interface
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