|
ATLAS Offline Software
|
#include <OutputConditionsAlg.h>
|
| OutputConditionsAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~OutputConditionsAlg () |
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
StatusCode | finalize () |
|
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 |
|
|
ServiceHandle< IClassIDSvc > | p_clidsvc {this,"ClassIDSvc","ClassIDSvc"} |
|
ServiceHandle< IIOVRegistrationSvc > | p_regsvc {this, "IOVRegistrationSvc","IOVRegistrationSvc"} |
|
IAthenaOutputStreamTool_t | m_streamer |
|
Gaudi::Property< std::vector< std::string > > | m_objectList {this,"ObjectList",{},"List of object to be written","OrderedSet<std::string>"} |
|
Gaudi::Property< std::string > | m_streamName {this,"StreamName","ConditionsAlgStream"} |
|
Gaudi::Property< bool > | m_par_writeIOV {this,"WriteIOV",true} |
|
Gaudi::Property< unsigned int > | m_par_run1 {this,"Run1",IOVTime::MINRUN,"IOV start (run-number)"} |
|
Gaudi::Property< unsigned int > | m_par_lumib1 {this,"LB1",IOVTime::MINEVENT,"IOV start (LB-number)"} |
|
Gaudi::Property< unsigned int > | m_par_run2 {this,"Run2",IOVTime::MAXRUN,"IOV end (run-number)"} |
|
Gaudi::Property< unsigned int > | m_par_lumib2 {this,"LB2",IOVTime::MAXEVENT,"IOV end (LB-number)"} |
|
UnsignedLongProperty | m_par_time1 {this,"Time1",IOVTime::MINTIMESTAMP,"IOV start (timestamp)"} |
|
UnsignedLongProperty | m_par_time2 {this,"Time2",IOVTime::MAXEVENT,"IOV end (timestamp)"} |
|
Gaudi::Property< bool > | m_par_timestamp {this,"UseTime",false,"IOV in second or Run/LB"} |
|
Gaudi::Property< std::vector< std::string > > | m_par_iovtags {this,"IOVTagList",{},"List of Tags to be written","OrderedSet<std::string>"} |
|
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 |
|
Definition at line 23 of file OutputConditionsAlg.h.
◆ IAthenaOutputStreamTool_t
◆ StoreGateSvc_t
◆ OutputConditionsAlg()
OutputConditionsAlg::OutputConditionsAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~OutputConditionsAlg()
OutputConditionsAlg::~OutputConditionsAlg |
( |
| ) |
|
◆ 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 OutputConditionsAlg::execute |
( |
| ) |
|
◆ 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 OutputConditionsAlg::finalize |
( |
| ) |
|
Definition at line 58 of file OutputConditionsAlg.cxx.
59 ATH_MSG_INFO (
"Finalize: preparing to write conditions objects ");
64 return( StatusCode::FAILURE);
67 std::vector<std::string>
types;
68 std::vector<std::string>
keys;
69 std::vector<std::string>
folders;
70 std::vector<std::string>
tags;
71 for (
unsigned int iobj=0;iobj<
m_objectList.size();++iobj) {
73 std::string::size_type ihash=
m_objectList[iobj].find_first_of(
"#");
74 if (ihash==std::string::npos) {
79 if (StatusCode::SUCCESS==
p_clidsvc->getIDOfTypeName(
103 std::string::size_type ihash2=
m_objectList[iobj].find_first_of(
"#",ihash+1);
104 if (ihash2==std::string::npos) {
121 int nObjects=
types.size();
124 " objects to write out:");
126 if (nObjects==0)
return StatusCode::SUCCESS;
127 for (
int i=0;
i<nObjects;
i++) {
134 if (StatusCode::SUCCESS==
p_clidsvc->getIDOfTypeName(types[
i],clid))
137 ATH_MSG_ERROR (
"Could not find proxy for object with key " <<
138 keys[
i] <<
" - abort write");
139 return StatusCode::FAILURE;
145 if (
sc.isFailure()) {
147 return StatusCode::FAILURE;
151 if (
sc.isFailure()) {
153 return StatusCode::FAILURE;
155 ATH_MSG_INFO (
"Written " << nObjects <<
" objects to output stream");
158 msg() << MSG::INFO <<
159 "Register objects in IOV database, interval of validity ";
161 msg() <<
"[time] from [" <<
164 msg() <<
"[run,LB] from [" <<
169 for (
int iobj=0;iobj<nObjects;++iobj) {
170 msg() << MSG::INFO <<
"Register object " <<
types[iobj] <<
"#" <<
171 keys[iobj] <<
" in IOV database folder " <<
folders[iobj] <<
" ";
172 if (
tags[iobj]==
"") {
173 msg() << MSG::INFO <<
"without tagging" <<
endmsg;
184 if (
sc==StatusCode::SUCCESS) {
190 ATH_MSG_INFO (
"Registered " << nreg <<
" objects in IOV database");
192 ATH_MSG_INFO (
"Objects NOT registered in IOV database");
194 return StatusCode::SUCCESS;
◆ initialize()
StatusCode OutputConditionsAlg::initialize |
( |
| ) |
|
Definition at line 26 of file OutputConditionsAlg.cxx.
30 if (StatusCode::SUCCESS!=
p_clidsvc.retrieve()) {
32 return StatusCode::FAILURE;
36 if (StatusCode::SUCCESS!=
p_regsvc.retrieve()) {
38 return StatusCode::FAILURE;
45 ATH_MSG_ERROR (
"Unable to find AthenaOutputStreamTool with name " <<
47 return StatusCode::FAILURE;
49 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.
◆ 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.
◆ timeToNano()
uint64_t OutputConditionsAlg::timeToNano |
( |
unsigned long int |
timesec | ) |
const |
|
private |
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_objectList
Gaudi::Property<std::vector<std::string> > OutputConditionsAlg::m_objectList {this,"ObjectList",{},"List of object to be written","OrderedSet<std::string>"} |
|
private |
◆ m_par_iovtags
Gaudi::Property<std::vector<std::string> > OutputConditionsAlg::m_par_iovtags {this,"IOVTagList",{},"List of Tags to be written","OrderedSet<std::string>"} |
|
private |
◆ m_par_lumib1
Gaudi::Property<unsigned int> OutputConditionsAlg::m_par_lumib1 {this,"LB1",IOVTime::MINEVENT,"IOV start (LB-number)"} |
|
private |
◆ m_par_lumib2
Gaudi::Property<unsigned int> OutputConditionsAlg::m_par_lumib2 {this,"LB2",IOVTime::MAXEVENT,"IOV end (LB-number)"} |
|
private |
◆ m_par_run1
Gaudi::Property<unsigned int> OutputConditionsAlg::m_par_run1 {this,"Run1",IOVTime::MINRUN,"IOV start (run-number)"} |
|
private |
◆ m_par_run2
Gaudi::Property<unsigned int> OutputConditionsAlg::m_par_run2 {this,"Run2",IOVTime::MAXRUN,"IOV end (run-number)"} |
|
private |
◆ m_par_time1
UnsignedLongProperty OutputConditionsAlg::m_par_time1 {this,"Time1",IOVTime::MINTIMESTAMP,"IOV start (timestamp)"} |
|
private |
◆ m_par_time2
UnsignedLongProperty OutputConditionsAlg::m_par_time2 {this,"Time2",IOVTime::MAXEVENT,"IOV end (timestamp)"} |
|
private |
◆ m_par_timestamp
Gaudi::Property<bool> OutputConditionsAlg::m_par_timestamp {this,"UseTime",false,"IOV in second or Run/LB"} |
|
private |
◆ m_par_writeIOV
Gaudi::Property<bool> OutputConditionsAlg::m_par_writeIOV {this,"WriteIOV",true} |
|
private |
◆ m_streamer
◆ m_streamName
Gaudi::Property<std::string> OutputConditionsAlg::m_streamName {this,"StreamName","ConditionsAlgStream"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ p_clidsvc
◆ p_regsvc
The documentation for this class was generated from the following files:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Gaudi::Property< unsigned int > m_par_lumib2
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
ServiceHandle< IIOVRegistrationSvc > p_regsvc
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
IAthenaOutputStreamTool_t m_streamer
std::vector< std::string > tags
virtual StatusCode sysInitialize() override
Override sysInitialize.
ServiceHandle< IClassIDSvc > p_clidsvc
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::vector< std::string > > m_par_iovtags
UnsignedLongProperty m_par_time1
static constexpr uint64_t MAXTIMESTAMP
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
uint32_t CLID
The Class ID type.
virtual void renounce()=0
static constexpr uint32_t MAXEVENT
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Gaudi::Property< bool > m_par_writeIOV
uint64_t timeToNano(unsigned long int timesec) const
Gaudi::Property< bool > m_par_timestamp
ToolHandle< IAthenaOutputStreamTool > IAthenaOutputStreamTool_t
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
UnsignedLongProperty m_par_time2
Gaudi::Property< std::string > m_streamName
Gaudi::Property< unsigned int > m_par_run1
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
Gaudi::Property< unsigned int > m_par_run2
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Gaudi::Property< unsigned int > m_par_lumib1
Gaudi::Property< std::vector< std::string > > m_objectList