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

Algorithn to dump out calibration constants from the TileInfoSvc. More...

#include <TileExpertDump.h>

Inheritance diagram for TileExpertDump:
Collaboration diagram for TileExpertDump:

Public Member Functions

 TileExpertDump (const std::string &name, ISvcLocator *pSvcLocator)
 
 ~TileExpertDump ()
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
StatusCode setEmExpertOptions ()
 
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

void printExpertEmscale ()
 
void printExpertEmscaleOnl ()
 
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

TileEmscaleCalibOptions m_emExpertOptions
 
bool m_OflCisFitLin
 
bool m_OflCisFitNln
 
bool m_OflLasLin
 
bool m_OflLasNln
 
bool m_OflLasPart
 
bool m_OflCes
 
bool m_OflEms
 
bool m_OflLasLinPisa
 
bool m_OflLasNlnPisa
 
bool m_OflMinbias
 
bool m_OnlCisLin
 
bool m_OnlLasLin
 
bool m_OnlCes
 
bool m_OnlEms
 
bool m_printExpertEmscale
 
bool m_printExpertEmscaleOnl
 
SG::ReadHandleKey< xAOD::EventInfom_eventInfoKey
 
ToolHandle< TileExpertToolEmscalem_tileExpertToolEmscale
 
const TileHWIDm_tileHWID
 
std::string m_infoName
 
const TileInfom_tileInfo
 
int m_i_ADCmax = 0
 
DataObjIDColl m_extendedExtraObjects
 
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

Algorithn to dump out calibration constants from the TileInfoSvc.

Definition at line 36 of file TileExpertDump.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TileExpertDump()

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

Definition at line 26 of file TileExpertDump.cxx.

27  : AthAlgorithm(name, pSvcLocator)
29  , m_tileHWID(nullptr)
30  , m_tileInfo(nullptr)
31 {
32  declareProperty("PrintExpertEmscale" , m_printExpertEmscale=false ,"Switch on expert calibration chain printout");
33  declareProperty("PrintExpertEmscaleOnl" , m_printExpertEmscaleOnl=false ,"Switch on expert onl calibration chain printout");
34 
35  declareProperty("useOflCisFitLin" , m_OflCisFitLin = false, "Use calibration of OflCisFitLin");
36  declareProperty("useOflCisFitNln" , m_OflCisFitNln = false, "Use calibration of OflCisFitNln");
37  declareProperty("useOflLasLin" , m_OflLasLin = false, "Use calibration of OflLasLin");
38  declareProperty("useOflLasNln" , m_OflLasNln = false, "Use calibration of OflLasNln");
39  declareProperty("useOflLasPart" , m_OflLasPart = false, "Use calibration of OflLasPart");
40  declareProperty("useOflCes" , m_OflCes = false, "Use calibration of OflCes");
41  declareProperty("useOflEms" , m_OflEms = false, "Use calibration of OflEms");
42  declareProperty("useOflLasLinPisa", m_OflLasLinPisa = false, "Use calibration of OflLasLinPisa");
43  declareProperty("useOflLasNlnPisa", m_OflLasNlnPisa = false, "Use calibration of OflLasNlnPisa");
44  declareProperty("useOflMinbias" , m_OflMinbias = false, "Use calibration of OflMinbias");
45  declareProperty("useOnlCisLin" , m_OnlCisLin = false, "Use calibration of OnlCisLin");
46  declareProperty("useOnlLasLin" , m_OnlLasLin = false, "Use calibration of OnlLasLin");
47  declareProperty("useOnlCes" , m_OnlCes = false, "Use calibration of OnlCes");
48  declareProperty("useOnlEms" , m_OnlEms = false, "Use calibration of OnlEms");
49  declareProperty("TileInfoName", m_infoName = "TileInfo");
50 }

◆ ~TileExpertDump()

TileExpertDump::~TileExpertDump ( )

Definition at line 54 of file TileExpertDump.cxx.

54  {
55 }

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 TileExpertDump::execute ( )

Definition at line 108 of file TileExpertDump.cxx.

108  {
109 
110  ATH_MSG_DEBUG( " in execute()" );
111 
113  ATH_CHECK( eventInfo.isValid() );
114 
115  ATH_MSG_DEBUG( "Event: ["
116  << eventInfo->runNumber() << ", "
117  << eventInfo->eventNumber() << ", "
118  << eventInfo->lumiBlock() << ": "
119  << eventInfo->timeStamp() << "]" );
120 
121 
122  //=== print out stuff
125 
126  return StatusCode::SUCCESS;
127 }

