Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TRTStrawStatusWrite Class Reference

#include <TRTStrawStatusWrite.h>

Inheritance diagram for TRTStrawStatusWrite:
Collaboration diagram for TRTStrawStatusWrite:

Public Types

typedef TRTCond::StrawStatusMultChanContainer StrawStatusContainer
 

Public Member Functions

 TRTStrawStatusWrite (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~TRTStrawStatusWrite ()=default
 
virtual StatusCode initialize () override
 
virtual StatusCode execute () override
 
virtual StatusCode finalize () override
 
virtual void set_status_temp (StrawStatusContainer *ssc, Identifier offlineID, bool set)
 
virtual void set_status_permanent (StrawStatusContainer *ssc, Identifier offlineID, bool set)
 
virtual StatusCode readStatFromTextFile (const std::string &filename)
 
virtual StatusCode readStatPermFromTextFile (const std::string &filename)
 
virtual StatusCode readStatHTFromTextFile (const std::string &filename)
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
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 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
 

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

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

ServiceHandle< StoreGateSvcm_detStore
 
std::string m_par_strawstatuscontainerkey
 
std::string m_par_strawstatuspermanentcontainerkey
 
std::string m_par_strawstatusHTcontainerkey
 
std::string m_par_stattextfile
 
std::string m_par_stattextfilepermanent
 
std::string m_par_stattextfileHT
 
const TRT_IDm_trtid
 
ToolHandle< ITRT_StrawStatusSummaryToolm_status
 
DataObjIDColl m_extendedExtraObjects
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 24 of file TRTStrawStatusWrite.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

◆ StrawStatusContainer

Definition at line 31 of file TRTStrawStatusWrite.h.

Constructor & Destructor Documentation

◆ TRTStrawStatusWrite()

TRTStrawStatusWrite::TRTStrawStatusWrite ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 23 of file TRTStrawStatusWrite.cxx.

23  :
24  AthAlgorithm( name, pSvcLocator ),
25  m_detStore("DetectorStore",name),
26  m_par_strawstatuscontainerkey("/TRT/Cond/Status"),
27  m_par_strawstatuspermanentcontainerkey("/TRT/Cond/StatusPermanent"),
28  m_par_strawstatusHTcontainerkey("/TRT/Cond/StatusHT"),
29  m_par_stattextfile(""),
32  m_trtid(0),
33  m_status("TRT_StrawStatusSummaryTool",this)
34 {
35 
36  declareProperty("StatusInputFile",m_par_stattextfile);
37  declareProperty("StatusInputFilePermanent",m_par_stattextfilepermanent);
38  declareProperty("StatusInputFileHT",m_par_stattextfileHT);
39  declareProperty("SummaryTool",m_status);
40 }

◆ ~TRTStrawStatusWrite()

virtual TRTStrawStatusWrite::~TRTStrawStatusWrite ( )
virtualdefault

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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; }

◆ execute()

StatusCode TRTStrawStatusWrite::execute ( )
overridevirtual

Definition at line 100 of file TRTStrawStatusWrite.cxx.

