|
ATLAS Offline Software
|
Algorithn to dump out calibration constants from the TileInfoSvc.
More...
#include <TileExpertDump.h>
|
| 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 |
|
Algorithn to dump out calibration constants from the TileInfoSvc.
Definition at line 36 of file TileExpertDump.h.
◆ StoreGateSvc_t
◆ TileExpertDump()
TileExpertDump::TileExpertDump |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TileExpertDump()
TileExpertDump::~TileExpertDump |
( |
| ) |
|
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TileExpertDump::execute |
( |
| ) |
|
Definition at line 108 of file TileExpertDump.cxx.
116 << eventInfo->runNumber() <<
", "
117 << eventInfo->eventNumber() <<
", "
118 << eventInfo->lumiBlock() <<
": "
119 << eventInfo->timeStamp() <<
"]" );
126 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode TileExpertDump::finalize |
( |
| ) |
|
Definition at line 241 of file TileExpertDump.cxx.
249 std::ostringstream sout;
254 return StatusCode::SUCCESS;
◆ initialize()
StatusCode TileExpertDump::initialize |
( |
| ) |
|
◆ inputHandles()
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]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
142 msg(MSG::INFO) <<
ros <<
"/" << std::setw(2)
143 <<
drawer <<
"/" << std::setw(2)
146 << std::fixed << std::right << std::setw(9) << std::setprecision(5)
148 << std::fixed << std::right << std::setw(9) << std::setprecision(5)
150 << std::fixed << std::right << std::setw(9) << std::setprecision(5)
152 << std::fixed << std::right << std::setw(9) << std::setprecision(5)
159 msg(MSG::INFO) << std::fixed << std::right << std::setw(9) << std::setprecision(5)
160 << chanCalMeV <<
" (total)";
164 msg(MSG::INFO) << std::fixed << std::right << std::setw(9) << std::setprecision(5)
168 <<
" (onlMev->oflADC)";
181 ATH_MSG_INFO(
"Performing an energy scan to test CIS LUT" );
183 unsigned int ros = 1;
187 for (
int adcCounts = 0; adcCounts <
m_i_ADCmax; ++adcCounts) {
188 double energy =
static_cast<float>(adcCounts);
190 <<
"ADC counts = " << adcCounts
◆ printExpertEmscaleOnl()
void TileExpertDump::printExpertEmscaleOnl |
( |
| ) |
|
|
private |
Definition at line 200 of file TileExpertDump.cxx.
211 msg(MSG::INFO) <<
ros <<
"/" << std::setw(2)
212 <<
drawer <<
"/" << std::setw(2)
215 << std::fixed << std::right << std::setw(9) << std::setprecision(5)
217 << std::fixed << std::right << std::setw(9) << std::setprecision(5)
219 << std::fixed << std::right << std::setw(9) << std::setprecision(5)
221 << std::fixed << std::right << std::setw(9) << std::setprecision(5)
227 msg(MSG::INFO) << std::fixed << std::right << std::setw(9) << std::setprecision(5)
228 << chanCalMeV <<
" (total)";
◆ renounce()
◆ renounceArray()
◆ setEmExpertOptions()
StatusCode TileExpertDump::setEmExpertOptions |
( |
| ) |
|
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_emExpertOptions
◆ m_eventInfoKey
Initial value:{this,
"EventInfo", "EventInfo", "EventInfo key"}
Definition at line 69 of file TileExpertDump.h.
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_i_ADCmax
int TileExpertDump::m_i_ADCmax = 0 |
|
private |
◆ m_infoName
std::string TileExpertDump::m_infoName |
|
private |
◆ m_OflCes
bool TileExpertDump::m_OflCes |
|
private |
◆ m_OflCisFitLin
bool TileExpertDump::m_OflCisFitLin |
|
private |
◆ m_OflCisFitNln
bool TileExpertDump::m_OflCisFitNln |
|
private |
◆ m_OflEms
bool TileExpertDump::m_OflEms |
|
private |
◆ m_OflLasLin
bool TileExpertDump::m_OflLasLin |
|
private |
◆ m_OflLasLinPisa
bool TileExpertDump::m_OflLasLinPisa |
|
private |
◆ m_OflLasNln
bool TileExpertDump::m_OflLasNln |
|
private |
◆ m_OflLasNlnPisa
bool TileExpertDump::m_OflLasNlnPisa |
|
private |
◆ m_OflLasPart
bool TileExpertDump::m_OflLasPart |
|
private |
◆ m_OflMinbias
bool TileExpertDump::m_OflMinbias |
|
private |
◆ m_OnlCes
bool TileExpertDump::m_OnlCes |
|
private |
◆ m_OnlCisLin
bool TileExpertDump::m_OnlCisLin |
|
private |
◆ m_OnlEms
bool TileExpertDump::m_OnlEms |
|
private |
◆ m_OnlLasLin
bool TileExpertDump::m_OnlLasLin |
|
private |
◆ m_printExpertEmscale
bool TileExpertDump::m_printExpertEmscale |
|
private |
◆ m_printExpertEmscaleOnl
bool TileExpertDump::m_printExpertEmscaleOnl |
|
private |
◆ m_tileExpertToolEmscale
Initial value:{this,
"TileExpertToolEmscale","TileExpertToolEmscale", "Tile expert tool em scale"}
Definition at line 73 of file TileExpertDump.h.
◆ m_tileHWID
◆ m_tileInfo
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
static unsigned int getMaxDrawer(unsigned int ros)
Returns the maximal channel number for a given drawer.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
ToolHandle< TileExpertToolEmscale > m_tileExpertToolEmscale
void setEmscaleCalibBit(CalBitPos idx, bool turnOn)
Sets a given EM scale calibration option to the value given by turnOn.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
void dumpEmscaleCalibOptions(std::ostringstream &stream) const
Dumps the member EM scale calibration options in a human readable form.
virtual StatusCode sysInitialize() override
Override sysInitialize.
StatusCode setEmExpertOptions()
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
TileEmscaleCalibOptions m_emExpertOptions
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
bool m_printExpertEmscaleOnl
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
static const unsigned int MAX_ROS
Number of ROSs
void printExpertEmscaleOnl()
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
bool m_printExpertEmscale
const TileInfo * m_tileInfo
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
uint32_t getEmscaleCalibOptions() const
Returns the complete bitmap with all EM scale calibration options.
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
void printExpertEmscale()
static const unsigned int MAX_CHAN
Number of channels in drawer.
const TileHWID * m_tileHWID
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
int ADCmax() const
Returns the maximum ADC output (10 bits --> 1023)
@ OnlineMegaElectronVolts
static const unsigned int MAX_GAIN
Number of gains per channel