5#ifndef MUONCONDDATA_CSCCONDDBDATA_H
6#define MUONCONDDATA_CSCCONDDBDATA_H
17#include "Identifier/Identifier.h"
129 if (parName ==
"f001" ) {
float theVal;
auto sc =
readChannelF001 (hash, theVal); val = theVal;
return sc;}
130 else if(parName ==
"noise" ) {
float theVal;
auto sc =
readChannelNoise (hash, theVal); val = theVal;
return sc;}
131 else if(parName ==
"ped" ) {
float theVal;
auto sc =
readChannelPed (hash, theVal); val = theVal;
return sc;}
132 else if(parName ==
"pslope" ) {
float theVal;
auto sc =
readChannelPSlope (hash, theVal); val = theVal;
return sc;}
133 else if(parName ==
"rms" ) {
float theVal;
auto sc =
readChannelRMS (hash, theVal); val = theVal;
return sc;}
134 else if(parName ==
"status" ) {
int theVal;
auto sc =
readChannelStatus (hash, theVal); val = theVal;
return sc;}
135 else if(parName ==
"t0base" ) {
float theVal;
auto sc =
readChannelT0Base (hash, theVal); val = theVal;
return sc;}
136 else if(parName ==
"t0phase") {
bool theVal;
auto sc =
readChannelT0Phase(hash, theVal); val = theVal;
return sc;}
137 return StatusCode::FAILURE;
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Hold mappings of ranges to condition objects.
Provide an interface for finding inheritance information at run time.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold mapping of ranges to condition objects.
std::vector< std::string > m_cachedDeadLayers
bool isGood(const Identifier &) const
StatusCode onlineToOfflineIds(const CscIdHelper *, const unsigned int &, Identifier &, Identifier &) const
StatusCode indexToStringId(const CscIdHelper *, const unsigned int &, const std::string &, std::string &) const
StatusCode offlineToOnlineId(const CscIdHelper *, const Identifier &, unsigned int &) const
std::map< unsigned int, float > m_cachedChannelsRMS
const bool & getChannelT0Phase(IdentifierHash) const
StatusCode readChannelParam(IdentifierHash hash, T &val, const std::string &parName) const
const std::vector< std::string > & getDeadStations() const
std::map< unsigned int, bool > m_cachedChannelsT0Phase
bool isGoodStation(const Identifier &) const
StatusCode readChannelPed(IdentifierHash, float &) const
StatusCode readChannelT0Base(IdentifierHash, float &) const
void setChannelStatus(IdentifierHash, int)
const std::vector< unsigned int > & getDeadChannelsHash() const
void setDeadLayer(std::string_view, Identifier)
void setChannelT0Phase(IdentifierHash, bool)
void setChannelRMS(IdentifierHash, float)
std::vector< unsigned int > m_onlineChannelIdsFromLayerHash
void setDeadStation(std::string_view, Identifier)
StatusCode offlineElementToOnlineId(const CscIdHelper *, const Identifier &, unsigned int &) const
std::vector< std::string > m_cachedDeadStations
bool isGoodLayer(const Identifier &) const
StatusCode readChannelT0Phase(IdentifierHash, bool &) const
const std::vector< Identifier > & getDeadLayersId() const
StatusCode readChannelRMS(IdentifierHash, float &) const
const float & getChannelPed(IdentifierHash) const
std::vector< unsigned int > m_onlineChannelIdsFromChamberCoolChannel
const float & getChannelPSlope(IdentifierHash) const
StatusCode readChannelStatus(IdentifierHash, int &) const
const int & getChannelStatus(IdentifierHash) const
void loadParameters(const CscIdHelper *)
std::vector< unsigned int > m_emptyHashs
std::vector< std::string > m_emptyNames
void setChannelNoise(IdentifierHash, float)
void setChannelPSlope(IdentifierHash, float)
const float & getChannelF001(IdentifierHash) const
bool isGoodChannelHash(const IdentifierHash &) const
IdContext m_channelContext
const float & getChannelRMS(IdentifierHash) const
std::map< unsigned int, float > m_cachedChannelsF001
std::vector< Identifier > m_emptyIds
std::map< unsigned int, float > m_cachedChannelsNoise
const std::vector< Identifier > & getDeadStationsId() const
void setChannelF001(IdentifierHash, float)
void setChannelT0Base(IdentifierHash, float)
StatusCode readChannelPSlope(IdentifierHash, float &) const
void setChannelPed(IdentifierHash, float)
const float & getChannelNoise(IdentifierHash) const
bool hasChannelT0Phase(IdentifierHash) const
StatusCode readChannelNoise(IdentifierHash, float &) const
std::vector< Identifier > m_cachedDeadStationsId
const float & getChannelT0Base(IdentifierHash) const
std::map< unsigned int, float > m_cachedChannelsT0Base
StatusCode layerHashToOnlineId(const unsigned int &, unsigned int &) const
virtual ~CscCondDbData()=default
bool m_onlineOfflinePhiFlip
std::vector< Identifier > m_cachedDeadLayersId
std::vector< unsigned int > m_cachedDeadChannelsHash
std::map< unsigned int, int > m_cachedChannelsStatus
IdContext m_moduleContext
StatusCode readChannelF001(IdentifierHash, float &) const
friend class CscCondDbAlg
void setDeadChannelHash(IdentifierHash)
const std::vector< std::string > & getDeadLayers() const
std::map< unsigned int, float > m_cachedChannelsPSlope
std::map< unsigned int, float > m_cachedChannelsPed
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
This is a "hash" representation of an Identifier.