101 {
102  return StatusCode::SUCCESS;
103 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ finalize()

StatusCode TRTStrawStatusWrite::finalize ( )
overridevirtual

Definition at line 105 of file TRTStrawStatusWrite.cxx.

106 {
107  return StatusCode::SUCCESS;
108 }

◆ initialize()

StatusCode TRTStrawStatusWrite::initialize ( )
overridevirtual

Definition at line 42 of file TRTStrawStatusWrite.cxx.

43 {
44 
45  ATH_MSG_INFO( " Initializing TRTStrawStatusWrite " );
46  // Retrieve the DetectorStore
47  if (StatusCode::SUCCESS!=m_detStore.retrieve()) {
48  ATH_MSG_FATAL( "Unable to retrieve " << m_detStore.name());
49  return StatusCode::FAILURE;
50  }
51 
52  // Get the TRT ID helper
53  if (StatusCode::SUCCESS!=m_detStore->retrieve(m_trtid,"TRT_ID")) {
54  ATH_MSG_FATAL( "Problem retrieving TRTID helper" );
55  return StatusCode::FAILURE;
56  }
57 
58  StatusCode sc;
59  if (!m_par_stattextfile.empty()) {
60  ATH_MSG_INFO( "Recording StrawStatusContainer for key " << m_par_strawstatuscontainerkey );
62  if(sc!=StatusCode::SUCCESS) {
63  ATH_MSG_ERROR(" Could not read TRT StrawStatus objects ");
64  return StatusCode::FAILURE;
65  } else {
66  ATH_MSG_INFO(" Filled " << m_par_strawstatuscontainerkey << " using input file " << m_par_stattextfile );
67  }
68 
69  }
70 
71 
72  if (!m_par_stattextfilepermanent.empty()) {
73  ATH_MSG_INFO( "Recording StrawStatusPermanent Container for key " << m_par_strawstatuspermanentcontainerkey );
75  if(sc!=StatusCode::SUCCESS) {
76  ATH_MSG_ERROR(" Could not read TRT StrawStatus permanent objects ");
77  return StatusCode::FAILURE;
78  } else {
79  ATH_MSG_INFO(" Filled " << m_par_strawstatuspermanentcontainerkey << " using input file " << m_par_stattextfilepermanent );
80  }
81 
82  }
83 
84 
85  if (!m_par_stattextfileHT.empty()) {
86  ATH_MSG_INFO( "Recording StrawStatusHTContainer for key " << m_par_strawstatusHTcontainerkey );
88  if(sc!=StatusCode::SUCCESS) {
89  ATH_MSG_ERROR(" Could not read TRT StrawStatus HT objects ");
90  return StatusCode::FAILURE;
91  } else {
92  ATH_MSG_INFO(" Filled " << m_par_strawstatusHTcontainerkey << " using input file " << m_par_stattextfileHT );
93  }
94 
95  }
96 
97  return StatusCode::SUCCESS;
98 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::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.

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Algorithm >::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< Algorithm >::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< Algorithm > >::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.

◆ readStatFromTextFile()

StatusCode TRTStrawStatusWrite::readStatFromTextFile ( const std::string &  filename)
virtual

Definition at line 141 of file TRTStrawStatusWrite.cxx.

142 {
143 
145 
146  strawstatus->clear();
147  ATH_MSG_INFO( " ***************** TRTStrawStatusWrite ************************ ");
148  ATH_MSG_INFO( " readStatFromTextFile called with file name " << filename );
149 
150  int deadba0[32];
151  int deadba1[32];
152  int deadba2[32];
153  int deadbc0[32];
154  int deadbc1[32];
155  int deadbc2[32];
156  int deadea[14];
157  int deadec[14];
158  for(int i=0;i<32;i++){
159  deadba0[i]=0;
160  deadba1[i]=0;
161  deadba2[i]=0;
162  deadbc0[i]=0;
163  deadbc1[i]=0;
164  deadbc2[i]=0;
165  }
166  for(int i=0;i<14;i++){
167  deadea[i]=0;
168  deadec[i]=0;
169  }
170  // initialize detector layers with status 'good'
171  for(int l=0;l<3;l++) {
173  strawstatus->setStatus(idbc,TRTCond::StrawStatus::Good);
175  strawstatus->setStatus(idba,TRTCond::StrawStatus::Good);
176  }
177  for(int l=0;l<14;l++) {
179  strawstatus->setStatus(idec,TRTCond::StrawStatus::Good);
181  strawstatus->setStatus(idea,TRTCond::StrawStatus::Good);
182  }
183 
184 
185 
186  if(filename.empty()) {
187  ATH_MSG_FATAL( " Empty input file! " );
188  return StatusCode::FAILURE;
189  }
190  std::ifstream ifs(filename.c_str()) ;
191  int bec, layer, sector, strawlayer, straw, status ;
192  //txt file format : bec sector straw strawlayer layer dead/alive
193  int line =0 ;
194  ATH_MSG_INFO( "StrawStatus levels: strawlayer: " << TRTCond::ExpandedIdentifier::STRAWLAYER << " module: " << TRTCond::ExpandedIdentifier::MODULE << " layer: " << TRTCond::ExpandedIdentifier::LAYERWHEEL );
195  while( ifs >> bec >> sector>> straw >> strawlayer >> layer >> status ) {
196  if ( (status == 3) || (status == 4) || (status == 5) ) status = 1;
197  if (status!=1){
198  ATH_MSG_FATAL( " The Status Temp : " << status << " IS NOT ACCEPTED, Use 1 for dead " );
199  return StatusCode::FAILURE;
200  }
202  line +=1;
203 
205  if( strawlayer<0 ) { level = TRTCond::ExpandedIdentifier::MODULE ; strawlayer = 0 ; }
206  if( sector<0 ) { level = TRTCond::ExpandedIdentifier::LAYERWHEEL ; sector = 0 ; }
208  if( bec<-2 ) { level = TRTCond::ExpandedIdentifier::DETECTOR ; bec = -2 ; }
209 
211  if(bec==-1 && sector>=0 && sector <32) {
212  if(layer==0) deadbc0[sector]++;
213  if(layer==1) deadbc1[sector]++;
214  if(layer==2) deadbc2[sector]++;
215  }
216  if(bec==1 && sector>=0 && sector <32) {
217  if(layer==0) deadba0[sector]++;
218  if(layer==1) deadba1[sector]++;
219  if(layer==2) deadba2[sector]++;
220  }
221  if(bec==-2 && layer>=0 && layer <14) deadec[layer]++;
222  if(bec==2 && layer>=0 && layer <14) deadea[layer]++;
223  } else {
224  ATH_MSG_INFO( "Entire Module dead: bec: " << bec << " layer: " << layer << " phi: " << sector << " stl: " << strawlayer << " stw: " << straw << " level " << level);
225  }
226 
227  TRTCond::ExpandedIdentifier id( bec,layer,sector,strawlayer,straw,level);
228  // 1 means BAD
229  strawstatus->setStatus(id,1) ;
230 
231  // I don't know why to set this extra bit 8 here for dead straws. Been always like that. (PH)
232  strawstatus->set(id,1);
233  Identifier ID = m_trtid->straw_id(bec,sector,layer,strawlayer,straw);
234  set_status_temp(strawstatus, ID,status==1?true:false);
235 
236  }
237 
238  ATH_MSG_INFO ( " Dead straws BA layer 0" );
239  ATH_MSG_INFO ( "deadba0[] = { " << deadba0[0] << ", " << deadba0[1] << ", " << deadba0[2] << ", " << deadba0[3] << ", " <<
240  deadba0[4] << ", " << deadba0[5] << ", " << deadba0[6] << ", " << deadba0[7] << ", " <<
241  deadba0[8] << ", " << deadba0[9] << ", " << deadba0[10] << ", " << deadba0[11] << ", " <<
242  deadba0[12] << ", " << deadba0[13] << ", " << deadba0[14] << ", " << deadba0[15] << ", " <<
243  deadba0[16] << ", " << deadba0[17] << ", " << deadba0[18] << ", " << deadba0[19] << ", " <<
244  deadba0[20] << ", " << deadba0[21] << ", " << deadba0[22] << ", " << deadba0[23] << ", " <<
245  deadba0[24] << ", " << deadba0[25] << ", " << deadba0[26] << ", " << deadba0[27] << ", " <<
246  deadba0[28] << ", " << deadba0[29] << ", " << deadba0[30] << ", " << deadba0[31] << "}; " );
247  ATH_MSG_INFO ( " Dead straws BA layer 1 ");
248  ATH_MSG_INFO ( "deadba1[] = { " << deadba1[0] << ", " << deadba1[1] << ", " << deadba1[2] << ", " << deadba1[3] << ", " <<
249  deadba1[4] << ", " << deadba1[5] << ", " << deadba1[6] << ", " << deadba1[7] << ", " <<
250  deadba1[8] << ", " << deadba1[9] << ", " << deadba1[10] << ", " << deadba1[11] << ", " <<
251  deadba1[12] << ", " << deadba1[13] << ", " << deadba1[14] << ", " << deadba1[15] << ", " <<
252  deadba1[16] << ", " << deadba1[17] << ", " << deadba1[18] << ", " << deadba1[19] << ", " <<
253  deadba1[20] << ", " << deadba1[21] << ", " << deadba1[22] << ", " << deadba1[23] << ", " <<
254  deadba1[24] << ", " << deadba1[25] << ", " << deadba1[26] << ", " << deadba1[27] << ", " <<
255  deadba1[28] << ", " << deadba1[29] << ", " << deadba1[30] << ", " << deadba1[31] << "};");
256  ATH_MSG_INFO (" Dead straws BA layer 2");
257  ATH_MSG_INFO ( "deadba2[]= { " << deadba2[0] << ", " << deadba2[1] << ", " << deadba2[2] << ", " << deadba2[3] << ", " <<
258  deadba2[4] << ", " << deadba2[5] << ", " << deadba2[6] << ", " << deadba2[7] << ", " <<
259  deadba2[8] << ", " << deadba2[9] << ", " << deadba2[10] << ", " << deadba2[11] << ", " <<
260  deadba2[12] << ", " << deadba2[13] << ", " << deadba2[14] << ", " << deadba2[15] << ", " <<
261  deadba2[16] << ", " << deadba2[17] << ", " << deadba2[18] << ", " << deadba2[19] << ", " <<
262  deadba2[20] << ", " << deadba2[21] << ", " << deadba2[22] << ", " << deadba2[23] << ", " <<
263  deadba2[24] << ", " << deadba2[25] << ", " << deadba2[26] << ", " << deadba2[27] << ", " <<
264  deadba2[28] << ", " << deadba2[29] << ", " << deadba2[30] << ", " << deadba2[31] << "}; ");
265 
266  ATH_MSG_INFO ( " Dead straws BC layer 0" );
267  ATH_MSG_INFO ( "deadbc0[] = { " << deadbc0[0] << ", " << deadbc0[1] << ", " << deadbc0[2] << ", " << deadbc0[3] << ", " <<
268  deadbc0[4] << ", " << deadbc0[5] << ", " << deadbc0[6] << ", " << deadbc0[7] << ", " <<
269  deadbc0[8] << ", " << deadbc0[9] << ", " << deadbc0[10] << ", " << deadbc0[11] << ", " <<
270  deadbc0[12] << ", " << deadbc0[13] << ", " << deadbc0[14] << ", " << deadbc0[15] << ", " <<
271  deadbc0[16] << ", " << deadbc0[17] << ", " << deadbc0[18] << ", " << deadbc0[19] << ", " <<
272  deadbc0[20] << ", " << deadbc0[21] << ", " << deadbc0[22] << ", " << deadbc0[23] << ", " <<
273  deadbc0[24] << ", " << deadbc0[25] << ", " << deadbc0[26] << ", " << deadbc0[27] << ", " <<
274  deadbc0[28] << ", " << deadbc0[29] << ", " << deadbc0[30] << ", " << deadbc0[31] << "}; " );
275  ATH_MSG_INFO ( " Dead straws BC layer 1 ");
276  ATH_MSG_INFO ( "deadbc1[] = { " << deadbc1[0] << ", " << deadbc1[1] << ", " << deadbc1[2] << ", " << deadbc1[3] << ", " <<
277  deadbc1[4] << ", " << deadbc1[5] << ", " << deadbc1[6] << ", " << deadbc1[7] << ", " <<
278  deadbc1[8] << ", " << deadbc1[9] << ", " << deadbc1[10] << ", " << deadbc1[11] << ", " <<
279  deadbc1[12] << ", " << deadbc1[13] << ", " << deadbc1[14] << ", " << deadbc1[15] << ", " <<
280  deadbc1[16] << ", " << deadbc1[17] << ", " << deadbc1[18] << ", " << deadbc1[19] << ", " <<
281  deadbc1[20] << ", " << deadbc1[21] << ", " << deadbc1[22] << ", " << deadbc1[23] << ", " <<
282  deadbc1[24] << ", " << deadbc1[25] << ", " << deadbc1[26] << ", " << deadbc1[27] << ", " <<
283  deadbc1[28] << ", " << deadbc1[29] << ", " << deadbc1[30] << ", " << deadbc1[31] << "};");
284  ATH_MSG_INFO (" Dead straws BC leayer 2");
285  ATH_MSG_INFO ( "deadbc2[]= { " << deadbc2[0] << ", " << deadbc2[1] << ", " << deadbc2[2] << ", " << deadbc2[3] << ", " <<
286  deadbc2[4] << ", " << deadbc2[5] << ", " << deadbc2[6] << ", " << deadbc2[7] << ", " <<
287  deadbc2[8] << ", " << deadbc2[9] << ", " << deadbc2[10] << ", " << deadbc2[11] << ", " <<
288  deadbc2[12] << ", " << deadbc2[13] << ", " << deadbc2[14] << ", " << deadbc2[15] << ", " <<
289  deadbc2[16] << ", " << deadbc2[17] << ", " << deadbc2[18] << ", " << deadbc2[19] << ", " <<
290  deadbc2[20] << ", " << deadbc2[21] << ", " << deadbc2[22] << ", " << deadbc2[23] << ", " <<
291  deadbc2[24] << ", " << deadbc2[25] << ", " << deadbc2[26] << ", " << deadbc2[27] << ", " <<
292  deadbc2[28] << ", " << deadbc2[29] << ", " << deadbc2[30] << ", " << deadbc2[31] << "}; ");
293 
294  ATH_MSG_INFO (" Dead straws EA" );
295  ATH_MSG_INFO ("deadea[] = { " << deadea[0] << ", " << deadea[1] << ", " << deadea[2] << ", " << deadea[3] << ", " <<
296  deadea[4] << ", " << deadea[5] << ", " << deadea[6] << ", " << deadea[7] << ", " <<
297  deadea[8] << ", " << deadea[9] << ", " << deadea[10] << ", " << deadea[11] << ", " <<
298  deadea[12] << ", " << deadea[13] << "}; ");
299  ATH_MSG_INFO (" Dead straws EC" );
300  ATH_MSG_INFO ("deadec[] = { " << deadec[0] << ", " << deadec[1] << ", " << deadec[2] << ", " << deadec[3] << ", " <<
301  deadec[4] << ", " << deadec[5] << ", " << deadec[6] << ", " << deadec[7] << ", " <<
302  deadec[8] << ", " << deadec[9] << ", " << deadec[10] << ", " << deadec[11] << ", " <<
303  deadec[12] << ", " << deadec[13] << "}; " );
304 
305  ATH_MSG_INFO( "Recording StrawStatus Container. Number of dead straws " << line << " straws" );
306  if( (m_detStore->record(strawstatus,m_par_strawstatuscontainerkey))!=StatusCode::SUCCESS ) {
307  ATH_MSG_ERROR( "Could not record StrawStatus Container for key " << m_par_strawstatuscontainerkey );
308  return StatusCode::FAILURE;
309  } else {
310  ATH_MSG_INFO("Recorded StrawStatus container " << m_par_strawstatuscontainerkey << " with DetStore ");
311  }
312 
313 
314  return StatusCode::SUCCESS;
315 }

◆ readStatHTFromTextFile()

StatusCode TRTStrawStatusWrite::readStatHTFromTextFile ( const std::string &  filename)
virtual

Definition at line 318 of file TRTStrawStatusWrite.cxx.

319 {
320 
322 
323  strawstatusHT->clear();
324 
325  ATH_MSG_INFO( " ***************** TRTStrawStatusWrite ************************ ");
326  ATH_MSG_INFO( " readStatHTFromTextFile called with file name " << filename );
327 
328 
329  std::ifstream ifsHT(filename.c_str()) ;
330  if(ifsHT) {
331 
332  // initialize detector layers with Good like in rel21 (PH: Good and Xenon is treated as the same)
333  int lineXe=0;
335  strawstatusHT->setStatus(iddet,TRTCond::StrawStatus::Good);
336 
337  for(int l=0;l<3;l++) {
338 
340  strawstatusHT->setStatus(idbc,TRTCond::StrawStatus::Good);
342  strawstatusHT->setStatus(idba,TRTCond::StrawStatus::Good);
343  lineXe+=2;
344  }
345  for(int l=0;l<14;l++) {
347  strawstatusHT->setStatus(idec,TRTCond::StrawStatus::Good);
349  strawstatusHT->setStatus(idea,TRTCond::StrawStatus::Good);
350  lineXe+=2;
351  }
352 
353  int bec, layer, sector, strawlayer, straw, status ;
354  //txt file format : bec sector straw strawlayer layer dead/alive
355  int line = 0;
356  int lineAr = 0;
357  int lineKr = 0;
358  int lineEAr = 0;
359  int lineEKr = 0;
360 
361  while( ifsHT >> bec >> sector >> strawlayer >> straw >> layer >> status ) {
363 
364  line +=1;
366  if( strawlayer<0 ) { level = TRTCond::ExpandedIdentifier::MODULE ; strawlayer = 0 ; }
367  if( sector<0 ) { level = TRTCond::ExpandedIdentifier::LAYERWHEEL ; sector = 0 ; }
369  if( bec<-2 ) { level = TRTCond::ExpandedIdentifier::DETECTOR ; bec = -2 ; }
370 
371  ATH_MSG_INFO( "Layer/Wheel with Argon: bec: " << bec << " layer: " << layer << " phi: " << sector << " stl: " << strawlayer << " stw: " << straw << " status (" << TRTCond::StrawStatus::Argon << " is Argon): "<< status << " level (" << TRTCond::ExpandedIdentifier::LAYERWHEEL << " is LAYERWHEEL) " << level);
372  TRTCond::ExpandedIdentifier id( bec,layer,sector,strawlayer,straw,level);
373  if (status == 4){ // Argon
374  strawstatusHT->setStatus(id,TRTCond::StrawStatus::Argon) ;
375  lineAr+=1;
376  lineXe-=1;
377  }
378  else if (status == 5){ // Krypton
379  strawstatusHT->setStatus(id,TRTCond::StrawStatus::Krypton) ;
380  lineKr+=1;
381  lineXe-=1;
382  }
383  else if (status == 6){ // EmulateArgon
384  strawstatusHT->setStatus(id,TRTCond::StrawStatus::EmulateArgon) ;
385  lineEAr+=1;
386  }
387  else if (status == 7){ // EmulateKrypton
388  strawstatusHT->setStatus(id,TRTCond::StrawStatus::EmulateKrypton) ;
389  lineEKr+=1;
390  lineXe-=1;
391  }
392  else{
393  ATH_MSG_FATAL( " The HT Status: " << status << " IS NOT ACCEPTED, 4 for Argon, 5 for Krypton!! "
394  << " Or 6 or 7 for emulated types!" );
395  return StatusCode::FAILURE;
396  }
397 
398  }
399  ATH_MSG_INFO( "All the rest is running Xenon");
400  ATH_MSG_INFO( "HT Status. Read " << line << " layers. " << " Xenon: " << lineXe << " Argon: "<< lineAr << " Krypton: " << lineKr << " EmulateArgon: " << lineEAr << " EmulateKrypton: " << lineEKr );
401 
402  if( (m_detStore->record(strawstatusHT,m_par_strawstatusHTcontainerkey))!=StatusCode::SUCCESS ) {
403  ATH_MSG_ERROR( "Could not record StrawStatusHT Container for key " << m_par_strawstatusHTcontainerkey );
404  return StatusCode::FAILURE;
405  } else {
406  ATH_MSG_INFO("Recorded StrawStatusHT container " << m_par_strawstatusHTcontainerkey << " with DetStore ");
407  }
408 
409 
410  } else {
411  ATH_MSG_WARNING( " The HT Status input file not found ");
412  }
413 
414 
415  return StatusCode::SUCCESS;
416 }

◆ readStatPermFromTextFile()

StatusCode TRTStrawStatusWrite::readStatPermFromTextFile ( const std::string &  filename)
virtual

Definition at line 418 of file TRTStrawStatusWrite.cxx.

419 {
420 
421  StrawStatusContainer* strawstatuspermanent = new TRTCond::StrawStatusMultChanContainer() ;
422 
423  strawstatuspermanent->clear();
424 
425 
426  ATH_MSG_INFO( " readStatPermFromTextFile called with file name " << filename );
427 
428 
429  std::ifstream ifspermanent(filename.c_str()) ;
430 
431  if (ifspermanent) {
432 
433  // initialize all straws with status 'Good'
434  for(std::vector<Identifier>::const_iterator it=m_trtid->straw_layer_begin();it!=m_trtid->straw_layer_end();++it) {
435  Identifier id = m_trtid->straw_id(*it,0);
436  int m = m_trtid->phi_module(id);
437  int n = m_trtid->barrel_ec(id);
438  int l = m_trtid->layer_or_wheel(id);
439  int nStrawsInLayer = m_trtid->straw_max(*it);
440  int sl = m_trtid->straw_layer(id);
441  for (int i=0; i<=nStrawsInLayer; i++) {
442  id = m_trtid->straw_id(*it,i);
444  strawstatuspermanent->setStatus(expid,TRTCond::StrawStatus::Good) ;
445  }
446  }
447  int bec, layer, sector, strawlayer, straw, status;
448  //txt file format : bec sector straw strawlayer layer dead/alive
449  int line = 0;
450  int nmodu= 0;
451  while( ifspermanent >> bec >> sector>> straw >> strawlayer >> layer >> status ) {
452  if ( (status == 3) || (status == 4) || (status == 5) ) status = 1;
453  if (status!=1){
454  ATH_MSG_FATAL( " The Status Permanent: " << status << " IS NOT ACCEPTED, Use 1 for dead " );
455  return StatusCode::FAILURE;
456  }
458  line +=1;
459 
460 
461  // Expect the line to ask for either an entire modules or an individual straw to be turned off
462  if( strawlayer<0 ) {
463  std::cout << " Read permanent dead module from txt: " << bec << " ,sector " << sector << " ,straw " << straw << " ,strawlayer " << strawlayer << " ,layer " << layer << " ,status " << status << std::endl;
464  for(std::vector<Identifier>::const_iterator it=m_trtid->straw_layer_begin();it!=m_trtid->straw_layer_end();++it) {
465  Identifier id = m_trtid->straw_id(*it,0);
466  int m = m_trtid->phi_module(id);
467  int n = m_trtid->barrel_ec(id);
468  int l = m_trtid->layer_or_wheel(id);
469  if(n!=bec || m!=sector || l!=layer) continue;
470 
471  int nStrawsInLayer = m_trtid->straw_max(*it);
472  int sl = m_trtid->straw_layer(id);
473  for (int i=0; i<=nStrawsInLayer; i++) {
474  id = m_trtid->straw_id(*it,i);
475  TRTCond::ExpandedIdentifier expid( bec,layer,sector,sl,i,level);
476  strawstatuspermanent->setStatus(expid,TRTCond::StrawStatus::Dead) ;
477  }
478  }
479  nmodu++ ;
480  } else {
481  TRTCond::ExpandedIdentifier expid( bec,layer,sector,strawlayer,straw,level);
482  strawstatuspermanent->setStatus(expid,TRTCond::StrawStatus::Dead) ;
483  }
484 
485  ATH_MSG_DEBUG( "Permanent dead ids: bec: " << bec << " layer: " << layer << " phi: " << sector << " stl: " << strawlayer << " stw: " << straw );
486  } // end reading input text file
487 
488 
489 
490  ATH_MSG_INFO( " Record Permanent Straw Status. Dead modules : " << nmodu << " Number of lines: " << line << " of dead identifiers " );
491  if( (m_detStore->record(strawstatuspermanent,m_par_strawstatuspermanentcontainerkey))!=StatusCode::SUCCESS ) {
492  ATH_MSG_ERROR( "Could not record StrawStatusPermanent Container for key " << m_par_strawstatuspermanentcontainerkey );
493  return StatusCode::FAILURE;
494  } else {
495  ATH_MSG_INFO("Recorded StrawStatusPermanent container " << m_par_strawstatuspermanentcontainerkey << " with DetStore ");
496  }
497 
498  }
499  return StatusCode::SUCCESS ;
500 }

◆ 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< Algorithm > >::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< Algorithm > >::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  }

