ATLAS Offline Software
Loading...
Searching...
No Matches
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"
22class IRDBRecord;
23
25public:
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
39
40 // ---------------- T I L E ---------------
41 int GetNumModules(int index) 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;
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
58 int SetFirstDetGirderCell(int detector);
60
62 int GetGirderCellNum() const;
63 int GetGirderCellTower() 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
72 int SetFirstDetPlateCell(int detector);
73 int SetFirstDetPlateCellInSample(int detector, int sample);
76
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
94 int SetFirstDetCell(int detector);
95
96 // Find first Cell for given Tile Section and Sample
97 // 1 - success; 0 - doesn't exist any such Cell
98 int SetFirstDetCellInSample(int detector, int sample);
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
109 int GetCellSample() const;
110 int GetCellDetector() const;
111
112 //Get IRDBRecordsets sizes
118
119private:
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
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
void section(const std::string &sec)
IRDBRecord is one record in the IRDBRecordset object.
Definition IRDBRecord.h:27
int GetPlateCellNum() const
IRDBRecordset_ptr m_tileCell
double GetPlateCellXBound() const
int GetNumSectSamples() const
void SetCurrentCell(unsigned int index)
double GetGirderCellDeta() const
const IRDBRecord * m_currentPlateCell
IRDBRecordset_ptr m_tileGirderCell
int GetCellSample() const
int GetGirderCellDetector() const
double GetPlateCellEta() const
int GetNumOfPeriodsInCell(int index) const
int SetFirstDetCellInSample(int detector, int sample)
const IRDBRecord * m_currentGirderCell
int GetGirderCellSample() const
double GetGirderCellEta() const
const IRDBRecord * m_currentTile
int GetTileCalibSectionsIRDBRS_size() const
void SetCurrentPlateCell(unsigned int section)
int GetPlateCellSample() const
double GetSampleZBound(int index) const
int GetTileCalibPlateCellsIRDBRS_size() const
int SetFirstDetCell(int detector)
IRDBRecordset_ptr m_tileSection
int GetNumSectPeriods() const
IRDBRecordset_ptr m_switches
int GetCellDetector() const
double GetPlateCellZBound() const
int GetPlateCellTower() const
int GetNumSectCells() const
int SetFirstDetPlateCellInSample(int detector, int sample)
int GetTileCalibCellsIRDBRS_size() const
double GetPlateCellDeta() const
int GetTileIRDBRS_size() const
TileCalibDddbManager(ServiceHandle< IRDBAccessSvc > &access, const std::string &version_tag, const std::string &version_node, const int verboseLevel)
int SetNextDetPlateCellInSample()
int GetGirderCellTower() const
IRDBRecordset_ptr m_tilePlateCell
int GetNumSectGirderCells() const
int GetPlateCellNeighborPeriod() const
int GetGirderCellNum() const
double GetGirderCellXBound() const
const IRDBRecord * m_currentCell
void SetCurrentGirderCell(unsigned int item)
int GetNumSectPlateCells() const
int SetFirstDetGirderCell(int detector)
bool GetSwitchPlateToCell() const
void SetCurrentSection(unsigned int section)
int GetNumModules(int index) const
int GetCurrentSection() const
int GetTileCalibGirderCellsIRDBRS_size() const
int SetFirstDetPlateCell(int detector)
int GetPlateCellDetector() const
const IRDBRecord * m_currentSection
Definition index.py:1