|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/MsgStream.h"
21 using CaliWaveIt = LArCaliWaveContainer::LArCaliWaves::const_iterator;
27 m_groupingType(
"ExtendedFeedThrough")
51 return StatusCode::FAILURE;
56 return StatusCode::SUCCESS;
68 return StatusCode::FAILURE;
74 auto selectedCaliWaveContainer = std::make_unique<LArCaliWaveContainer>();
76 CHECK( selectedCaliWaveContainer->initialize());
78 std::vector<std::string>::const_iterator key_it =
m_keyList.begin();
79 std::vector<std::string>::const_iterator key_it_e =
m_keyList.end();
81 for (;key_it!=key_it_e; ++key_it) {
85 ATH_MSG_WARNING (
"No LArCaliWaveContainer in StoreGate with key = " << *key_it );
88 ATH_MSG_INFO (
"Reading LArCaliWaveContainer with key = " << *key_it );
98 if ( cali_it == cali_it_e ) {
99 ATH_MSG_DEBUG (
"No wave with gain = " <<
gain <<
" in container with key = " << *key_it );
104 for ( ; cali_it != cali_it_e; ++cali_it) {
108 if ( wave_it == wave_it_e ) {
127 for ( ; wave_it != wave_it_e; ++wave_it) {
129 (selectedCaliWaveContainer->get(chid,
gain)).push_back(*wave_it);
138 return StatusCode::SUCCESS;
147 if( std::string::npos == det_delimiter ){
152 if(det_string==
"EMB") {
154 }
else if (det_string ==
"EMEC") {
156 }
else if (det_string ==
"HEC") {
158 }
else if (det_string ==
"FCAL") {
161 ATH_MSG_WARNING (
"Bad detector substring: " << det_string <<
" skipped ... " );
166 if(lay < 0 || lay > 3) {
172 if(gain < 0 || gain > 2) {
177 if(DAC < 0 || DAC > 65000) {
def retrieve(aClass, aKey=None)
ConditionsMap::const_iterator ConstConditionsMapIterator
HWIdentifier channelId() const
std::string find(const std::string &s)
return a remapped string
std::vector< std::string > m_selectionList
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool is_em_endcap(const Identifier id) const
test if the id belongs to the EM Endcap
Declaration of const iterator.
std::string m_groupingType
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool is_hec(const Identifier id) const
test if the id belongs to the HEC
Liquid Argon Cumulative Wave Container.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const CaloCell_ID * m_cellID
ConstConditionsMapIterator end(unsigned int gain) const
end of all channels for this gain
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
LArCaliWaveContainer::LArCaliWaves::const_iterator CaliWaveIt
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
LArCaliWaveSelector(const std::string &name, ISvcLocator *pSvcLocator)
Helpers for checking error return status codes and reporting errors.
std::map< DetGain, int > m_mapDAC
StatusCode initialize(bool used=true)
std::pair< std::pair< int, int >, int > DetGain
#define ATH_MSG_WARNING(x)
ConstConditionsMapIterator begin(unsigned int gain) const
get iterator for all channels for a gain
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
std::vector< std::string > m_keyList