◆ set_status_permanent()

void TRTStrawStatusWrite::set_status_permanent ( StrawStatusContainer ssc,
Identifier  offlineID,
bool  set 
)
virtual

Definition at line 127 of file TRTStrawStatusWrite.cxx.

127  {
128 
131  m_trtid->phi_module(offlineID),m_trtid->straw_layer(offlineID),
132  m_trtid->straw(offlineID),level );
133  unsigned int org_stat = int((*strawstatuspermanentcontainer).get(id).getstatus());
134  const unsigned int statusbitmask = 1 << 8;// 0000001 00000000
135 
136  if (set) { (*strawstatuspermanentcontainer).set(id, (org_stat|statusbitmask)); }else{ (*strawstatuspermanentcontainer).set(id, (org_stat & (~statusbitmask) )); }
137 
138 }

◆ set_status_temp()

void TRTStrawStatusWrite::set_status_temp ( StrawStatusContainer ssc,
Identifier  offlineID,
bool  set 
)
virtual

Definition at line 112 of file TRTStrawStatusWrite.cxx.

112  {
115  m_trtid->phi_module(offlineID),m_trtid->straw_layer(offlineID),
116  m_trtid->straw(offlineID),level );
117 
118  unsigned int org_stat = int((*strawstatuscontainer).get(id).getstatus());
119  const unsigned int statusbitmask = 1 << 8;// 0000001 00000000
120 
121 
122  if (set) { (*strawstatuscontainer).set(id, (org_stat|statusbitmask)); }else{ (*strawstatuscontainer).set(id, (org_stat & (~statusbitmask) )); }
123 }