◆ 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 TileExpertDump::finalize ( )

Definition at line 241 of file TileExpertDump.cxx.

241  {
242 
243  ATH_MSG_DEBUG( "in finalize()" );
244 
245  //=== Dump the emExpertOptions for cross-check
247  ATH_MSG_INFO( "Dumping m_emExpertOptions = " << m_emExpertOptions.getEmscaleCalibOptions() );
248 
249  std::ostringstream sout;
251  ATH_MSG_INFO( sout.str() );
252  }
253 
254  return StatusCode::SUCCESS;
255 }

◆ initialize()

StatusCode TileExpertDump::initialize ( )

Definition at line 58 of file TileExpertDump.cxx.

58  {
59 
60  ATH_MSG_DEBUG( "in initialize()" );
61 
62  //=== EventInfo key
64 
65  //=== Get TileHWID
66  CHECK( detStore()->retrieve(m_tileHWID, "TileHWID") );
67 
68  //=== Get Emscale Calib Options for TileExpertToolEmscale
70 
71  //=== Get TileExpertToolEmscale and set the options
72  CHECK( m_tileExpertToolEmscale.retrieve() );
73 
75 
76  //=== Get TileInfo and set max ADC counts
79 
80  return StatusCode::SUCCESS;
81 }

◆ 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.

◆ printExpertEmscale()

void TileExpertDump::printExpertEmscale ( )
private

Definition at line 131 of file TileExpertDump.cxx.

