ATLAS Offline Software
Loading...
Searching...
No Matches
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
19
20#include <iostream>
21#include <vector>
22#include <stdint.h>
23
25 public:
26
44
47
49 TileEmscaleCalibOptions(uint32_t options);
50
53
55 uint32_t getEmscaleCalibOptions() const;
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:
70 uint32_t m_options;
71 std::vector<std::string> m_bitToProb;
72
73 void initBitToProb();
74
75};
76
77//
78//_____________________________________________________
79inline uint32_t
84
85//
86//_____________________________________________________
87inline bool
89{
90 if(m_options & (1<<idx)) return true;
91 else return false;
92}
93
94#endif //TILEIDENTIFIER_TILEEMSCALECALIBOPTIONS_H
95
96
void dumpEmscaleCalibOptions(std::ostringstream &stream) const
Dumps the member EM scale calibration options in a human readable form.
void setEmscaleCalibBit(CalBitPos idx, bool turnOn)
Sets a given EM scale calibration option to the value given by turnOn.
bool getEmscaleCalibBit(CalBitPos idx) const
Returns a bit for a given calibration option.
uint32_t getEmscaleCalibOptions() const
Returns the complete bitmap with all EM scale calibration options.
std::vector< std::string > m_bitToProb