ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TRT_FillCablingData_SR1_ECC Class Reference

#include <TRT_FillCablingData_SR1_ECC.h>

Inheritance diagram for TRT_FillCablingData_SR1_ECC:
Collaboration diagram for TRT_FillCablingData_SR1_ECC:

Public Member Functions

 TRT_FillCablingData_SR1_ECC (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TRT_FillCablingData_SR1_ECC ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
TRT_CablingDatafillData ()
 
void defineCollID ()
 
std::vector< uint32_t > getRobID (Identifier id) const
 
void fillCollID (uint32_t rob_id, std::vector< IdentifierHash > &ids)
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void defineParameters ()
 
void defineTables ()
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

const TRT_IDm_TRTHelper
 
IdContext m_cntx
 
TRT_CablingDatam_cabling = nullptr
 
int m_numberOfRings = 0
 
int m_numberOfLayersA = 0
 
int m_numberOfLayersB = 0
 
int m_numberOfLayersC = 0
 
int m_numberOfIdentifierSectors = 0
 
std::map< int, std::vector< uint32_t > > m_phi_to_source
 
std::vector< std::vector< Identifier > > m_identfierForAllStraws
 
std::vector< std::vector< IdentifierHash > > m_identfierHashForAllStraws
 
std::vector< std::vector< IdentifierHash > * > m_collID
 
std::vector< int > m_numberOfStrawsInLayers
 
std::map< int, int > m_1BS_1BL_map
 
std::map< int, int > m_2BS_2BL1_map
 
std::map< int, int > m_2BL2_3BL1_map
 
std::map< int, int > m_3BL2_map
 
std::map< int, int > m_3BS_map
 
std::map< int, int > m_1FS_1FL_map
 
std::map< int, int > m_2FS_2FL1_map
 
std::map< int, int > m_2FL2_3FL1_map
 
std::map< int, int > m_3FL2_map
 
std::map< int, int > m_3FS_map
 
std::map< int, int > m_ec_1l_map
 
std::map< int, int > m_ec_2l_map
 
std::map< int, int > m_ec_3l_map
 
std::map< int, int > m_ec_1r_map
 
std::map< int, int > m_ec_2r_map
 
std::map< int, int > m_ec_3r_map
 
GlobalCableMap m_CableMap
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 37 of file TRT_FillCablingData_SR1_ECC.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TRT_FillCablingData_SR1_ECC()

TRT_FillCablingData_SR1_ECC::TRT_FillCablingData_SR1_ECC ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 47 of file TRT_FillCablingData_SR1_ECC.cxx.

49  m_TRTHelper(nullptr)
50 {
51  declareInterface< TRT_FillCablingData_SR1_ECC >( this );
52 }

◆ ~TRT_FillCablingData_SR1_ECC()

TRT_FillCablingData_SR1_ECC::~TRT_FillCablingData_SR1_ECC ( )
virtual

Definition at line 56 of file TRT_FillCablingData_SR1_ECC.cxx.

57 {}

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ defineCollID()

void TRT_FillCablingData_SR1_ECC::defineCollID ( )

Definition at line 881 of file TRT_FillCablingData_SR1_ECC.cxx.

882 {
883 
884  ATH_MSG_INFO( "In defineCollID()" );
885 
887  for ( pos=m_CableMap.begin(); pos != m_CableMap.end(); ++pos )
888  {
889  std::vector<IdentifierHash> * vectID = new std::vector<IdentifierHash>();
890  fillCollID( pos->first, *vectID);
891 
892  ATH_MSG_INFO( "Adding Collid for ROB " << std::hex << pos->first << std::dec );
893 
894  m_cabling->add_collID( pos->first, vectID);
895  }
896 
897  return;
898 }

◆ defineParameters()

void TRT_FillCablingData_SR1_ECC::defineParameters ( )
private

Definition at line 107 of file TRT_FillCablingData_SR1_ECC.cxx.

108 {
109  m_numberOfRings = 3;
110 
111  m_numberOfLayersA = 19;
112  m_numberOfLayersB = 24;
113  m_numberOfLayersC = 30;
114 
115  // m_numberOfStrawsInBarrelROD = 1642;
117 
118  // Mapping from phi sector index to source id
119  //m_phi_to_source.push_back( 2 ); // Phi 0 is Source ID 0x3102
120  //m_phi_to_source.push_back( 3 ); // Phi 1 is Source ID 0x3103
121  // m_phi_to_source.push_back( 3 ); // Phi 0 is Source ID 0x3103
122  // m_phi_to_source.push_back( 2 ); // Phi 1 is Source ID 0x3102
123  // NB: Source ID 0x3101 is the 3S boards on BOTH Phi 0 and Phi 1
124 
125 
126  int tmpArray[] = {15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, // Module Type 1
127  18, 18, 18, 18, 19, 19, 19, 18, // Module Type 1
128  19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, // Module Type 2
129  22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 24, 24, 23, // Module Type 2
130  23, 24, 24, 24, 24, 25, 25, 25, 25, 25, 26, // Module Type 3
131  26, 26, 26, 26, 27, 27, 27, 27, 27, 28, 28, 28, 28, // Module Type 3
132  28, 29, 29, 29, 29, 28, -1}; // Module Type 3
133 
134  int i=0;
135  int RunningCount=0;
136  while( -1 != tmpArray[i] )
137  {
138  RunningCount += tmpArray[i];
139  m_numberOfStrawsInLayers.push_back( RunningCount );
140 
141  i++;
142  }
143  m_numberOfStrawsInLayers.push_back( -1 );
144 
145  return;
146 }

◆ defineTables()

void TRT_FillCablingData_SR1_ECC::defineTables ( )
private

Definition at line 150 of file TRT_FillCablingData_SR1_ECC.cxx.

151 {
152  ATH_MSG_INFO( "In defineTables" );
153 
154 
155 
156  // Reading mapping
157  int moduleId, strawLayerId, strawInLayerId;
158  Identifier strawID;
159  IdentifierHash hashId;
160 
161  uint32_t strawNumber, bufferOffset;
162  string thisLine;
163 
164  std::string dataFile;
165  std::string file;
166 
167  std::ifstream *inputFile;
168 
169  /**************************************************************/
170  /* Endcap Connector Tables */
171  /**************************************************************/
172 
173  /*
174  * We assume the data look like:
175 
176  group 3
177  group 2
178  group 1
179  group 0
180 
181  and within each group (444 words):
182 
183  <DTMROC head 25> <DTMROC head 24> ... <DTMROC head 13>
184  <start word>
185  <DTMROC 25, chan 15> <DTMROC 24, chan 16> ... <DTMROC 13, chan 16>
186  <DTMROC 25, chan 14> <DTMROC 24, chan 14> ... <DTMROC 13, chan 14>
187  ... ... ...
188  <DTMROC 25, chan 0> <DTMROC 24, chan 0> ... <DTMROC 13, chan 0>
189 
190  <DTMROC head 12> <DTMROC head 11> ... <DTMROC head 0>
191  <start word>
192  <DTMROC 12, chan 15> <DTMROC 11, chan 16> ... <DTMROC 0, chan 16>
193  <DTMROC 12, chan 14> <DTMROC 11, chan 14> ... <DTMROC 0, chan 14>
194  ... ... ...
195  <DTMROC 12, chan 0> <DTMROC 11, chan 0> ... <DTMROC 0, chan 0>
196 
197  */
198 
199 
200  /*
201  * Left sectors, layers 0-63
202  */
203  ATH_MSG_INFO( "defineTables: rod1l " );
204 
205  dataFile = "TRT_SR1_ec_rod1l.dat";
206  file = PathResolver::find_file (dataFile, "DATAPATH");
207  inputFile = new std::ifstream( file.c_str() );
208 
209  if (!inputFile->is_open())
210  {
211  ATH_MSG_FATAL( "TRT_FillCablingData_SR1_ECC: Could not open file " << dataFile );
212  }
213 
214  while ( getline( *inputFile, thisLine ) )
215  {
216  int rodgroup, rodline, dtmchannel, strawlayer, strawnumber;
217 
218  string::size_type loc = thisLine.find( '#' );
219  if ( loc != string::npos )
220  {
221  thisLine.replace( loc, thisLine.length(), 1, ' ' );
222 
223  loc = thisLine.find_first_not_of( " \t" );
224  if ( loc == string::npos )
225  continue;
226  }
227 
228  istringstream parse( thisLine );
229 
230  parse >> rodgroup >> rodline >> dtmchannel >> strawlayer >> strawnumber;
231  // parse >> strawNumber >> bufferOffset;
232 
233  /*
234  * HACK! We do not have a good straw numbering scheme for the endcap
235  * and we do not yet have enough info to produce a real offline
236  * identifier. So we make something up!
237  */
238 
239  strawNumber = (strawlayer & 0xff) << 8 | (strawnumber & 0xff);
240 
241  bufferOffset = ((3 - rodgroup) * 444) + 14;
242  if ( rodline > 12 )
243  {
244  bufferOffset += (25 - rodline) + ((dtmchannel) * 13);
245  }
246  else
247  {
248  bufferOffset += 222 + (12 - rodline) + ((dtmchannel) * 13);
249  }
250 
251  m_ec_1l_map[bufferOffset] = strawNumber;
252  }
253 
254  inputFile->close();
255 
256 
257  /*
258  * Left sectors, layers 64-95
259  */
260  ATH_MSG_INFO( "defineTables: rod2l " );
261 
262  dataFile = "TRT_SR1_ec_rod2l.dat";
263  file = PathResolver::find_file (dataFile, "DATAPATH");
264  inputFile = new std::ifstream( file.c_str() );
265 
266  if (!inputFile->is_open())
267  {
268  ATH_MSG_FATAL( "TRT_FillCablingData_SR1_ECC: Could not open file " << dataFile );
269  }
270 
271  while ( getline( *inputFile, thisLine ) )
272  {
273  int rodgroup, rodline, dtmchannel, strawlayer, strawnumber;
274 
275  string::size_type loc = thisLine.find( '#' );
276  if ( loc != string::npos )
277  {
278  thisLine.replace( loc, thisLine.length(), 1, ' ' );
279 
280  loc = thisLine.find_first_not_of( " \t" );
281  if ( loc == string::npos )
282  continue;
283  }
284 
285  istringstream parse( thisLine );
286 
287  parse >> rodgroup >> rodline >> dtmchannel >> strawlayer >> strawnumber;
288  // parse >> strawNumber >> bufferOffset;
289 
290  /*
291  * HACK! We do not have a good straw numbering scheme for the endcap
292  * and we do not yet have enough info to produce a real offline
293  * identifier. So we make something up!
294  */
295 
296  strawNumber = (strawlayer & 0xff) << 8 | (strawnumber & 0xff);
297 
298  bufferOffset = ((1 - rodgroup) * 444) + 14;
299  if ( rodline > 12 )
300  {
301  bufferOffset += (25 - rodline) + ((dtmchannel) * 13);
302  }
303  else
304  {
305  bufferOffset += 222 + (12 - rodline) + ((dtmchannel) * 13);
306  }
307 
308  m_ec_2l_map[bufferOffset] = strawNumber;
309  }
310 
311  inputFile->close();
312 
313 
314  /*
315  * Left sectors, layers 96-159
316  */
317  ATH_MSG_INFO( "defineTables: rod3l " );
318 
319  dataFile = "TRT_SR1_ec_rod3l.dat";
320  file = PathResolver::find_file (dataFile, "DATAPATH");
321  inputFile = new std::ifstream( file.c_str() );
322 
323  if (!inputFile->is_open())
324  {
325  ATH_MSG_FATAL( "TRT_FillCablingData_SR1_ECC: Could not open file " << dataFile );
326  }
327 
328  while ( getline( *inputFile, thisLine ) )
329  {
330  int rodgroup, rodline, dtmchannel, strawlayer, strawnumber;
331 
332  string::size_type loc = thisLine.find( '#' );
333  if ( loc != string::npos )
334  {
335  thisLine.replace( loc, thisLine.length(), 1, ' ' );
336 
337  loc = thisLine.find_first_not_of( " \t" );
338  if ( loc == string::npos )
339  continue;
340  }
341 
342  istringstream parse( thisLine );
343 
344  parse >> rodgroup >> rodline >> dtmchannel >> strawlayer >> strawnumber;
345  // parse >> strawNumber >> bufferOffset;
346 
347  /*
348  * HACK! We do not have a good straw numbering scheme for the endcap
349  * and we do not yet have enough info to produce a real offline
350  * identifier. So we make something up!
351  */
352 
353  strawNumber = (strawlayer & 0xff) << 8 | (strawnumber & 0xff);
354 
355  bufferOffset = ((3 - rodgroup) * 444) + 14;
356  if ( rodline > 12 )
357  {
358  bufferOffset += (25 - rodline) + ((dtmchannel) * 13);
359  }
360  else
361  {
362  bufferOffset += 222 + (12 - rodline) + ((dtmchannel) * 13);
363  }
364 
365  m_ec_3l_map[bufferOffset] = strawNumber;
366  }
367 
368  inputFile->close();
369 
370 
371  /*
372  * Right sectors, layers 0-63
373  */
374  ATH_MSG_INFO( "defineTables: rod1r " );
375 
376  dataFile = "TRT_SR1_ec_rod1r.dat";
377  file = PathResolver::find_file (dataFile, "DATAPATH");
378  inputFile = new std::ifstream( file.c_str() );
379 
380  if (!inputFile->is_open())
381  {
382  ATH_MSG_FATAL( "TRT_FillCablingData_SR1_ECC: Could not open file " << dataFile );
383  }
384 
385  while ( getline( *inputFile, thisLine ) )
386  {
387  int rodgroup, rodline, dtmchannel, strawlayer, strawnumber;
388 
389  string::size_type loc = thisLine.find( '#' );
390  if ( loc != string::npos )
391  {
392  thisLine.replace( loc, thisLine.length(), 1, ' ' );
393 
394  loc = thisLine.find_first_not_of( " \t" );
395  if ( loc == string::npos )
396  continue;
397  }
398 
399  istringstream parse( thisLine );
400 
401  parse >> rodgroup >> rodline >> dtmchannel >> strawlayer >> strawnumber;
402  // parse >> strawNumber >> bufferOffset;
403 
404  /*
405  * HACK! We do not have a good straw numbering scheme for the endcap
406  * and we do not yet have enough info to produce a real offline
407  * identifier. So we make something up!
408  */
409 
410  strawNumber = (strawlayer & 0xff) << 8 | (strawnumber & 0xff);
411 
412  bufferOffset = ((3 - rodgroup) * 444) + 14;
413  if ( rodline > 12 )
414  {
415  bufferOffset += (25 - rodline) + ((dtmchannel) * 13);
416  }
417  else
418  {
419  bufferOffset += 222 + (12 - rodline) + ((dtmchannel) * 13);
420  }
421 
422  m_ec_1r_map[bufferOffset] = strawNumber;
423  }
424 
425  inputFile->close();
426 
427 
428  /*
429  * Right sectors, layers 64-95
430  */
431  ATH_MSG_INFO( "defineTables: rod2r " );
432 
433  dataFile = "TRT_SR1_ec_rod2r.dat";
434  file = PathResolver::find_file (dataFile, "DATAPATH");
435  inputFile = new std::ifstream( file.c_str() );
436 
437  if (!inputFile->is_open())
438  {
439  ATH_MSG_FATAL( "TRT_FillCablingData_SR1_ECC: Could not open file " << dataFile );
440  }
441 
442  while ( getline( *inputFile, thisLine ) )
443  {
444  int rodgroup, rodline, dtmchannel, strawlayer, strawnumber;
445 
446  string::size_type loc = thisLine.find( '#' );
447  if ( loc != string::npos )
448  {
449  thisLine.replace( loc, thisLine.length(), 1, ' ' );
450 
451  loc = thisLine.find_first_not_of( " \t" );
452  if ( loc == string::npos )
453  continue;
454  }
455 
456  istringstream parse( thisLine );
457 
458  parse >> rodgroup >> rodline >> dtmchannel >> strawlayer >> strawnumber;
459  // parse >> strawNumber >> bufferOffset;
460 
461  /*
462  * HACK! We do not have a good straw numbering scheme for the endcap
463  * and we do not yet have enough info to produce a real offline
464  * identifier. So we make something up!
465  */
466 
467  strawNumber = (strawlayer & 0xff) << 8 | (strawnumber & 0xff);
468 
469  bufferOffset = ((1 - rodgroup) * 444) + 14;
470  if ( rodline > 12 )
471  {
472  bufferOffset += (25 - rodline) + ((dtmchannel) * 13);
473  }
474  else
475  {
476  bufferOffset += 222 + (12 - rodline) + ((dtmchannel) * 13);
477  }
478 
479  m_ec_2r_map[bufferOffset] = strawNumber;
480  }
481 
482  inputFile->close();
483 
484 
485  /*
486  * Right sectors, layers 96-159
487  */
488  ATH_MSG_INFO( "defineTables: rod3r " );
489 
490  dataFile = "TRT_SR1_ec_rod3r.dat";
491  file = PathResolver::find_file (dataFile, "DATAPATH");
492  inputFile = new std::ifstream( file.c_str() );
493 
494  if (!inputFile->is_open())
495  {
496  ATH_MSG_FATAL( "TRT_FillCablingData_SR1_ECC: Could not open file " << dataFile );
497  }
498 
499  while ( getline( *inputFile, thisLine ) )
500  {
501  int rodgroup, rodline, dtmchannel, strawlayer, strawnumber;
502 
503  string::size_type loc = thisLine.find( '#' );
504  if ( loc != string::npos )
505  {
506  thisLine.replace( loc, thisLine.length(), 1, ' ' );
507 
508  loc = thisLine.find_first_not_of( " \t" );
509  if ( loc == string::npos )
510  continue;
511  }
512 
513  istringstream parse( thisLine );
514 
515  parse >> rodgroup >> rodline >> dtmchannel >> strawlayer >> strawnumber;
516  // parse >> strawNumber >> bufferOffset;
517 
518  /*
519  * HACK! We do not have a good straw numbering scheme for the endcap
520  * and we do not yet have enough info to produce a real offline
521  * identifier. So we make something up!
522  */
523 
524  strawNumber = (strawlayer & 0xff) << 8 | (strawnumber & 0xff);
525 
526  bufferOffset = ((3 - rodgroup) * 444) + 14;
527  if ( rodline > 12 )
528  {
529  bufferOffset += (25 - rodline) + ((dtmchannel) * 13);
530  }
531  else
532  {
533  bufferOffset += 222 + (12 - rodline) + ((dtmchannel) * 13);
534  }
535 
536  m_ec_3r_map[bufferOffset] = strawNumber;
537  }
538 
539  inputFile->close();
540 
541  /**************************************************************/
542  /* Global Cabling Specification */
543  /**************************************************************/
544 
545  ATH_MSG_INFO( "defineTables: Global Spec " );
546 
547  dataFile = "TRT_SR1_EndcapC_Cable_map.dat";
548 
549 
550  file = PathResolver::find_file (dataFile, "DATAPATH");
551  inputFile = new std::ifstream( file.c_str() );
552 
553  if (!inputFile->is_open())
554  {
555  ATH_MSG_FATAL( "TRT_FillCablingData_SR1_ECC: Could not open file " << dataFile );
556  }
557 
558  uint32_t srcId;
559  std::string feId;
560 
561  while ( getline( *inputFile, thisLine ) )
562  {
563  if ( thisLine.length() == 0 )
564  continue;
565 
566  string::size_type loc = thisLine.find( '#' );
567  if ( loc != string::npos )
568  {
569  thisLine.replace( loc, thisLine.length(), 1, ' ' );
570 
571  loc = thisLine.find_first_not_of( " \t" );
572  if ( loc == string::npos )
573  continue;
574  }
575 
576 
577  istringstream parse( thisLine );
578 
579  GlobalCableMap_t *my_map = new GlobalCableMap_t;
580 
581  parse >> (hex) >> srcId >> (dec) >> my_map->Phi >> my_map->RODGroup >> my_map->FEid;
582 
583 
584  // int this_phi; // set but not used
585 
586  if ( (srcId & 0xFF0000) == 0x310000 )
587  {
588  my_map->SubDet = 1;
589  // this_phi = my_map->Phi; // set but not used
590  }
591  else if ( (srcId & 0xFF0000) == 0x320000 )
592  {
593  my_map->SubDet = -1;
594  // this_phi = -my_map->Phi; // set but not used
595  }
596  else if ( (srcId & 0xFF0000) == 0x330000 )
597  {
598  my_map->SubDet = 2;
599  // this_phi = my_map->Phi; // set but not used
600  }
601  else if ( (srcId & 0xFF0000) == 0x340000 )
602  {
603  my_map->SubDet = -2;
604  // this_phi = -my_map->Phi; // set but not used
605  }
606  else {
607  ATH_MSG_FATAL( "TRT_FillCablingData_SR1_ECC: Invalid source id " << (hex) << srcId << (dec) );
608  my_map->SubDet = 0;
609  }
610 
611 
612  /*
613  * my_phi is
614  32 - 63 for +barrel
615  64 - 95 for +end cap
616  -32 - -63 for -barrel
617  -64 - -95 for -end cap
618  */
619 
620 
621  // int my_phi = my_map->Phi * my_map->SubDet;
622  int my_phi = my_map->SubDet * 32 + my_map->Phi;
623 
624 
626  while ( (it != (m_phi_to_source[my_phi]).end()) && (srcId != *it) )
627  ++it;
628 
629  if ( it == m_phi_to_source[my_phi].end() )
630  {
631  (m_phi_to_source[my_phi]).push_back( srcId );
632  }
633 
634 
635  (m_CableMap[srcId]).push_back( my_map );
636  }
637 
638  inputFile->close();
639 
640 #ifdef NOTDEF
641  int ptk_i;
642  for ( ptk_i=1; ptk_i<=444; ptk_i++ )
643  {
644  std::map<int, int>::iterator map_it = m_1BS_1BL_map.find( ptk_i );
645  // if ( map_it != m_1BS_1BL_map.end() )
646  // cout << "Offset " << map_it->first << " is Straw " << map_it->second << endl;
647  }
648 #endif // NOTDEF
649 
651  for ( pos=m_CableMap.begin(); pos != m_CableMap.end(); ++pos )
652  {
653  std::vector< GlobalCableMap_t *> GCM;
654 
655  GCM = pos->second;
656 
657  sort( GCM.begin(), GCM.end(), greater_RG_GCM );
658 
659  int ConnectorCount=-1;
661  for ( it=GCM.begin(); it != GCM.end(); ++it )
662  {
663  ConnectorCount++;
664 
665  GlobalCableMap_t *my_map = *it;
666  std::map<int, int> con_map;
667 
668 
669  if ( my_map->FEid == "1BS_1BL" )
670  con_map = m_1BS_1BL_map;
671  else if ( my_map->FEid == "2BS_2BL1" )
672  con_map = m_2BS_2BL1_map;
673  else if ( my_map->FEid == "2BL2_3BL1" )
674  con_map = m_2BL2_3BL1_map;
675  else if ( my_map->FEid == "3BL2" )
676  con_map = m_3BL2_map;
677  else if ( my_map->FEid == "3BS" )
678  con_map = m_3BS_map;
679  else if ( my_map->FEid == "1FS_1FL" )
680  con_map = m_1FS_1FL_map;
681  else if ( my_map->FEid == "2FS_2FL1" )
682  con_map = m_2FS_2FL1_map;
683  else if ( my_map->FEid == "2FL2_3FL1" )
684  con_map = m_2FL2_3FL1_map;
685  else if ( my_map->FEid == "3FL2" )
686  con_map = m_3FL2_map;
687  else if ( my_map->FEid == "3FS" )
688  con_map = m_3FS_map;
689  else if ( my_map->FEid == "ec_rod1l" )
690  con_map = m_ec_1l_map;
691  else if ( my_map->FEid == "ec_rod2l" )
692  con_map = m_ec_2l_map;
693  else if ( my_map->FEid == "ec_rod3l" )
694  con_map = m_ec_3l_map;
695  else if ( my_map->FEid == "ec_rod1r" )
696  con_map = m_ec_1r_map;
697  else if ( my_map->FEid == "ec_rod2r" )
698  con_map = m_ec_2r_map;
699  else if ( my_map->FEid == "ec_rod3r" )
700  con_map = m_ec_3r_map;
701 
702 
703  int i;
704  Identifier NULLstrawID(0);
705 
706  if ( abs( my_map->SubDet ) == 1 ) // barrel
707  {
708  for ( i=1; i<=444; i++ ) // loop over buffer offset
709  {
710  std::map<int, int>::iterator map_it = con_map.find( i );
711 
712  if ( map_it == con_map.end() )
713  {
715  i + ConnectorCount*444,
716  NULLstrawID );
717  continue;
718  }
719 
720  int BufferLocation = map_it->first + ConnectorCount*444;
721  int Straw = map_it->second - 1; // Offline starts at 0
722 
723  strawLayerId = 0;
724  while ( (m_numberOfStrawsInLayers[strawLayerId] <= Straw) &&
725  (m_numberOfStrawsInLayers[strawLayerId] != -1) )
726  {
727  strawLayerId++;
728  }
729 
730  if ( m_numberOfStrawsInLayers[strawLayerId] == -1)
731  {
732  ATH_MSG_WARNING( "Invalid Straw in table: " << Straw );
733  continue;
734  }
735 
736 
737  strawInLayerId = m_numberOfStrawsInLayers[strawLayerId] - Straw - 1;
738 
739  moduleId = -1;
740  if ( strawLayerId < m_numberOfLayersA )
741  moduleId = 0;
742  else if ( strawLayerId < (m_numberOfLayersA + m_numberOfLayersB) )
743  {
744  moduleId = 1;
745  strawLayerId = strawLayerId - m_numberOfLayersA;
746  }
747  else if ( strawLayerId < (m_numberOfLayersA + m_numberOfLayersB + m_numberOfLayersC) )
748  {
749  moduleId = 2;
750  strawLayerId = strawLayerId - (m_numberOfLayersA + m_numberOfLayersB);
751  }
752 
753 
754 
755  strawID = m_TRTHelper->straw_id( my_map->SubDet, my_map->Phi,
756  moduleId, strawLayerId,
757  strawInLayerId );
758 
759 
760  m_cabling->set_identifierForAllStraws( pos->first, BufferLocation,
761  strawID );
762 
763 
764  // IdLayer = m_TRTHelper->layer_id( strawID );
765 
766  // int result = m_TRTHelper->get_hash( strawID, hashId, &m_cntx );
767 
768  Identifier Lid = m_TRTHelper->layer_id( my_map->SubDet,
769  my_map->Phi, moduleId,
770  strawLayerId );
771 
772  int result = m_TRTHelper->get_hash( Lid, hashId, &m_cntx );
773  if ( result != 0 )
774  {
775  ATH_MSG_WARNING( ">>>>>>>>>>> Get Hash FAILED! <<<<<<<<<<" );
776  ATH_MSG_WARNING( "Straw = " << Straw \
777  << " array = " << m_numberOfStrawsInLayers[strawLayerId] \
778  << " SubDet = " << my_map->SubDet \
779  << " Phi = " << my_map->Phi \
780  << " Module = " << moduleId \
781  << " Layer = " << strawLayerId \
782  << " StrInLay = " << strawInLayerId );
783  }
784 
785 
787  BufferLocation,
788  hashId );
789  }
790  }
791  else // Endcap
792  {
793  for ( i=0; i<1776; i++ ) // loop over buffer offset
794  {
795  std::map<int, int>::iterator map_it = con_map.find( i );
796 
797  if ( map_it == con_map.end() )
798  {
800  NULLstrawID );
801  continue;
802  }
803 
804  int BufferLocation = i;
805  int Straw = map_it->second; // Offline starts at 0
806 
807  strawLayerId = (Straw >> 8) & 0xff;
808  strawInLayerId = Straw & 0xff;
809 
810  moduleId = strawLayerId / 8;
811  if ( moduleId < 12 ) // A wheel?
812  {
813  moduleId = moduleId / 2;
814  strawLayerId = strawLayerId % 16;
815  }
816  else // B wheel
817  {
818  moduleId = moduleId - 6;
819  strawLayerId = strawLayerId % 8;
820  }
821 
822 
823  strawID = m_TRTHelper->straw_id( my_map->SubDet, my_map->Phi,
824  moduleId, strawLayerId,
825  strawInLayerId );
826 
827 
828  // Decode the identifier
829  // ExpandedIdentifier strawExpId;
830  // m_TRTHelper->get_expanded_id (strawID, strawExpId);
831  // ATH_MSG_INFO( "defineTables() - Identifier: "
832  // << std::left << std::setw(20) << std::string(strawExpId) << std::setw(0)
833  // << " robId: " << std::hex << pos->first << std::dec << " bufferOffset: " << BufferLocation );
834 
835  // ATH_MSG_INFO( m_TRTHelper->print_to_string( strawID ) << " bufferOffset: " << BufferLocation );
836 
837  m_cabling->set_identifierForAllStraws( pos->first, BufferLocation,
838  strawID );
839 
840 
841  // IdLayer = m_TRTHelper->layer_id( strawID );
842 
843  // int result = m_TRTHelper->get_hash( strawID, hashId, &m_cntx );
844 
845  Identifier Lid = m_TRTHelper->layer_id( my_map->SubDet,
846  my_map->Phi, moduleId,
847  strawLayerId );
848 
849  int result = m_TRTHelper->get_hash( Lid, hashId, &m_cntx );
850  if ( result != 0 )
851  {
852  ATH_MSG_WARNING( ">>>>>>>>>>> Get Hash FAILED! <<<<<<<<<<" );
853 
854  ATH_MSG_WARNING( "Straw = " << Straw \
855  << " SubDet = " << my_map->SubDet \
856  << " Phi = " << my_map->Phi \
857  << " Module = " << moduleId \
858  << " Layer = " << strawLayerId \
859  << " StrInLay = " << strawInLayerId );
860  }
861 
862 
864  BufferLocation,
865  hashId );
866  } // loop over bufferOffsets
867  } // Endcap
868  } // loop over GCM
869  } // loop over CableMap
870 
871 
872 
873  ATH_MSG_INFO( "Out of defineTables" );
874 
875  return;
876 }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ fillCollID()

