|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "GaudiKernel/ISvcLocator.h"
13 #include "GaudiKernel/IToolSvc.h"
58 ATH_MSG_ERROR(
"Only \"Unknown\", \"SingleGroup\", \"SubDetector\", \"FeedThrough\", \"ExtendedFeedThrough\", \"ExtendedSubDetector\" and \"SuperCells\" are allowed" ) ;
59 return StatusCode::FAILURE ;
64 return StatusCode::SUCCESS;
72 typedef std::pair<HWIdentifier, int> idi;
73 std::map<idi, uint > inmap;
74 uint b_ec=0, p_n=0,
ft=0, sl=0,
ch=0,
g=0, onlid=0;
90 if((!in.good()) || in.eof())
break;
91 if(
line[0]==
'#')
continue;
92 std::istringstream iss(
line);
95 iss>>std::dec>>onlid>>
phase;
97 iss>>std::dec>>onlid>>
g>>
phase;
100 iss>>std::dec>>b_ec>>p_n>>
ft>>sl>>
ch>>
g>>
phase;
117 if(sl == 0 || sl > 15) {
137 inmap[std::make_pair(oc,
g)] =
phase;
154 for(;
it!=it_e;++
it){
163 std::cout <<
"Something wrong: "<<
id<<
" "<<oc<<std::endl;
167 if(inmap.find(std::make_pair(oc,
g)) != inmap.end()) {
168 fphase = inmap[std::make_pair(oc,
g)];
172 ATH_MSG_DEBUG(
"B_EC: "<<b_ec<<
" Pos_Neg: "<<p_n<<
" FT: "<<
ft<<
" Slot: "<<sl<<
" Chan: "<<
ch<<
" Phase: "<<fphase);
173 OFCbin->
set(
id,
g,fphase);
179 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
id_iterator channel_end() const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
GroupingType
Grouping type.
StringProperty m_InputFile
::StatusCode StatusCode
StatusCode definition for legacy code.
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
StringProperty m_keyOFCbin
const LArOnlineID_Base * m_lar_on_id
LArOFPhaseFill(const std::string &name, ISvcLocator *pSvcLocator)
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
#define ATH_MSG_WARNING(x)
defines and typedefs for IOVSvc
Gaudi::Property< unsigned int > m_defaultPhase
StringProperty m_groupingName
void set(const HWIdentifier &chid, const int &gain, const int &bin)
id_iterator channel_begin() const
Returns an iterator pointing to a channel identifier collection.