ATLAS Offline Software
TileCalorimeter
TileIdentifier
TileIdentifier
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
24
class
TileEmscaleCalibOptions
{
25
public
:
26
27
enum
CalBitPos
{
28
OflCisFitLin
,
29
OflCisFitNln
,
30
OflLasLin
,
31
OflLasNln
,
32
OflLasPart
,
33
OflCes
,
34
OflEms
,
35
OflLasLinPisa
,
36
OflLasNlnPisa
,
37
OflMinbias
,
38
OnlCisLin
,
39
OnlLasLin
,
40
OnlCes
,
41
OnlEms
,
42
MaxBit
43
};
44
46
TileEmscaleCalibOptions
();
47
49
TileEmscaleCalibOptions
(
uint32_t
options
);
50
52
~TileEmscaleCalibOptions
() {}
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
//_____________________________________________________
79
inline
uint32_t
80
TileEmscaleCalibOptions::getEmscaleCalibOptions
()
const
81
{
82
return
m_options
;
83
}
84
85
//
86
//_____________________________________________________
87
inline
bool
88
TileEmscaleCalibOptions::getEmscaleCalibBit
(
CalBitPos
idx
)
const
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
Generated on Sun Dec 22 2024 21:19:46 for ATLAS Offline Software by
1.8.18