void TRT_FillCablingData_SR1_ECC::fillCollID ( uint32_t  rob_id,
std::vector< IdentifierHash > &  ids 
)

Definition at line 905 of file TRT_FillCablingData_SR1_ECC.cxx.

907 {
908 
909  IdentifierHash idHash;
910 
911  // eformat::SubDetector det_id; // set but not used
912  // int module; // set but not used
913 
914  eformat::helper::SourceIdentifier id (rob_id);
915  // det_id = id.subdetector_id(); // set but not used
916  // module = (int) id.module_id(); // set but not used
917 
918 
919  std::map<int, std::vector<GlobalCableMap_t *> >::iterator map_it = m_CableMap.find( rob_id );
920  if ( map_it == m_CableMap.end() )
921  {
922  ATH_MSG_FATAL( "fillCollID: Unable to get CableMap for rob_id " << std::hex << rob_id << std::dec );
923  return;
924  }
925 
926  std::vector< GlobalCableMap_t *> GCM = map_it->second;
927 
928  sort( GCM.begin(), GCM.end(), greater_Phi_GCM );
929 
931 
932 
933  it=GCM.begin();
934  while ( it != GCM.end() )
935  {
936  GlobalCableMap_t *my_map = *it;
937  int rings = 0;
938  int phi = my_map->Phi;
939  int barrelId = my_map->SubDet;
940 
941  if ( abs( barrelId ) == 1 ) // barrel?
942  {
943 
944  bool done = !((my_map->SubDet == barrelId) && (my_map->Phi == phi));
945  while ( !done && (it != GCM.end()) )
946  {
947 
948 
949  if ( (my_map->FEid == "1BS_1BL") || (my_map->FEid == "1FS_1FL") )
950  rings |= 1;
951  else if ( (my_map->FEid == "2BS_2BL1") || (my_map->FEid == "2FS_2FL1") )
952  rings |= 2;
953  else if ( (my_map->FEid == "2BL2_3BL1") || (my_map->FEid == "2FL2_3FL1") )
954  rings |= 3;
955  else if ( (my_map->FEid == "3BL2") || (my_map->FEid == "3BS") ||
956  (my_map->FEid == "3FL2") || (my_map->FEid == "3FS") )
957  rings |= 4;
958 
959  ++it;
960 
961  if ( it != GCM.end() )
962  {
963  my_map = *it;
964  done = !((my_map->SubDet == barrelId) && (my_map->Phi == phi));
965  }
966 
967  }
968 
969 
970  int phiModule = phi;
971 
972  for (int ring = 0; ring < m_numberOfRings; ++ring)
973  {
974  if ( (ring == 0) && ((1<<ring) & rings) ) // Module Type 1
975  {
976  for (int layer = 0; layer < m_numberOfLayersA; ++layer)
977  {
978  Identifier id = m_TRTHelper->layer_id(barrelId, phiModule,
979  ring, layer);
980 
981  if (!m_TRTHelper->get_hash(id, idHash, &m_cntx))
982  {
983  ids.push_back(idHash);
984  }
985  else
986  ATH_MSG_FATAL( " Unable to get hash for id " << m_TRTHelper->show_to_string(id) );
987  }
988  }
989  else if ( (ring == 1) && ((1<<ring) & rings) ) // Module Type 2
990  {
991  for (int layer = 0; layer < m_numberOfLayersB; ++layer)
992  {
993  Identifier id = m_TRTHelper->layer_id(barrelId, phiModule,
994  ring, layer);
995 
996  if (!m_TRTHelper->get_hash(id, idHash, &m_cntx))
997  {
998  ids.push_back(idHash);
999  }
1000  else
1001  ATH_MSG_FATAL( " Unable to get hash for id " << m_TRTHelper->show_to_string(id) );
1002  }
1003  }
1004  else if ( (ring == 2) && ((1<<ring) & rings) ) // Module Type 3
1005  {
1006  for (int layer = 0; layer < m_numberOfLayersC; ++layer)
1007  {
1008  Identifier id = m_TRTHelper->layer_id(barrelId, phiModule,
1009  ring, layer);
1010 
1011  if (!m_TRTHelper->get_hash(id, idHash, &m_cntx))
1012  {
1013  ids.push_back(idHash);
1014  }
1015  else
1016  ATH_MSG_FATAL( " Unable to get hash for id " << m_TRTHelper->show_to_string(id) );
1017 
1018  }
1019  }
1020  }
1021  }
1022  else // End cap
1023  {
1024  int StartWheel=0;
1025  int EndWheel=0;
1026  int StartLayer=0;
1027  int EndLayer=0;
1028 
1029  int phiModule = phi;
1030 
1031  bool done = !((my_map->SubDet == barrelId) && (my_map->Phi == phi));
1032  while ( !done && (it != GCM.end()) )
1033  {
1034 
1035  if ( (my_map->FEid == "ec_rod1l") ||
1036  (my_map->FEid == "ec_rod1r") )
1037  {
1038  StartWheel = 0;
1039  EndWheel = 4;
1040  StartLayer = 0;
1041  EndLayer = 16;
1042  }
1043  else if ( (my_map->FEid == "ec_rod2l") ||
1044  (my_map->FEid == "ec_rod2r") )
1045  {
1046  StartWheel = 4;
1047  EndWheel = 6;
1048  StartLayer = 0;
1049  EndLayer = 16;
1050  }
1051  else if ( (my_map->FEid == "ec_rod3l") ||
1052  (my_map->FEid == "ec_rod3r") )
1053  {
1054  StartWheel = 6;
1055  EndWheel = 14;
1056  StartLayer = 0;
1057  EndLayer = 8;
1058  }
1059  else
1060  {
1061  ATH_MSG_ERROR( "Invalid my_map->FEid. This should not happen!" );
1062  return;
1063  }
1064 
1065  ++it;
1066 
1067  if ( it != GCM.end() )
1068  {
1069  my_map = *it;
1070  done = !((my_map->SubDet == barrelId) && (my_map->Phi == phi));
1071  }
1072 
1073  }
1074 
1075 
1076  for (int wheel = StartWheel; wheel < EndWheel; wheel++ )
1077  {
1078  for (int layer = StartLayer; layer < EndLayer; layer++ )
1079  {
1080  Identifier id = m_TRTHelper->layer_id( barrelId, phiModule,
1081  wheel, layer);
1082 
1083  if (!m_TRTHelper->get_hash(id, idHash, &m_cntx))
1084  {
1085  ids.push_back(idHash);
1086  }
1087  else
1088  ATH_MSG_FATAL( " Unable to get hash for id " << m_TRTHelper->show_to_string(id) );
1089  } // loop over layer
1090  } // loop over wheel
1091  } // endcap
1092  }
1093 
1094  return;
1095 }

