ATLAS Offline Software
TileCalibDddbManager.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 //
7 // Manager for Tile Calibration DB
8 //
9 // author: Gia Khoriauli <gia@mail.cern.ch>
10 //
11 // May, 2005
12 //
14 
15 #ifndef TILEGEOG4CALIB_TILECALIBDDDBMANAGER_H
16 #define TILEGEOG4CALIB_TILECALIBDDDBMANAGER_H
17 
18 #include <string>
19 
20 #include "GaudiKernel/ServiceHandle.h"
22 class IRDBRecord;
23 
25 public:
26 
27  TileCalibDddbManager(ServiceHandle<IRDBAccessSvc> &access, const std::string & version_tag, const std::string & version_node,
28  const int verboseLevel);
29  // Default destructor is fine
30 
37  TILE_PLUG4 = 6
38  };
39 
40  // ---------------- T I L E ---------------
41  int GetNumModules(int index) const;
42  bool GetSwitchPlateToCell() const;
43  // -------------- S E C T I O N --------------
44  void SetCurrentSection(unsigned int section);
45 
46  int GetCurrentSection() const;
47  int GetNumSectPeriods() const;
48  int GetNumSectSamples() const;
49  int GetNumSectCells() const;
50  int GetNumSectPlateCells() const;
51  int GetNumSectGirderCells() const;
52 
53  double GetSampleZBound(int index) const;
54 
55  // ---------- G I R D E R C E L L -----------
56  void SetCurrentGirderCell(unsigned int item);
57 
60 
61  int GetGirderCellDetector() const;
62  int GetGirderCellNum() const;
63  int GetGirderCellTower() const;
64  int GetGirderCellSample() const;
65  double GetGirderCellEta() const;
66  double GetGirderCellDeta() const;
67  double GetGirderCellXBound() const;
68 
69  // ------------ P L A T E C E L L ----------
70  void SetCurrentPlateCell(unsigned int section);
71 
76 
77  int GetPlateCellDetector() const;
78  int GetPlateCellNum() const;
79  int GetPlateCellTower() const;
80  int GetPlateCellSample() const;
81  double GetPlateCellEta() const;
82  double GetPlateCellDeta() const;
83  double GetPlateCellXBound() const;
84  double GetPlateCellZBound() const;
86 
87  // ----------------- C E L L -------------------
88 
89  // void SetCurrentCell(int detector, double sample, double tower);
90  void SetCurrentCell(unsigned int index);
91 
92  // Find first Cell for given Tile Section (detector)
93  // 1 - success; 0 - doesn't exist any Cells for given Section
95 
96  // Find first Cell for given Tile Section and Sample
97  // 1 - success; 0 - doesn't exist any such Cell
99 
100  // Move to the next Cell with the same Tile Section field
101  // 1 - success; 0 - the current is last one, it remains unchanged
103 
104  // Move to the next Cell with the same Tile Section and Sample fields
105  // 1 - success; 0 - the current is last one, it remains unchanged
107 
108  int GetNumOfPeriodsInCell(int index) const;
109  int GetCellSample() const;
110  int GetCellDetector() const;
111 
112  //Get IRDBRecordsets sizes
113  int GetTileIRDBRS_size() const;
118 
119 private:
120 
127 
128  unsigned int m_nTile;
129  unsigned int m_nTileSect;
130  unsigned int m_nTileCell;
131  unsigned int m_nTilePCell;
132  unsigned int m_nTileGCell;
133 
139 
143 
144  std::string m_tag;
145  std::string m_node;
146 
148 };
149 
150 #endif // TILEGEOG4CALIB_TILECALIBDDDBMANAGER_H
TileCalibDddbManager::GetGirderCellDeta
double GetGirderCellDeta() const
TileCalibDddbManager::GetPlateCellDetector
int GetPlateCellDetector() const
TileCalibDddbManager::GetPlateCellNum
int GetPlateCellNum() const
TileCalibDddbManager::GetGirderCellXBound
double GetGirderCellXBound() const
TileCalibDddbManager::TILE_PLUG3
@ TILE_PLUG3
Definition: TileCalibDddbManager.h:36
TileCalibDddbManager::GetSwitchPlateToCell
bool GetSwitchPlateToCell() const
index
Definition: index.py:1
TileCalibDddbManager::GetTileCalibSectionsIRDBRS_size
int GetTileCalibSectionsIRDBRS_size() const
TRTCalib_cfilter.detector
detector
Definition: TRTCalib_cfilter.py:241
TileCalibDddbManager::GetNumModules
int GetNumModules(int index) const
TileCalibDddbManager::GetNumSectCells
int GetNumSectCells() const
TileCalibDddbManager::TILE_PLUG2
@ TILE_PLUG2
Definition: TileCalibDddbManager.h:35
TileCalibDddbManager::GetNumSectSamples
int GetNumSectSamples() const
TileCalibDddbManager::TILE_BARREL
@ TILE_BARREL
Definition: TileCalibDddbManager.h:32
TileCalibDddbManager::SetFirstDetPlateCellInSample
int SetFirstDetPlateCellInSample(int detector, int sample)
TileCalibDddbManager::m_nTilePCell
unsigned int m_nTilePCell
Definition: TileCalibDddbManager.h:131
TileCalibDddbManager
Definition: TileCalibDddbManager.h:24
TileCalibDddbManager::m_currentSection
const IRDBRecord * m_currentSection
Definition: TileCalibDddbManager.h:135
TileCalibDddbManager::GetTileCalibGirderCellsIRDBRS_size
int GetTileCalibGirderCellsIRDBRS_size() const
TileCalibDddbManager::m_currentPlateCellInd
int m_currentPlateCellInd
Definition: TileCalibDddbManager.h:141
TileCalibDddbManager::GetGirderCellDetector
int GetGirderCellDetector() const
TileCalibDddbManager::GetNumSectPlateCells
int GetNumSectPlateCells() const
TileCalibDddbManager::m_tileGirderCell
IRDBRecordset_ptr m_tileGirderCell
Definition: TileCalibDddbManager.h:125
TileCalibDddbManager::m_tag
std::string m_tag
Definition: TileCalibDddbManager.h:144
TileCalibDddbManager::m_currentGirderCellInd
int m_currentGirderCellInd
Definition: TileCalibDddbManager.h:142
TileCalibDddbManager::GetPlateCellDeta
double GetPlateCellDeta() const
TileCalibDddbManager::GetGirderCellEta
double GetGirderCellEta() const
TileCalibDddbManager::m_switches
IRDBRecordset_ptr m_switches
Definition: TileCalibDddbManager.h:126
TileCalibDddbManager::GetPlateCellNeighborPeriod
int GetPlateCellNeighborPeriod() const
TileCalibDddbManager::GetCellDetector
int GetCellDetector() const
TileCalibDddbManager::TILE_PLUG1
@ TILE_PLUG1
Definition: TileCalibDddbManager.h:34
IRDBAccessSvc.h
Definition of the abstract IRDBAccessSvc interface.
TileCalibDddbManager::SetNextDetCell
int SetNextDetCell()
TileCalibDddbManager::SetNextDetPlateCell
int SetNextDetPlateCell()
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:113
TileCalibDddbManager::m_tileSection
IRDBRecordset_ptr m_tileSection
Definition: TileCalibDddbManager.h:122
TileCalibDddbManager::GetCurrentSection
int GetCurrentSection() const
TileCalibDddbManager::m_nTileSect
unsigned int m_nTileSect
Definition: TileCalibDddbManager.h:129
TileCalibDddbManager::GetNumOfPeriodsInCell
int GetNumOfPeriodsInCell(int index) const
TileCalibDddbManager::GetNumSectGirderCells
int GetNumSectGirderCells() const
TileCalibDddbManager::TileCalibDddbManager
TileCalibDddbManager(ServiceHandle< IRDBAccessSvc > &access, const std::string &version_tag, const std::string &version_node, const int verboseLevel)
TileCalibDddbManager::SetNextDetPlateCellInSample
int SetNextDetPlateCellInSample()
TileCalibDddbManager::TILE_EBARREL
@ TILE_EBARREL
Definition: TileCalibDddbManager.h:33
TileCalibDddbManager::TileCalibSections
TileCalibSections
Definition: TileCalibDddbManager.h:31
TileCalibDddbManager::m_currentPlateCell
const IRDBRecord * m_currentPlateCell
Definition: TileCalibDddbManager.h:137
TileCalibDddbManager::m_nTileGCell
unsigned int m_nTileGCell
Definition: TileCalibDddbManager.h:132
TileCalibDddbManager::m_node
std::string m_node
Definition: TileCalibDddbManager.h:145
TileCalibDddbManager::GetTileCalibPlateCellsIRDBRS_size
int GetTileCalibPlateCellsIRDBRS_size() const
TileCalibDddbManager::m_currentGirderCell
const IRDBRecord * m_currentGirderCell
Definition: TileCalibDddbManager.h:138
python.dummyaccess.access
def access(filename, mode)
Definition: dummyaccess.py:18
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition: IRDBAccessSvc.h:25
TileCalibDddbManager::GetGirderCellTower
int GetGirderCellTower() const
TileCalibDddbManager::GetPlateCellZBound
double GetPlateCellZBound() const
TileCalibDddbManager::SetCurrentPlateCell
void SetCurrentPlateCell(unsigned int section)
TileCalibDddbManager::GetGirderCellSample
int GetGirderCellSample() const
TileCalibDddbManager::GetGirderCellNum
int GetGirderCellNum() const
TileCalibDddbManager::m_currentTile
const IRDBRecord * m_currentTile
Definition: TileCalibDddbManager.h:134
TileCalibDddbManager::m_nTileCell
unsigned int m_nTileCell
Definition: TileCalibDddbManager.h:130
TileCalibDddbManager::TILE_PLUG4
@ TILE_PLUG4
Definition: TileCalibDddbManager.h:37
TileCalibDddbManager::SetFirstDetGirderCell
int SetFirstDetGirderCell(int detector)
TileCalibDddbManager::GetPlateCellSample
int GetPlateCellSample() const
item
Definition: ItemListSvc.h:43
TileCalibDddbManager::SetCurrentGirderCell
void SetCurrentGirderCell(unsigned int item)
TileCalibDddbManager::m_nTile
unsigned int m_nTile
Definition: TileCalibDddbManager.h:128
TileCalibDddbManager::GetCellSample
int GetCellSample() const
TileCalibDddbManager::GetTileIRDBRS_size
int GetTileIRDBRS_size() const
IRDBRecord
IRDBRecord is one record in the IRDBRecordset object.
Definition: IRDBRecord.h:27
TileCalibDddbManager::GetSampleZBound
double GetSampleZBound(int index) const
TileCalibDddbManager::SetFirstDetPlateCell
int SetFirstDetPlateCell(int detector)
TileCalibDddbManager::GetNumSectPeriods
int GetNumSectPeriods() const
TileCalibDddbManager::SetFirstDetCell
int SetFirstDetCell(int detector)
TileCalibDddbManager::SetFirstDetCellInSample
int SetFirstDetCellInSample(int detector, int sample)
TileCalibDddbManager::m_verboseLevel
int m_verboseLevel
Definition: TileCalibDddbManager.h:147
TileCalibDddbManager::m_tilePlateCell
IRDBRecordset_ptr m_tilePlateCell
Definition: TileCalibDddbManager.h:124
section
void section(const std::string &sec)
Definition: TestTriggerMenuAccess.cxx:22
TileCalibDddbManager::GetPlateCellXBound
double GetPlateCellXBound() const
TileCalibDddbManager::SetCurrentSection
void SetCurrentSection(unsigned int section)
TileCalibDddbManager::m_currentCell
const IRDBRecord * m_currentCell
Definition: TileCalibDddbManager.h:136
TileCalibDddbManager::GetTileCalibCellsIRDBRS_size
int GetTileCalibCellsIRDBRS_size() const
TileCalibDddbManager::SetNextDetCellInSample
int SetNextDetCellInSample()
TileCalibDddbManager::m_tileCell
IRDBRecordset_ptr m_tileCell
Definition: TileCalibDddbManager.h:123
TileCalibDddbManager::SetCurrentCell
void SetCurrentCell(unsigned int index)
TileCalibDddbManager::SetNextDetGirderCell
int SetNextDetGirderCell()
TileCalibDddbManager::GetPlateCellEta
double GetPlateCellEta() const
TileCalibDddbManager::GetPlateCellTower
int GetPlateCellTower() const
ServiceHandle< IRDBAccessSvc >
TileCalibDddbManager::m_tile
IRDBRecordset_ptr m_tile
Definition: TileCalibDddbManager.h:121
TileCalibDddbManager::m_currentCellInd
int m_currentCellInd
Definition: TileCalibDddbManager.h:140