|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef TILECONDITIONS_TILEDCSCONDALG_H
8 #define TILECONDITIONS_TILEDCSCONDALG_H
65 int readConfig(
const std::string&
fileName,
const std::string& subStr, std::vector<std::pair<int, int>>& rosDrawer);
94 "HV",
"/TILE/DCS/HV",
"The Tile DCS HV COOL folder name"};
100 "HVSET",
"/TILE/DCS/HVSET",
"The Tile DCS HVSET COOL folder name"};
106 "STATES",
"/TILE/DCS/STATES",
"The Tile DCS STATES COOL folder name"};
112 "TileDCS",
"TileDCS",
"Output Tile DCS status"};
118 "TileEMScale",
"TileEMScale",
"Input Tile EMS conditions"};
123 Gaudi::Property<bool>
m_readHV{
this,
"ReadHV",
true,
124 "Flag to control reading Tile DCS HV folder from DB"};
130 "Flag to control reading Tile DCS HVSET folder from DB"};
136 "Flag to control reading Tile DCS STATES folder from DB"};
143 "Status is OK if HV difference is below this limit"};
150 "Mask channels with HV difference above this limit"};
156 "Status is OK if Tile DCS drawer states is like this"};
168 "Status is WARNING if Tile DCS drawer states is like this"};
174 "DCSChHVInCOOL",
"DCSChHVInCOOL.dat",
175 "File name with mapping Tile DCS HV DB COOL channels to ROS and drawer"};
181 "DCSChHVSETInCOOL",
"DCSChHVSETInCOOL.dat",
182 "File name with mapping Tile DCS HVSET DB COOL channels to ROS and drawer"};
188 "DCSChStatesInCOOL",
"DCSChStatesInCOOL.dat",
189 "File name with mapping Tile DCS STATES DB COOL channels to ROS and drawer"};
195 "TileCablingSvc",
"TileCablingSvc",
"The Tile cabling service" };
219 #endif // TILECONDITIONS_TILEDCSCONDALG_H
Gaudi::Property< std::string > m_dcsChHvSetInCool
File name with mapping Tile DCS HVSET DB COOL channels to ROS and drawer.
@ EXTENDED_BARREL_SPECIAL_C10
std::vector< std::pair< int, int > > m_rosDrawerStates
int m_channel2pmt[2][NUMBER_OF_HVSET_CHANNELS]
std::vector< std::pair< int, int > > m_rosDrawerHV
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
virtual StatusCode finalize() override
Gaudi::Property< std::vector< int > > m_warningDrawer
Status is WARNING if Tile DCS drawer states is like this.
int readBadHV(const std::string &fileName)
Read special deltas for few unstable PMTs.
Gaudi::Property< std::string > m_dcsChHvInCool
File name with mapping Tile DCS HV DB COOL channels to ROS and drawer.
Gaudi::Property< float > m_goodHVLimit
Tile DCS Status is OK if difference between measured and requested HV is below this limit.
const TileCablingService * m_cabling
An algorithm that can be simultaneously executed in multiple threads.
@ NUMBER_OF_SPECIAL_MODULE_TYPES
int m_pmt2channel[2][NUMBER_OF_HVSET_CHANNELS]
StatusCode fillReferenceHV(TileDCSState &dcsState, SG::WriteCondHandle< TileDCSState > &wh, const EventContext &ctx) const
Store reference HV from Tile CES or Laser DB folder in TileDCSState.
int readConfig(const std::string &fileName, const std::string &subStr, std::vector< std::pair< int, int >> &rosDrawer)
Read mapping of DB COOL channels into Tile ROS and drawer pairs.
SG::ReadCondHandleKey< CondAttrListCollection > m_hvSetKey
The Tile DCS HVSET COOL folder name.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< bool > m_readHV
Flag to control reading Tile DCS HV folder from DB.
SG::ReadCondHandleKey< CondAttrListCollection > m_statesKey
The Tile DCS STATES COOL folder name.
SG::ReadCondHandleKey< CondAttrListCollection > m_hvKey
The Tile DCS HV COOL folder name.
virtual ~TileDCSCondAlg()=default
Gaudi::Property< float > m_warningHVLimit
Mask channels with difference between measured and requested HV above this limit.
bool m_isChannelUsed[4][NUMBER_OF_CHANNELS]
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_dcsChStatesInCool
File name with mapping Tile DCS STATES DB COOL channels to ROS and drawer.
std::vector< std::pair< int, int > > m_rosDrawerHVSet
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Condition object to keep Tile DCS status from DB.
std::map< int, std::pair< float, float > > m_knownBadHV
SG::WriteCondHandleKey< TileDCSState > m_dcsStateKey
The name of TileDCSState object to produce and put into condition store.
unsigned int getChannelKey(unsigned int ros, unsigned int drawer, unsigned int channel) const
@ brief Return Tile channel key used as index in internal caches @ ros Tile ROS in range [1....
Condition algorithm to prepare TileDCSState object and put it into condition store.
Gaudi::Property< int > m_goodDrawer
Status is OK if Tile DCS drawer states is like this.
SG::ReadCondHandleKey< TileEMScale > m_emScaleKey
The name of TileEMScale object to get reference HV from Cesium or Laser folder.
virtual StatusCode execute(const EventContext &ctx) const override
TileDCSCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
@ NUMBER_OF_HVSET_CHANNELS
Gaudi::Property< bool > m_readStates
Flag to control reading Tile DCS STATES folder from DB.
Gaudi::Property< bool > m_readHVSet
Flag to control reading Tile DCS HVSET folder from DB.