|
ATLAS Offline Software
|
#include <CreateLumiBlockCollectionFromFile.h>
|
| CreateLumiBlockCollectionFromFile (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual void | handle (const Incident &incident) override |
| Incident service handle listening for MetaDataStop. More...
|
|
virtual StatusCode | io_reinit () override |
| Callback method to reinitialize the internal state of the component for I/O purposes (e.g. upon fork(2) ) More...
|
|
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 |
|
◆ inOut
◆ RLBMap
◆ StoreGateSvc_t
◆ CreateLumiBlockCollectionFromFile()
CreateLumiBlockCollectionFromFile::CreateLumiBlockCollectionFromFile |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ 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 CreateLumiBlockCollectionFromFile::execute |
( |
| ) |
|
|
overridevirtual |
◆ 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();
◆ fillLumiBlockCollection()
StatusCode CreateLumiBlockCollectionFromFile::fillLumiBlockCollection |
( |
| ) |
|
|
private |
Fill metaDataStore and ntuples.
Definition at line 112 of file CreateLumiBlockCollectionFromFile.cxx.
117 std::unique_ptr<xAOD::LumiBlockRangeContainer> piovComplete = std::make_unique<xAOD::LumiBlockRangeContainer>();
118 std::unique_ptr<xAOD::LumiBlockRangeAuxContainer> piovCompleteAux = std::make_unique<xAOD::LumiBlockRangeAuxContainer>();
119 piovComplete->setStore( piovCompleteAux.get() );
121 std::unique_ptr<xAOD::LumiBlockRangeContainer> piovUnfinished = std::make_unique<xAOD::LumiBlockRangeContainer>();
122 std::unique_ptr<xAOD::LumiBlockRangeAuxContainer> piovUnfinishedAux = std::make_unique<xAOD::LumiBlockRangeAuxContainer>();
123 piovUnfinished->setStore( piovUnfinishedAux.get() );
125 std::unique_ptr<xAOD::LumiBlockRangeContainer> piovSuspect = std::make_unique<xAOD::LumiBlockRangeContainer>();
126 std::unique_ptr<xAOD::LumiBlockRangeAuxContainer> piovSuspectAux = std::make_unique<xAOD::LumiBlockRangeAuxContainer>();
127 piovSuspect->setStore( piovSuspectAux.get() );
138 else if(
p.second.second >
p.second.first) {
152 if(!piovComplete->
empty()) {
156 << lbr->startRunNumber() <<
"," << lbr->startLumiBlockNumber()
158 << lbr->startRunNumber() <<
"," << lbr->startLumiBlockNumber()
159 <<
") eventsSeen = " << lbr->eventsSeen()
160 <<
", eventsExpected = " << lbr->eventsExpected()
165 if(!piovUnfinished->
empty()) {
166 ATH_MSG_INFO(
"Number of Unfinished LumiBlocks:" << piovUnfinished->
size() );
169 << lbr->startRunNumber() <<
"," << lbr->startLumiBlockNumber()
171 << lbr->startRunNumber() <<
"," << lbr->startLumiBlockNumber()
172 <<
") eventsSeen = " << lbr->eventsSeen()
173 <<
", eventsExpected = " << lbr->eventsExpected()
178 if(!piovSuspect->
empty()) {
182 << lbr->startRunNumber() <<
"," << lbr->startLumiBlockNumber()
184 << lbr->startRunNumber() <<
"," << lbr->startLumiBlockNumber()
185 <<
") eventsSeen = " << lbr->eventsSeen()
186 <<
", eventsExpected = " << lbr->eventsExpected()
193 if(!piovComplete->
empty()) {
198 if(!piovUnfinished->
empty()) {
203 if(!piovSuspect->
empty()) {
211 return StatusCode::SUCCESS;
◆ finalize()
StatusCode CreateLumiBlockCollectionFromFile::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getNEventsFromDb()
uint32_t CreateLumiBlockCollectionFromFile::getNEventsFromDb |
( |
| ) |
|
|
private |
Definition at line 231 of file CreateLumiBlockCollectionFromFile.cxx.
242 for (;
it != last; ++
it) {
243 if (attrListColl->name_size()>0) {
245 int chan = (*it).first;
246 std::string theName = nitr->second;
264 if (attrList[
"NEventRec"].isNull()) {
265 ATH_MSG_INFO(
" NEventRec not in database. Set it to 0 " );
269 cool::Int32
nev = attrList[
"NEventRec"].data<cool::Int32>();
◆ handle()
void CreateLumiBlockCollectionFromFile::handle |
( |
const Incident & |
incident | ) |
|
|
overridevirtual |
◆ initialize()
StatusCode CreateLumiBlockCollectionFromFile::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 28 of file CreateLumiBlockCollectionFromFile.cxx.
41 incSvc->addListener(
this,
"MetaDataStop", 50);
46 if (!ioMgr->io_register(
this).isSuccess()) {
47 ATH_MSG_FATAL(
"Could not register myself with the IoComponentMgr");
48 return(StatusCode::FAILURE);
57 return StatusCode::SUCCESS;
◆ 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.
◆ io_reinit()
StatusCode CreateLumiBlockCollectionFromFile::io_reinit |
( |
| ) |
|
|
overridevirtual |
Callback method to reinitialize the internal state of the component for I/O purposes (e.g. upon fork(2)
)
Definition at line 277 of file CreateLumiBlockCollectionFromFile.cxx.
283 return StatusCode::SUCCESS;
◆ 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.
◆ renounce()
◆ renounceArray()
◆ 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_checkEventsExpected
Gaudi::Property<bool> CreateLumiBlockCollectionFromFile::m_checkEventsExpected |
|
private |
◆ m_detStore
◆ m_eventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_lastIOVTime
IOVTime CreateLumiBlockCollectionFromFile::m_lastIOVTime |
|
private |
◆ m_lastLumiBlock
uint32_t CreateLumiBlockCollectionFromFile::m_lastLumiBlock |
|
private |
◆ m_lastRun
uint32_t CreateLumiBlockCollectionFromFile::m_lastRun |
|
private |
◆ m_LBColl_name
Gaudi::Property<std::string> CreateLumiBlockCollectionFromFile::m_LBColl_name |
|
private |
◆ m_LumiBlockInfo
RLBMap CreateLumiBlockCollectionFromFile::m_LumiBlockInfo |
|
private |
◆ m_metaStore
◆ m_rchk
◆ m_streamName
Gaudi::Property<std::string> CreateLumiBlockCollectionFromFile::m_streamName |
|
private |
◆ m_suspectLBColl_name
Gaudi::Property<std::string> CreateLumiBlockCollectionFromFile::m_suspectLBColl_name |
|
private |
◆ m_unfinishedLBColl_name
Gaudi::Property<std::string> CreateLumiBlockCollectionFromFile::m_unfinishedLBColl_name |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
void setStopLumiBlockNumber(uint32_t value)
Set the luminosity block of the stop time of the range.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void setStopRunNumber(uint32_t value)
Set the run number of the stop time of the range.
Gaudi::Property< std::string > m_LBColl_name
void setStartRunNumber(uint32_t value)
Set the run number of the start time of the range.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< bool > m_checkEventsExpected
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
Gaudi::Property< std::string > m_suspectLBColl_name
virtual void setOwner(IDataHandleHolder *o)=0
LumiBlockRange_v1 LumiBlockRange
Declare the latest version of the class.
ChanNameMap::const_iterator name_const_iterator
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
void setEventsExpected(uint32_t value)
Set the number of expected events in this luminosity block range.
uint32_t getNEventsFromDb()
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
void setEventsSeen(uint32_t value)
Set the number of seen/processed events in this luminosity block range.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::pair< uint32_t, uint32_t > inOut
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
StatusCode fillLumiBlockCollection()
Fill metaDataStore and ntuples.
DataObjIDColl m_extendedExtraObjects
Class describing a luminosity block range.
#define ATH_MSG_WARNING(x)
ChanAttrListMap::const_iterator const_iterator
Gaudi::Property< std::string > m_unfinishedLBColl_name
ServiceHandle< StoreGateSvc > m_metaStore
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
SG::ReadCondHandleKey< CondAttrListCollection > m_rchk
AthAlgorithm()
Default constructor:
Gaudi::Property< std::string > m_streamName
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
void setStartLumiBlockNumber(uint32_t value)
Set the luminosity block of the start time of the range.
bool empty() const noexcept
Returns true if the collection is empty.
bool match(std::string s1, std::string s2)
match the individual directories of two strings