131  {
132 
133  ATH_MSG_DEBUG( "In printExpertEmscale()" );
134 
135  for (unsigned int ros = 0; ros < TileCalibUtils::MAX_ROS; ++ros) {
136  unsigned int drawerMax = TileCalibUtils::getMaxDrawer(ros);
137  for (unsigned int drawer = 0; drawer < drawerMax; ++drawer) {
138  unsigned int drawerIdx = TileCalibUtils::getDrawerIdx(ros, drawer);
139  for (unsigned int channel = 0; channel < TileCalibUtils::MAX_CHAN; ++channel) {
140  for (unsigned int adc = 0; adc < TileCalibUtils::MAX_GAIN; ++adc) {
141 
142  msg(MSG::INFO) << ros << "/" << std::setw(2)
143  << drawer << "/" << std::setw(2)
144  << channel << "/"
145  << adc << " : "
146  << std::fixed << std::right << std::setw(9) << std::setprecision(5)
147  << m_tileExpertToolEmscale->doCalibCis(drawerIdx, channel, adc, 1.) << " (CIS) | "
148  << std::fixed << std::right << std::setw(9) << std::setprecision(5)
149  << m_tileExpertToolEmscale->doCalibLas(drawerIdx, channel, 1.) << " (LAS) | "
150  << std::fixed << std::right << std::setw(9) << std::setprecision(5)
151  << m_tileExpertToolEmscale->doCalibCes(drawerIdx, channel, 1.) << " (CES) | "
152  << std::fixed << std::right << std::setw(9) << std::setprecision(5)
153  << m_tileExpertToolEmscale->doCalibEms(drawerIdx, channel, 1.) << " (EMS) | ";
154 
155  float chanCalMeV = m_tileExpertToolEmscale->channelCalib(drawerIdx, channel, adc, 1.
158 
159  msg(MSG::INFO) << std::fixed << std::right << std::setw(9) << std::setprecision(5)
160  << chanCalMeV << " (total)";
161 
162  //=== "Undo" online calibration only if this functionality is available
163  if (m_tileExpertToolEmscale->getOnlCacheUnit() != TileRawChannelUnit::Invalid) {
164  msg(MSG::INFO) << std::fixed << std::right << std::setw(9) << std::setprecision(5)
165  << m_tileExpertToolEmscale->channelCalib(drawerIdx, channel, adc, chanCalMeV
168  << " (onlMev->oflADC)";
169  }
170 
171  msg(MSG::INFO) << endmsg;
172 
173  } //end adc
174  } //end channel
175  } //end drawer
176  } //end ros
177 
178  //===================================================================
179  //=== Perform a CIS energy scan to test CIS LUT
180  //===================================================================
181  ATH_MSG_INFO( "Performing an energy scan to test CIS LUT" );
182 
183  unsigned int ros = 1;
184  unsigned int drawer = 0;
185  unsigned int channel = 0;
186  for (unsigned int adc = 0; adc < TileCalibUtils::MAX_GAIN; ++adc) {
187  for (int adcCounts = 0; adcCounts < m_i_ADCmax; ++adcCounts) {
188  double energy = static_cast<float>(adcCounts);
189  ATH_MSG_INFO( ros << "/" << drawer << "/" << channel << "/" << adc << " : "
190  << "ADC counts = " << adcCounts
191  << "\t---> " << m_tileExpertToolEmscale->doCalibCis(20, 0, adc, energy) );
192 
193  } //end adcCounts
194  } //end adc
195 
196 }

◆ printExpertEmscaleOnl()

void TileExpertDump::printExpertEmscaleOnl ( )
private

Definition at line 200 of file TileExpertDump.cxx.

200  {
201 
202  ATH_MSG_DEBUG( "In printExpertEmscaleOnl()" );
203 
204  for (unsigned int ros = 0; ros < TileCalibUtils::MAX_ROS; ++ros) {
205  unsigned int drawerMax = TileCalibUtils::getMaxDrawer(ros);
206  for (unsigned int drawer = 0; drawer < drawerMax; ++drawer) {
207  unsigned int drawerIdx = TileCalibUtils::getDrawerIdx(ros, drawer);
208  for (unsigned int channel = 0; channel < TileCalibUtils::MAX_CHAN; ++channel) {
209  for (unsigned int adc = 0; adc < TileCalibUtils::MAX_GAIN; ++adc) {
210 
211  msg(MSG::INFO) << ros << "/" << std::setw(2)
212  << drawer << "/" << std::setw(2)
213  << channel << "/"
214  << adc << " : "
215  << std::fixed << std::right << std::setw(9) << std::setprecision(5)
216  << m_tileExpertToolEmscale->doCalibCisOnl(drawerIdx, channel, adc, 1.) << " (ONL_CIS) | "
217  << std::fixed << std::right << std::setw(9) << std::setprecision(5)
218  << m_tileExpertToolEmscale->doCalibLasOnl(drawerIdx, channel, 1.) << " (ONL_LAS) | "
219  << std::fixed << std::right << std::setw(9) << std::setprecision(5)
220  << m_tileExpertToolEmscale->doCalibCesOnl(drawerIdx, channel, 1.) << " (ONL_CES) | "
221  << std::fixed << std::right << std::setw(9) << std::setprecision(5)
222  << m_tileExpertToolEmscale->doCalibEmsOnl(drawerIdx, channel, 1.) << " (ONL_EMS) | ";
223 
224  float chanCalMeV = m_tileExpertToolEmscale->channelCalibOnl(drawerIdx, channel, adc, 1.
226 
227  msg(MSG::INFO) << std::fixed << std::right << std::setw(9) << std::setprecision(5)
228  << chanCalMeV << " (total)";
229 
230  msg(MSG::INFO) << endmsg;
231 
232  } //end adc
233  } //end channel
234  } //end drawer
235  } //end ros
236 
237 }

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

◆ setEmExpertOptions()

StatusCode TileExpertDump::setEmExpertOptions ( )

Definition at line 85 of file TileExpertDump.cxx.

85  {
86 
101 
102  return StatusCode::SUCCESS;
103 }

◆ 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

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_emExpertOptions

TileEmscaleCalibOptions TileExpertDump::m_emExpertOptions
private

Definition at line 49 of file TileExpertDump.h.

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> TileExpertDump::m_eventInfoKey
private
Initial value:
{this,
"EventInfo", "EventInfo", "EventInfo key"}

Definition at line 69 of file TileExpertDump.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_i_ADCmax

int TileExpertDump::m_i_ADCmax = 0
private

Definition at line 81 of file TileExpertDump.h.

◆ m_infoName

std::string TileExpertDump::m_infoName
private

Definition at line 79 of file TileExpertDump.h.

◆ m_OflCes

bool TileExpertDump::m_OflCes
private

Definition at line 55 of file TileExpertDump.h.

◆ m_OflCisFitLin

bool TileExpertDump::m_OflCisFitLin
private

Definition at line 50 of file TileExpertDump.h.

◆ m_OflCisFitNln

bool TileExpertDump::m_OflCisFitNln
private

Definition at line 51 of file TileExpertDump.h.

◆ m_OflEms

bool TileExpertDump::m_OflEms
private

Definition at line 56 of file TileExpertDump.h.

◆ m_OflLasLin

bool TileExpertDump::m_OflLasLin
private

Definition at line 52 of file TileExpertDump.h.

◆ m_OflLasLinPisa

bool TileExpertDump::m_OflLasLinPisa
private

Definition at line 57 of file TileExpertDump.h.

◆ m_OflLasNln

bool TileExpertDump::m_OflLasNln
private

Definition at line 53 of file TileExpertDump.h.

◆ m_OflLasNlnPisa

bool TileExpertDump::m_OflLasNlnPisa
private

Definition at line 58 of file TileExpertDump.h.

◆ m_OflLasPart

bool TileExpertDump::m_OflLasPart
private

Definition at line 54 of file TileExpertDump.h.

◆ m_OflMinbias

bool TileExpertDump::m_OflMinbias
private

Definition at line 59 of file TileExpertDump.h.

◆ m_OnlCes

bool TileExpertDump::m_OnlCes
private

Definition at line 62 of file TileExpertDump.h.

◆ m_OnlCisLin

bool TileExpertDump::m_OnlCisLin
private

Definition at line 60 of file TileExpertDump.h.

◆ m_OnlEms

bool TileExpertDump::m_OnlEms
private

Definition at line 63 of file TileExpertDump.h.

◆ m_OnlLasLin

bool TileExpertDump::m_OnlLasLin
private

Definition at line 61 of file TileExpertDump.h.

◆ m_printExpertEmscale

bool TileExpertDump::m_printExpertEmscale
private

Definition at line 66 of file TileExpertDump.h.

◆ m_printExpertEmscaleOnl

bool TileExpertDump::m_printExpertEmscaleOnl
private

Definition at line 67 of file TileExpertDump.h.

◆ m_tileExpertToolEmscale

ToolHandle<TileExpertToolEmscale> TileExpertDump::m_tileExpertToolEmscale
private
Initial value:
{this,
"TileExpertToolEmscale","TileExpertToolEmscale", "Tile expert tool em scale"}

Definition at line 73 of file TileExpertDump.h.

◆ m_tileHWID

const TileHWID* TileExpertDump::m_tileHWID
private

Definition at line 76 of file TileExpertDump.h.

◆ m_tileInfo

const TileInfo* TileExpertDump::m_tileInfo
private

Definition at line 80 of file TileExpertDump.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:
TileExpertDump::m_OflCes
bool m_OflCes
Definition: TileExpertDump.h:55
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
TileExpertDump::m_OflLasPart
bool m_OflLasPart
Definition: TileExpertDump.h:54
TileExpertDump::m_OflCisFitLin
bool m_OflCisFitLin
Definition: TileExpertDump.h:50
TileExpertDump::m_OflLasLinPisa
bool m_OflLasLinPisa
Definition: TileExpertDump.h:57
TileCalibUtils::getMaxDrawer
static unsigned int getMaxDrawer(unsigned int ros)
Returns the maximal channel number for a given drawer.
Definition: TileCalibUtils.cxx:136
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
TileExpertDump::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: TileExpertDump.h:69
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
TileExpertDump::m_OflLasNln
bool m_OflLasNln
Definition: TileExpertDump.h:53
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TileEmscaleCalibOptions::OnlCes
@ OnlCes
Definition: TileEmscaleCalibOptions.h:40
TileEmscaleCalibOptions::OnlCisLin
@ OnlCisLin
Definition: TileEmscaleCalibOptions.h:38
TileEmscaleCalibOptions::OflLasLinPisa
@ OflLasLinPisa
Definition: TileEmscaleCalibOptions.h:35
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
TileExpertDump::m_tileExpertToolEmscale
ToolHandle< TileExpertToolEmscale > m_tileExpertToolEmscale
Definition: TileExpertDump.h:73
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TileEmscaleCalibOptions::OflCes
@ OflCes
Definition: TileEmscaleCalibOptions.h:33
TileEmscaleCalibOptions::setEmscaleCalibBit
void setEmscaleCalibBit(CalBitPos idx, bool turnOn)
Sets a given EM scale calibration option to the value given by turnOn.
Definition: TileEmscaleCalibOptions.cxx:11
TileExpertDump::m_OflCisFitNln
bool m_OflCisFitNln
Definition: TileExpertDump.h:51
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
TileEmscaleCalibOptions::OflEms
@ OflEms
Definition: TileEmscaleCalibOptions.h:34
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
TileEmscaleCalibOptions::OflLasLin
@ OflLasLin
Definition: TileEmscaleCalibOptions.h:30
TileExpertDump::m_OnlCes
bool m_OnlCes
Definition: TileExpertDump.h:62
TileExpertDump::m_OnlLasLin
bool m_OnlLasLin
Definition: TileExpertDump.h:61
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
TileEmscaleCalibOptions::dumpEmscaleCalibOptions
void dumpEmscaleCalibOptions(std::ostringstream &stream) const
Dumps the member EM scale calibration options in a human readable form.
Definition: TileEmscaleCalibOptions.cxx:58
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
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
TileExpertDump::setEmExpertOptions
StatusCode setEmExpertOptions()
Definition: TileExpertDump.cxx:85
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
TileEmscaleCalibOptions::OflCisFitNln
@ OflCisFitNln
Definition: TileEmscaleCalibOptions.h:29
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
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
TileRawChannelUnit::Invalid
@ Invalid
Definition: TileRawChannelUnit.h:26
TileRawChannelUnit::MegaElectronVolts
@ MegaElectronVolts
Definition: TileRawChannelUnit.h:20
TileExpertDump::m_OflMinbias
bool m_OflMinbias
Definition: TileExpertDump.h:59
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TileExpertDump::m_i_ADCmax
int m_i_ADCmax
Definition: TileExpertDump.h:81
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
TileExpertDump::m_emExpertOptions
TileEmscaleCalibOptions m_emExpertOptions
Definition: TileExpertDump.h:49
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TileExpertDump::m_printExpertEmscaleOnl
bool m_printExpertEmscaleOnl
Definition: TileExpertDump.h:67
TileEmscaleCalibOptions::OflMinbias
@ OflMinbias
Definition: TileEmscaleCalibOptions.h:37
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
TileCalibUtils::MAX_ROS
static const unsigned int MAX_ROS
Number of ROSs
Definition: TileCalibUtils.h:138
TileExpertDump::m_OnlCisLin
bool m_OnlCisLin
Definition: TileExpertDump.h:60
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
TileEmscaleCalibOptions::OnlLasLin
@ OnlLasLin
Definition: TileEmscaleCalibOptions.h:39
TileExpertDump::m_OflEms
bool m_OflEms
Definition: TileExpertDump.h:56
TileExpertDump::printExpertEmscaleOnl
void printExpertEmscaleOnl()
Definition: TileExpertDump.cxx:200
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
TileEmscaleCalibOptions::OnlEms
@ OnlEms
Definition: TileEmscaleCalibOptions.h:41
TileEmscaleCalibOptions::OflCisFitLin
@ OflCisFitLin
Definition: TileEmscaleCalibOptions.h:28
TileExpertDump::m_OflLasNlnPisa
bool m_OflLasNlnPisa
Definition: TileExpertDump.h:58
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TileExpertDump::m_printExpertEmscale
bool m_printExpertEmscale
Definition: TileExpertDump.h:66
TileExpertDump::m_OflLasLin
bool m_OflLasLin
Definition: TileExpertDump.h:52
TileExpertDump::m_tileInfo
const TileInfo * m_tileInfo
Definition: TileExpertDump.h:80
TileEmscaleCalibOptions::OflLasNlnPisa
@ OflLasNlnPisa
Definition: TileEmscaleCalibOptions.h:36
TileEmscaleCalibOptions::OflLasNln
@ OflLasNln
Definition: TileEmscaleCalibOptions.h:31
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
TileExpertDump::m_OnlEms
bool m_OnlEms
Definition: TileExpertDump.h:63
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
TileEmscaleCalibOptions::getEmscaleCalibOptions
uint32_t getEmscaleCalibOptions() const
Returns the complete bitmap with all EM scale calibration options.
Definition: TileEmscaleCalibOptions.h:80
TileCalibUtils::getDrawerIdx
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
Definition: TileCalibUtils.cxx:60
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
TileExpertDump::printExpertEmscale
void printExpertEmscale()
Definition: TileExpertDump.cxx:131
TileCalibUtils::MAX_CHAN
static const unsigned int MAX_CHAN
Number of channels in drawer.
Definition: TileCalibUtils.h:141
TileExpertDump::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileExpertDump.h:76
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TileInfo::ADCmax
int ADCmax() const
Returns the maximum ADC output (10 bits --> 1023)
Definition: TileInfo.h:71
TileRawChannelUnit::ADCcounts
@ ADCcounts
Definition: TileRawChannelUnit.h:17
fitman.k
k
Definition: fitman.py:528
TileRawChannelUnit::OnlineMegaElectronVolts
@ OnlineMegaElectronVolts
Definition: TileRawChannelUnit.h:24
TileEmscaleCalibOptions::OflLasPart
@ OflLasPart
Definition: TileEmscaleCalibOptions.h:32
TileExpertDump::m_infoName
std::string m_infoName
Definition: TileExpertDump.h:79
ServiceHandle< ICondSvc >
TileCalibUtils::MAX_GAIN
static const unsigned int MAX_GAIN
Number of gains per channel
Definition: TileCalibUtils.h:142