◆ fillData()

TRT_CablingData * TRT_FillCablingData_SR1_ECC::fillData ( )

Definition at line 101 of file TRT_FillCablingData_SR1_ECC.cxx.

102 {
103  return m_cabling;
104 }

◆ finalize()

StatusCode TRT_FillCablingData_SR1_ECC::finalize ( )
virtual

Definition at line 92 of file TRT_FillCablingData_SR1_ECC.cxx.

93 {
94  delete m_cabling;
95 
97  return sc;
98 }

◆ getRobID()

std::vector< uint32_t > TRT_FillCablingData_SR1_ECC::getRobID ( Identifier  id) const

Definition at line 1103 of file TRT_FillCablingData_SR1_ECC.cxx.

1104 {
1105  std::vector<uint32_t> v;
1106 
1107 
1108  int id_barrel_ec = m_TRTHelper->barrel_ec(id);
1109  int id_phi_module = m_TRTHelper->phi_module(id);
1110  //int id_layer = m_TRTHelper->layer_or_wheel(id);
1111 
1112  /*
1113  * It seems to be assumed that the ROD/ROB source IDs are aligned to
1114  * the phi sector numbering. This is NOT the case for SR1, so we
1115  * need to fix it up.
1116  * In addition, for Module type 3 (ie, layer 2), we need to read out
1117  * the ROB with the 3S boards (number 1), as well as the ROB with
1118  * the rest of the sector.
1119  * We assume only one side here.
1120  */
1121 
1122  id_phi_module = id_phi_module + 32 * id_barrel_ec;
1123 
1124  const auto& it = m_phi_to_source.find (id_phi_module);
1125  if (it != m_phi_to_source.end()) {
1126  for (uint32_t id : it->second) {
1127  eformat::helper::SourceIdentifier sid( id );
1128  v.push_back(sid.code());
1129  }
1130  }
1131 
1132  return v;
1133 }