◆ sysInitialize()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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_detStore

ServiceHandle<StoreGateSvc> TRTStrawStatusWrite::m_detStore
private

Definition at line 51 of file TRTStrawStatusWrite.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_par_stattextfile

std::string TRTStrawStatusWrite::m_par_stattextfile
private

Definition at line 55 of file TRTStrawStatusWrite.h.

◆ m_par_stattextfileHT

std::string TRTStrawStatusWrite::m_par_stattextfileHT
private

Definition at line 57 of file TRTStrawStatusWrite.h.

◆ m_par_stattextfilepermanent

std::string TRTStrawStatusWrite::m_par_stattextfilepermanent
private

Definition at line 56 of file TRTStrawStatusWrite.h.

◆ m_par_strawstatuscontainerkey

std::string TRTStrawStatusWrite::m_par_strawstatuscontainerkey
private

Definition at line 52 of file TRTStrawStatusWrite.h.

◆ m_par_strawstatusHTcontainerkey

std::string TRTStrawStatusWrite::m_par_strawstatusHTcontainerkey
private

Definition at line 54 of file TRTStrawStatusWrite.h.

◆ m_par_strawstatuspermanentcontainerkey

std::string TRTStrawStatusWrite::m_par_strawstatuspermanentcontainerkey
private

Definition at line 53 of file TRTStrawStatusWrite.h.

