ATLAS Offline Software
TileGeoG4DMLookup.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //************************************************************
6 //
7 // Look-up classes for Tile Calibration
8 //
9 // Author: Gia Khoriauli <Gia.Khoriauli@cern.ch>
10 // May, 2005
11 //
12 //************************************************************
13 
14 #ifndef TILEGEOG4CALIB_TILEGEOG4DMLOOKUP_H
15 #define TILEGEOG4CALIB_TILEGEOG4DMLOOKUP_H
16 
17 #include <vector>
18 
19 class TileGeoG4Cell;
20 class TileGeoG4Section;
21 
23 public:
24 
25  int detector;
26  int sample;
28 
30 };
31 
33 public:
34 
35  int detector;
36  int tower;
37  int sample;
38  int neighbor;
39  double eta;
40  double dEta;
41  double xBound;
42  double zBound;
43 
44  std::vector<int> m_nPlateCellHit;
45  std::vector<int> m_nPlateCellHit_negative;
46 
48 };
49 
51 public:
52 
53  int detector;
54  int tower;
55  int sample;
56  double eta;
57  double dEta;
58  double xBound;
59 
60  std::vector<int> m_nGirderCellHit;
61  std::vector<int> m_nGirderCellHit_negative;
62 
64 };
65 
67  std::vector<TileGeoG4CalibCell*> cells;
68  std::vector<TileGeoG4PlateCell*> plateCells;
69 };
70 
72 public:
73 
74  TileGeoG4CalibSection(const int verboseLevel);
76 
77  int section;
80  int nrOfCells;
83  double sample_ZBound[4];
84 
85  std::vector<TileGeoG4CalibSample*> samples;
86  std::vector<TileGeoG4GirderCell*> girderCells;
87 
88  //Builds correspondence between absorber materials and cells. fills m_DMToCell in
89  void DMToCell(bool gap_crack, TileGeoG4Section* tile_section);
90 
91  //Returns the pointer to the cell corresponding to nPeriod-th period and sample
92  TileGeoG4Cell* GetCell(int nPeriod, int nSample);
93 
94  //Returns the pointer to the Plate 'cell' corresponding to the Hits x, z - coordinates
95  //and the kind of Plate, Front or End.
96  TileGeoG4PlateCell* GetTilePlateCell(double xHit, double zHit, int plate);
97 
98  //Returns the pointer to the Girder 'cell' corresponding to the Hits x - coordinate
100 
101  //Initializes all arayes of all cells of all Tile sections
102  void AddModuleToCell(bool negative);
103 
104 private:
105 
106  //for each unit of Absorber Material ("Period") in Tile modules
107  //contains pointer to the corresponding cell
108  std::vector<TileGeoG4Cell*> m_DMToCell;
110 
111 };
112 
113 #endif // TILEGEOG4CALIB_TILEGEOG4DMLOOKUP_H
114 
TileGeoG4CalibSection::m_verboseLevel
int m_verboseLevel
Definition: TileGeoG4DMLookup.h:109
TileGeoG4CalibSection::GetCell
TileGeoG4Cell * GetCell(int nPeriod, int nSample)
TileGeoG4CalibSection::girderCells
std::vector< TileGeoG4GirderCell * > girderCells
Definition: TileGeoG4DMLookup.h:86
TileGeoG4GirderCell::TileGeoG4GirderCell
TileGeoG4GirderCell()
TileGeoG4PlateCell::m_nPlateCellHit_negative
std::vector< int > m_nPlateCellHit_negative
Definition: TileGeoG4DMLookup.h:45
TileGeoG4CalibSection::AddModuleToCell
void AddModuleToCell(bool negative)
TileGeoG4GirderCell::xBound
double xBound
Definition: TileGeoG4DMLookup.h:58
TileGeoG4PlateCell::neighbor
int neighbor
Definition: TileGeoG4DMLookup.h:38
TileGeoG4PlateCell::detector
int detector
Definition: TileGeoG4DMLookup.h:35
TileGeoG4PlateCell::zBound
double zBound
Definition: TileGeoG4DMLookup.h:42
TileGeoG4PlateCell::TileGeoG4PlateCell
TileGeoG4PlateCell()
TileGeoG4GirderCell::m_nGirderCellHit
std::vector< int > m_nGirderCellHit
Definition: TileGeoG4DMLookup.h:60
TileGeoG4CalibSection::nrOfGirderCells
int nrOfGirderCells
Definition: TileGeoG4DMLookup.h:82
TileGeoG4GirderCell::sample
int sample
Definition: TileGeoG4DMLookup.h:55
TileGeoG4CalibSection::GetTileGirderCell
TileGeoG4GirderCell * GetTileGirderCell(double xHit)
TileGeoG4PlateCell::tower
int tower
Definition: TileGeoG4DMLookup.h:36
TileGeoG4CalibSection::sample_ZBound
double sample_ZBound[4]
Definition: TileGeoG4DMLookup.h:83
TileGeoG4GirderCell
Definition: TileGeoG4DMLookup.h:50
TileGeoG4GirderCell::detector
int detector
Definition: TileGeoG4DMLookup.h:53
TileGeoG4PlateCell::m_nPlateCellHit
std::vector< int > m_nPlateCellHit
Definition: TileGeoG4DMLookup.h:44
TileGeoG4CalibCell
Definition: TileGeoG4DMLookup.h:22
TileGeoG4CalibSection::GetTilePlateCell
TileGeoG4PlateCell * GetTilePlateCell(double xHit, double zHit, int plate)
TileGeoG4CalibSample
Definition: TileGeoG4DMLookup.h:66
TileGeoG4CalibSample::plateCells
std::vector< TileGeoG4PlateCell * > plateCells
Definition: TileGeoG4DMLookup.h:68
TileGeoG4PlateCell::xBound
double xBound
Definition: TileGeoG4DMLookup.h:41
TileGeoG4CalibSection::DMToCell
void DMToCell(bool gap_crack, TileGeoG4Section *tile_section)
TileGeoG4CalibCell::nrOfPeriodsInCell
int nrOfPeriodsInCell[2]
Definition: TileGeoG4DMLookup.h:27
TileGeoG4CalibSection::samples
std::vector< TileGeoG4CalibSample * > samples
Definition: TileGeoG4DMLookup.h:85
TileGeoG4CalibSection::section
int section
Definition: TileGeoG4DMLookup.h:77
TileGeoG4CalibCell::TileGeoG4CalibCell
TileGeoG4CalibCell()
TileGeoG4CalibSection
Definition: TileGeoG4DMLookup.h:71
TileGeoG4GirderCell::m_nGirderCellHit_negative
std::vector< int > m_nGirderCellHit_negative
Definition: TileGeoG4DMLookup.h:61
TileGeoG4GirderCell::eta
double eta
Definition: TileGeoG4DMLookup.h:56
TileGeoG4PlateCell::dEta
double dEta
Definition: TileGeoG4DMLookup.h:40
TileGeoG4CalibCell::sample
int sample
Definition: TileGeoG4DMLookup.h:26
TileGeoG4CalibSection::nrOfSamples
int nrOfSamples
Definition: TileGeoG4DMLookup.h:79
TileGeoG4CalibSection::~TileGeoG4CalibSection
~TileGeoG4CalibSection()
TileGeoG4PlateCell::eta
double eta
Definition: TileGeoG4DMLookup.h:39
TileGeoG4GirderCell::tower
int tower
Definition: TileGeoG4DMLookup.h:54
TileGeoG4CalibSection::nrOfCells
int nrOfCells
Definition: TileGeoG4DMLookup.h:80
TileGeoG4PlateCell::sample
int sample
Definition: TileGeoG4DMLookup.h:37
TileGeoG4CalibSection::nrOfPeriods
int nrOfPeriods
Definition: TileGeoG4DMLookup.h:78
TileGeoG4CalibSection::TileGeoG4CalibSection
TileGeoG4CalibSection(const int verboseLevel)
TileGeoG4CalibCell::detector
int detector
Definition: TileGeoG4DMLookup.h:25
TileGeoG4PlateCell
Definition: TileGeoG4DMLookup.h:32
TileGeoG4GirderCell::dEta
double dEta
Definition: TileGeoG4DMLookup.h:57
TileGeoG4CalibSample::cells
std::vector< TileGeoG4CalibCell * > cells
Definition: TileGeoG4DMLookup.h:67
TileGeoG4CalibSection::nrOfPlateCells
int nrOfPlateCells
Definition: TileGeoG4DMLookup.h:81
TileGeoG4CalibSection::m_DMToCell
std::vector< TileGeoG4Cell * > m_DMToCell
Definition: TileGeoG4DMLookup.h:108