◆ initialize()

StatusCode TRT_FillCablingData_SR1_ECC::initialize ( )
virtual

Definition at line 65 of file TRT_FillCablingData_SR1_ECC.cxx.

66 {
67  ATH_MSG_INFO( "TRT_FillCablingData_SR1_ECC::initialize" );
68 
69 
70  // Get the TRT Helper
71  if (detStore()->retrieve(m_TRTHelper, "TRT_ID").isFailure())
72  {
73  ATH_MSG_FATAL( "Could not get TRT ID helper" );
74  return StatusCode::FAILURE;
75  }
77 
78 
80 
81 
83  defineTables();
84  defineCollID();
85 
86  ATH_MSG_INFO( "TRT_FillCablingData_SR1_ECC::initializiation finished" );
87 
88  return StatusCode::SUCCESS;
89 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

const InterfaceID & TRT_FillCablingData_SR1_ECC::interfaceID ( )
static

Definition at line 60 of file TRT_FillCablingData_SR1_ECC.cxx.

61 { return IID_ITRT_FillCablingData_SR1_ECC; }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_1BS_1BL_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_1BS_1BL_map
private

Definition at line 109 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_1FS_1FL_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_1FS_1FL_map
private

Definition at line 115 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_2BL2_3BL1_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_2BL2_3BL1_map
private

Definition at line 111 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_2BS_2BL1_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_2BS_2BL1_map
private

Definition at line 110 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_2FL2_3FL1_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_2FL2_3FL1_map
private

Definition at line 117 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_2FS_2FL1_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_2FS_2FL1_map
private

Definition at line 116 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_3BL2_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_3BL2_map
private

Definition at line 112 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_3BS_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_3BS_map
private

Definition at line 113 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_3FL2_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_3FL2_map
private

Definition at line 118 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_3FS_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_3FS_map
private

Definition at line 119 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_CableMap

GlobalCableMap TRT_FillCablingData_SR1_ECC::m_CableMap
private

Definition at line 132 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_cabling

TRT_CablingData* TRT_FillCablingData_SR1_ECC::m_cabling = nullptr
private

Definition at line 71 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_cntx

IdContext TRT_FillCablingData_SR1_ECC::m_cntx
private

Definition at line 69 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_collID

std::vector<std::vector<IdentifierHash> *> TRT_FillCablingData_SR1_ECC::m_collID
private

Definition at line 103 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_ec_1l_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_ec_1l_map
private

Definition at line 121 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_ec_1r_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_ec_1r_map
private

Definition at line 125 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_ec_2l_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_ec_2l_map
private

Definition at line 122 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_ec_2r_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_ec_2r_map
private

Definition at line 126 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_ec_3l_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_ec_3l_map
private

Definition at line 123 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_ec_3r_map

std::map< int, int > TRT_FillCablingData_SR1_ECC::m_ec_3r_map
private

Definition at line 127 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_identfierForAllStraws

std::vector< std::vector<Identifier> > TRT_FillCablingData_SR1_ECC::m_identfierForAllStraws
private

Definition at line 96 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_identfierHashForAllStraws

std::vector< std::vector<IdentifierHash> > TRT_FillCablingData_SR1_ECC::m_identfierHashForAllStraws
private

Definition at line 100 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_numberOfIdentifierSectors

int TRT_FillCablingData_SR1_ECC::m_numberOfIdentifierSectors = 0
private

Definition at line 85 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_numberOfLayersA

int TRT_FillCablingData_SR1_ECC::m_numberOfLayersA = 0
private

Definition at line 80 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_numberOfLayersB

int TRT_FillCablingData_SR1_ECC::m_numberOfLayersB = 0
private

Definition at line 81 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_numberOfLayersC

int TRT_FillCablingData_SR1_ECC::m_numberOfLayersC = 0
private

Definition at line 82 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_numberOfRings

int TRT_FillCablingData_SR1_ECC::m_numberOfRings = 0
private

Definition at line 79 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_numberOfStrawsInLayers

std::vector< int > TRT_FillCablingData_SR1_ECC::m_numberOfStrawsInLayers
private

Definition at line 106 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_phi_to_source

std::map<int, std::vector<uint32_t> > TRT_FillCablingData_SR1_ECC::m_phi_to_source
private

Definition at line 92 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_TRTHelper

const TRT_ID* TRT_FillCablingData_SR1_ECC::m_TRTHelper
private

Definition at line 68 of file TRT_FillCablingData_SR1_ECC.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
TRT_ID::layer_id
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
Definition: TRT_ID.h:500
TRT_FillCablingData_SR1_ECC::m_ec_1r_map
std::map< int, int > m_ec_1r_map
Definition: TRT_FillCablingData_SR1_ECC.h:125
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TRT_FillCablingData_SR1_ECC::defineParameters
void defineParameters()
Definition: TRT_FillCablingData_SR1_ECC.cxx:107
get_generator_info.result
result
Definition: get_generator_info.py:21
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
PathResolver::find_file
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
Definition: PathResolver.cxx:251
TRT_CablingData::set_identifierHashForAllStraws
void set_identifierHashForAllStraws(int rod, int bufferPosition, IdentifierHash hashId)
Definition: TRT_CablingData.cxx:107
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TRT_FillCablingData_SR1_ECC::m_ec_2l_map
std::map< int, int > m_ec_2l_map
Definition: TRT_FillCablingData_SR1_ECC.h:122
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TRT_FillCablingData_SR1_ECC::defineTables
void defineTables()
Definition: TRT_FillCablingData_SR1_ECC.cxx:150
TRT_FillCablingData_SR1_ECC::m_2BL2_3BL1_map
std::map< int, int > m_2BL2_3BL1_map
Definition: TRT_FillCablingData_SR1_ECC.h:111
parse
std::map< std::string, std::string > parse(const std::string &list)
Definition: egammaLayerRecalibTool.cxx:1054
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TRT_FillCablingData_SR1_ECC::defineCollID
void defineCollID()
Definition: TRT_FillCablingData_SR1_ECC.cxx:881
TRT_FillCablingData_SR1_ECC::m_cabling
TRT_CablingData * m_cabling
Definition: TRT_FillCablingData_SR1_ECC.h:71
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
TRT_FillCablingData_SR1_ECC::m_1FS_1FL_map
std::map< int, int > m_1FS_1FL_map
Definition: TRT_FillCablingData_SR1_ECC.h:115
TRT_CablingData::set_identifierForAllStraws
void set_identifierForAllStraws(int rod, int bufferPosition, Identifier strawID)
Definition: TRT_CablingData.cxx:86
TRT_FillCablingData_SR1_ECC::m_3BS_map
std::map< int, int > m_3BS_map
Definition: TRT_FillCablingData_SR1_ECC.h:113
GlobalCableMap_t
Definition: TRT_FillCablingData_Types.h:13
TRT_FillCablingData_SR1_ECC::m_TRTHelper
const TRT_ID * m_TRTHelper
Definition: TRT_FillCablingData_SR1_ECC.h:68
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TRT_FillCablingData_SR1_ECC::m_cntx
IdContext m_cntx
Definition: TRT_FillCablingData_SR1_ECC.h:69
std::sort
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:554
ActsProtoTrackCreationAndFitConfig.dataFile
dataFile
Definition: ActsProtoTrackCreationAndFitConfig.py:140
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
TRT_FillCablingData_SR1_ECC::m_numberOfRings
int m_numberOfRings
Definition: TRT_FillCablingData_SR1_ECC.h:79
TRT_FillCablingData_SR1_ECC::m_numberOfLayersA
int m_numberOfLayersA
Definition: TRT_FillCablingData_SR1_ECC.h:80
TRT_FillCablingData_SR1_ECC::m_2FL2_3FL1_map
std::map< int, int > m_2FL2_3FL1_map
Definition: TRT_FillCablingData_SR1_ECC.h:117
TRT_FillCablingData_SR1_ECC::m_ec_3l_map
std::map< int, int > m_ec_3l_map
Definition: TRT_FillCablingData_SR1_ECC.h:123
TRT_FillCablingData_SR1_ECC::fillCollID
void fillCollID(uint32_t rob_id, std::vector< IdentifierHash > &ids)
Definition: TRT_FillCablingData_SR1_ECC.cxx:905
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TRT_FillCablingData_SR1_ECC::m_numberOfStrawsInLayers
std::vector< int > m_numberOfStrawsInLayers
Definition: TRT_FillCablingData_SR1_ECC.h:106
TRT_ID::get_hash
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override final
Create hash id from compact id (return == 0 for OK)
Definition: TRT_ID.cxx:748
CaloCondBlobAlgs_fillNoiseFromASCII.inputFile
string inputFile
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:17
lumiFormat.i
int i
Definition: lumiFormat.py:85
TRT_CablingData::add_collID
void add_collID(uint32_t rob_id, std::vector< IdentifierHash > *vectID)
Definition: TRT_CablingData.cxx:168
TRT_ID::straw_layer_context
IdContext straw_layer_context(void) const
straw_layer id
Definition: TRT_ID.h:713
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
file
TFile * file
Definition: tile_monitor.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TRT_FillCablingData_SR1_ECC::m_CableMap
GlobalCableMap m_CableMap
Definition: TRT_FillCablingData_SR1_ECC.h:132
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TRT_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: TRT_ID.h:866
TRT_FillCablingData_SR1_ECC::m_ec_1l_map
std::map< int, int > m_ec_1l_map
Definition: TRT_FillCablingData_SR1_ECC.h:121
TRT_FillCablingData_SR1_ECC::m_3FS_map
std::map< int, int > m_3FS_map
Definition: TRT_FillCablingData_SR1_ECC.h:119
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
GlobalCableMap_t::RODGroup
int RODGroup
Definition: TRT_FillCablingData_Types.h:16
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
TRT_FillCablingData_SR1_ECC::m_numberOfLayersB
int m_numberOfLayersB
Definition: TRT_FillCablingData_SR1_ECC.h:81
xAOD::Straw
@ Straw
Definition: TrackingPrimitives.h:557
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
greater_Phi_GCM
static bool greater_Phi_GCM(const GlobalCableMap_t *a, const GlobalCableMap_t *b)
Definition: TRT_FillCablingData_SR1_ECC.cxx:1150
TRT_FillCablingData_SR1_ECC::m_ec_3r_map
std::map< int, int > m_ec_3r_map
Definition: TRT_FillCablingData_SR1_ECC.h:127
TRT_FillCablingData_SR1_ECC::m_3FL2_map
std::map< int, int > m_3FL2_map
Definition: TRT_FillCablingData_SR1_ECC.h:118
TRT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: TRT_ID.h:875
TRT_FillCablingData_SR1_ECC::m_1BS_1BL_map
std::map< int, int > m_1BS_1BL_map
Definition: TRT_FillCablingData_SR1_ECC.h:109
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
python.PyAthena.v
v
Definition: PyAthena.py:154
TRT_FillCablingData_SR1_ECC::m_numberOfLayersC
int m_numberOfLayersC
Definition: TRT_FillCablingData_SR1_ECC.h:82
GlobalCableMap_t::Phi
int Phi
Definition: TRT_FillCablingData_Types.h:15
TRT_FillCablingData_SR1_ECC::m_3BL2_map
std::map< int, int > m_3BL2_map
Definition: TRT_FillCablingData_SR1_ECC.h:112
a
TList * a
Definition: liststreamerinfos.cxx:10
h
TRT::Hit::phiModule
@ phiModule
Definition: HitInfo.h:80
AtlasDetectorID::show_to_string
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:574
TRT_FillCablingData_SR1_ECC::m_numberOfIdentifierSectors
int m_numberOfIdentifierSectors
Definition: TRT_FillCablingData_SR1_ECC.h:85
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
TRT_CablingData
Definition: TRT_CablingData.h:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TRT_FillCablingData_SR1_ECC::m_2BS_2BL1_map
std::map< int, int > m_2BS_2BL1_map
Definition: TRT_FillCablingData_SR1_ECC.h:110
TRT_FillCablingData_SR1_ECC::m_2FS_2FL1_map
std::map< int, int > m_2FS_2FL1_map
Definition: TRT_FillCablingData_SR1_ECC.h:116
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
TRT_FillCablingData_SR1_ECC::m_ec_2r_map
std::map< int, int > m_ec_2r_map
Definition: TRT_FillCablingData_SR1_ECC.h:126
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
TRT_ID::straw_id
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
Definition: TRT_ID.h:581
TRT_FillCablingData_SR1_ECC::m_phi_to_source
std::map< int, std::vector< uint32_t > > m_phi_to_source
Definition: TRT_FillCablingData_SR1_ECC.h:92
GlobalCableMap_t::FEid
std::string FEid
Definition: TRT_FillCablingData_Types.h:17
GlobalCableMap_t::SubDet
int SubDet
Definition: TRT_FillCablingData_Types.h:14
Identifier
Definition: IdentifierFieldParser.cxx:14