|
ATLAS Offline Software
|
Go to the documentation of this file.
22 m_NIndexDBIn(0), m_NIndexDBOut(0), m_isCommon(v_isCommon)
24 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
28 for(
int iIndexOut=0; iIndexOut<
NIndexOut; iIndexOut++) {
58 if(
ip<0)
return false;
61 for(
int iIndexOut=0; iIndexOut<
NIndexOut; iIndexOut++) {
65 bool over_range =
false;
66 for(
int iIndexOut=0; iIndexOut<
NIndexOut; iIndexOut++) {
110 if(!indexIn)
return -1;
130 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
137 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
144 if(!indexOut)
return -1;
164 for(
int iIndexOut=0; iIndexOut<
NIndexOut; iIndexOut++) {
171 for(
int iIndexOut=0; iIndexOut<
NIndexOut; iIndexOut++) {
186 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
190 for(
int iIndexOut=0; iIndexOut<
NIndexOut; iIndexOut++) {
195 while(getline(
file,buf)){
199 while(getline(
file,buf)){
200 if(buf.substr(0,1)==
"E"||buf.substr(0,1)==
"F")
break;
201 std::istringstream
line(buf);
202 std::vector<int>
entry;
206 entry.push_back(temp);
214 const unsigned int database_size =
m_database.size();
215 for(
unsigned int i=0;
i<database_size;
i++){
220 if(
i==database_size-1||
225 for(
int j=0; j<totline; j++){
232 for(
unsigned int i=0;
i<database_size;
i++){
264 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
267 for(
int iIndexDBIn=0; iIndexDBIn<
m_NIndexDBIn; iIndexDBIn++) {
274 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
285 for(
int iIndexIn=1; iIndexIn<
NIndexIn; iIndexIn++) {
295 for(
int iIndexOut=0; iIndexOut<
NIndexOut; iIndexOut++) {
298 for(
int iIndexDBOut=0; iIndexDBOut<
m_NIndexDBOut; iIndexDBOut++) {
305 for(
int iIndexOut=0; iIndexOut<
NIndexOut; iIndexOut++) {
316 for(
int iIndexOut=1; iIndexOut<
NIndexOut; iIndexOut++) {
static const int ReverseIndexOut[DATABASESIZE]
virtual void getindexDBVectorOut(std::vector< int > &tmpindexDBOut) const
Get the IndexDBOut table.
virtual void getminIndexOut(int *tmpminIndexOut) const
Get the minimum values of indexOut with NIndexOut dimensions.
static const int IndexIn[NIndexIn]
virtual int getIndexDBIn(int *indexIn) const override
Get IndexDBIn (position in the databse between 0 and database.size()-1) from indexIn which is NIndexI...
int m_maxIndexIn[NIndexIn]
virtual int convertIndexDBIn(int *indexIn) const
Get the interal number, which is between 0 and NIndexDBIn-1.
virtual void getindexDBVectorIn(std::vector< int > &tmpindexDBIn) const
Get the IndexDBIn table.
static const int IndexOut[NIndexOut]
virtual int find(const std::vector< int > &) const override
int m_minIndexOut[NIndexOut]
bool isCommon() const
This method is used to know the database is common or sector specific.
virtual ~TGCDatabaseASDToPP(void)
Destructor.
virtual void makeIndexDBOut(void)
Make the IndexDBOut table.
virtual void getNIndexDBOut(int &tmpNIndexDBOut) const
Get the size of the IndexDBOut table.
virtual void getmaxIndexOut(int *tmpmaxIndexOut) const
Get the maximum values of indexOut with NIndexOut dimensions.
virtual void getminIndexIn(int *tmpminIndexIn) const
Get the minimum values of indexIn with NIndexIn dimensions.
virtual void readDB(void) override
static const int ReverseIndexIn[DATABASESIZE]
std::vector< int > m_indexDBIn
virtual void makeIndexDBIn(void)
Make the IndexDBIn table.
int m_minIndexIn[NIndexIn]
bool m_isCommon
This bool variable is used to know the database is common or sector specific.
int m_maxIndexOut[NIndexOut]
virtual int getIndexDBOut(int *indexOut) const override
Get IndexDBOut (position in the databse between 0 and database.size()-1) from indexOut which is NInde...
virtual int convertIndexDBOut(int *indexOut) const
Get the interal number, which is between 0 and NIndexDBOut-1.
std::vector< int > m_indexDBOut
virtual bool update(const std::vector< int > &) override
virtual void getmaxIndexIn(int *tmpmaxIndexIn) const
Get the maximum values of indexIn with NIndexIn dimensions.
std::vector< std::vector< int > > m_database
virtual void getNIndexDBIn(int &tmpNIndexDBIn) const
Get the size of the IndexDBIn table.