◆ m_status

ToolHandle<ITRT_StrawStatusSummaryTool> TRTStrawStatusWrite::m_status
private

Definition at line 61 of file TRTStrawStatusWrite.h.

◆ m_trtid

const TRT_ID* TRTStrawStatusWrite::m_trtid
private

Definition at line 60 of file TRTStrawStatusWrite.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TRT::Hit::straw
@ straw
Definition: HitInfo.h:82
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TRT_ID::straw_max
int straw_max(const Identifier &id) const
Definition: TRT_ID.cxx:803
TRTStrawStatusWrite::m_par_strawstatusHTcontainerkey
std::string m_par_strawstatusHTcontainerkey
Definition: TRTStrawStatusWrite.h:54
TRTStrawStatusWrite::StrawStatusContainer
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
Definition: TRTStrawStatusWrite.h:31
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ID
std::vector< Identifier > ID
Definition: CalibHitIDCheck.h:24
collListGuids.line
string line
Definition: collListGuids.py:77
TRTCond::StrawStatusMultChanContainer
Definition: StrawStatusMultChanContainer.h:19
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TRTStrawStatusWrite::readStatFromTextFile
virtual StatusCode readStatFromTextFile(const std::string &filename)
Definition: TRTStrawStatusWrite.cxx:141
TRTCond::ExpandedIdentifier::BARRELEC
@ BARRELEC
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTStrawStatusWrite::m_par_strawstatuspermanentcontainerkey
std::string m_par_strawstatuspermanentcontainerkey
Definition: TRTStrawStatusWrite.h:53
skel.it
it
Definition: skel.GENtoEVGEN.py:407
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TRTStrawStatusWrite::m_par_strawstatuscontainerkey
std::string m_par_strawstatuscontainerkey
Definition: TRTStrawStatusWrite.h:52
TRTCond::StrawStatus::Dead
@ Dead
Definition: StrawStatus.h:18
TRT_ID::straw_layer_end
const_id_iterator straw_layer_end(void) const
Definition: TRT_ID.h:961
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TRTCond::StrawStatus::EmulateKrypton
@ EmulateKrypton
Definition: StrawStatus.h:18
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
TRTStrawStatusWrite::m_par_stattextfileHT
std::string m_par_stattextfileHT
Definition: TRTStrawStatusWrite.h:57
TRT_ID::straw
int straw(const Identifier &id) const
Definition: TRT_ID.h:902
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
TRTStrawStatusWrite::m_trtid
const TRT_ID * m_trtid
Definition: TRTStrawStatusWrite.h:60
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TRTCond::ExpandedIdentifier::STRAWLAYER
@ STRAWLAYER
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
python.LArMinBiasAlgConfig.int
int
Definition: LArMinBiasAlgConfig.py:59
TRTStrawStatusWrite::set_status_temp
virtual void set_status_temp(StrawStatusContainer *ssc, Identifier offlineID, bool set)
Definition: TRTStrawStatusWrite.cxx:112
TRTCond::ExpandedIdentifier::DETECTOR
@ DETECTOR
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTStrawStatusWrite::m_par_stattextfile
std::string m_par_stattextfile
Definition: TRTStrawStatusWrite.h:55
AthCommonDataStore< AthCommonMsg< Algorithm > >::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_ID::straw_layer
int straw_layer(const Identifier &id) const
Definition: TRT_ID.h:893
TRTStrawStatusWrite::readStatPermFromTextFile
virtual StatusCode readStatPermFromTextFile(const std::string &filename)
Definition: TRTStrawStatusWrite.cxx:418
TRT_ID::layer_or_wheel
int layer_or_wheel(const Identifier &id) const
Definition: TRT_ID.h:884
TRTCond::StrawStatus::EmulateArgon
@ EmulateArgon
Definition: StrawStatus.h:18
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
TRTCond::StrawStatus::Good
@ Good
Definition: StrawStatus.h:18
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
TRTStrawStatusWrite::m_status
ToolHandle< ITRT_StrawStatusSummaryTool > m_status
Definition: TRTStrawStatusWrite.h:61
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:239
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TRTCond::ExpandedIdentifier::STRAW
@ STRAW
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: TRT_ID.h:875
TRTStrawStatusWrite::m_detStore
ServiceHandle< StoreGateSvc > m_detStore
Definition: TRTStrawStatusWrite.h:51
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
TRTStrawStatusWrite::readStatHTFromTextFile
virtual StatusCode readStatHTFromTextFile(const std::string &filename)
Definition: TRTStrawStatusWrite.cxx:318
TRTCond::ExpandedIdentifier::LAYERWHEEL
@ LAYERWHEEL
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
merge.status
status
Definition: merge.py:17
TRT_ID::straw_layer_begin
const_id_iterator straw_layer_begin(void) const
Iterators over full set of straw_layer ids. Straw_layer ids are sorted.
Definition: TRT_ID.h:953
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
TRTCond::ExpandedIdentifier
Identifier for TRT detector elements in the conditions code.
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:30
TRTCond::ExpandedIdentifier::MODULE
@ MODULE
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTCond::StrawStatus::Argon
@ Argon
Definition: StrawStatus.h:18
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TRTStrawStatusWrite::m_par_stattextfilepermanent
std::string m_par_stattextfilepermanent
Definition: TRTStrawStatusWrite.h:56
TRTCond::StrawStatus::Krypton
@ Krypton
Definition: StrawStatus.h:18
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
ServiceHandle< ICondSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14