ATLAS Offline Software
TileEmscaleCalibOptions.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILEIDENTIFIER_TILEEMSCALECALIBOPTIONS_H
6 #define TILEIDENTIFIER_TILEEMSCALECALIBOPTIONS_H
7 
20 #include <iostream>
21 #include <vector>
22 #include <stdint.h>
23 
25  public:
26 
27  enum CalBitPos{
42  MaxBit
43  };
44 
47 
50 
53 
56 
58  void dumpEmscaleCalibOptions(std::ostringstream& stream) const;
59 
65  bool getEmscaleCalibBit(CalBitPos idx) const;
67  void setEmscaleCalibBit(CalBitPos idx, bool turnOn);
68 
69  private:
71  std::vector<std::string> m_bitToProb;
72 
73  void initBitToProb();
74 
75 };
76 
77 //
78 //_____________________________________________________
79 inline uint32_t
81 {
82  return m_options;
83 }
84 
85 //
86 //_____________________________________________________
87 inline bool
89 {
90  if(m_options & (1<<idx)) return true;
91  else return false;
92 }
93 
94 #endif //TILEIDENTIFIER_TILEEMSCALECALIBOPTIONS_H
95 
96 
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileEmscaleCalibOptions::OnlCes
@ OnlCes
Definition: TileEmscaleCalibOptions.h:40
TileEmscaleCalibOptions::OnlCisLin
@ OnlCisLin
Definition: TileEmscaleCalibOptions.h:38
TileEmscaleCalibOptions::OflLasLinPisa
@ OflLasLinPisa
Definition: TileEmscaleCalibOptions.h:35
TileEmscaleCalibOptions::OflCes
@ OflCes
Definition: TileEmscaleCalibOptions.h:33
TileEmscaleCalibOptions::setEmscaleCalibBit
void setEmscaleCalibBit(CalBitPos idx, bool turnOn)
Sets a given EM scale calibration option to the value given by turnOn.
Definition: TileEmscaleCalibOptions.cxx:11
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
TileEmscaleCalibOptions::initBitToProb
void initBitToProb()
Definition: TileEmscaleCalibOptions.cxx:35
TileEmscaleCalibOptions::getEmscaleCalibBit
bool getEmscaleCalibBit(CalBitPos idx) const
Returns a bit for a given calibration option.
Definition: TileEmscaleCalibOptions.h:88
TileEmscaleCalibOptions::m_options
uint32_t m_options
Definition: TileEmscaleCalibOptions.h:70
TileEmscaleCalibOptions::OflEms
@ OflEms
Definition: TileEmscaleCalibOptions.h:34
TileEmscaleCalibOptions::OflLasLin
@ OflLasLin
Definition: TileEmscaleCalibOptions.h:30
TileEmscaleCalibOptions::dumpEmscaleCalibOptions
void dumpEmscaleCalibOptions(std::ostringstream &stream) const
Dumps the member EM scale calibration options in a human readable form.
Definition: TileEmscaleCalibOptions.cxx:58
TileEmscaleCalibOptions::OflCisFitNln
@ OflCisFitNln
Definition: TileEmscaleCalibOptions.h:29
TileEmscaleCalibOptions::TileEmscaleCalibOptions
TileEmscaleCalibOptions()
Ctor.
Definition: TileEmscaleCalibOptions.cxx:19
python.AtlRunQueryLib.options
options
Definition: AtlRunQueryLib.py:379
TileEmscaleCalibOptions::OflMinbias
@ OflMinbias
Definition: TileEmscaleCalibOptions.h:37
TileEmscaleCalibOptions
Class for encoding Tile calibration options into a bit map.
Definition: TileEmscaleCalibOptions.h:24
TileEmscaleCalibOptions::OnlLasLin
@ OnlLasLin
Definition: TileEmscaleCalibOptions.h:39
TileEmscaleCalibOptions::OnlEms
@ OnlEms
Definition: TileEmscaleCalibOptions.h:41
TileEmscaleCalibOptions::CalBitPos
CalBitPos
Definition: TileEmscaleCalibOptions.h:27
TileEmscaleCalibOptions::OflCisFitLin
@ OflCisFitLin
Definition: TileEmscaleCalibOptions.h:28
TileEmscaleCalibOptions::OflLasNlnPisa
@ OflLasNlnPisa
Definition: TileEmscaleCalibOptions.h:36
TileEmscaleCalibOptions::~TileEmscaleCalibOptions
~TileEmscaleCalibOptions()
Dtor.
Definition: TileEmscaleCalibOptions.h:52
TileEmscaleCalibOptions::OflLasNln
@ OflLasNln
Definition: TileEmscaleCalibOptions.h:31
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
TileEmscaleCalibOptions::getEmscaleCalibOptions
uint32_t getEmscaleCalibOptions() const
Returns the complete bitmap with all EM scale calibration options.
Definition: TileEmscaleCalibOptions.h:80
TileEmscaleCalibOptions::m_bitToProb
std::vector< std::string > m_bitToProb
Definition: TileEmscaleCalibOptions.h:71
TileEmscaleCalibOptions::MaxBit
@ MaxBit
Definition: TileEmscaleCalibOptions.h:42
TileEmscaleCalibOptions::OflLasPart
@ OflLasPart
Definition: TileEmscaleCalibOptions.h:32