|
ATLAS Offline Software
|
#include <VP1Alg.h>
|
| VP1Alg (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~VP1Alg () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
void | handle (const Incident &inc) override |
|
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 |
|
Definition at line 31 of file VP1Alg.h.
◆ StoreGateSvc_t
◆ VP1Alg()
VP1Alg::VP1Alg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~VP1Alg()
◆ 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 VP1Alg::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 122 of file VP1Alg.cxx.
132 return StatusCode::FAILURE;
141 unsigned int trigType = 0;
160 return StatusCode::SUCCESS;
162 msg(MSG::INFO) <<
" Ending application gracefully." <<
endmsg;
163 return StatusCode::FAILURE;
165 return StatusCode::SUCCESS;
168 msg(
MSG::DEBUG) <<
" Unable to retrieve EventInfo from StoreGate... using dummy values" <<
endmsg;
171 return StatusCode::SUCCESS;
173 msg(MSG::INFO) <<
" Ending application gracefully." <<
endmsg;
174 return StatusCode::FAILURE;
177 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 VP1Alg::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 182 of file VP1Alg.cxx.
184 msg(MSG::INFO) <<
" in finalize() " <<
endmsg;
187 return StatusCode::FAILURE;
193 return StatusCode::SUCCESS;
◆ handle()
void VP1Alg::handle |
( |
const Incident & |
inc | ) |
|
|
override |
Definition at line 197 of file VP1Alg.cxx.
199 msg(MSG::INFO) <<
"Handling incident '" << inc.type() <<
"'" <<
endmsg;
202 msg(MSG::INFO) <<
"Aborting due to null VP1Gui pointer." <<
endmsg;
206 const FileIncident* fileInc =
dynamic_cast<const FileIncident*
>(&inc);
208 msg(MSG::WARNING) <<
" Unable to cast to file incident" <<
endmsg;
218 if(!
sc.isSuccess() || 0 == pEvtSelector) {
219 msg(MSG::WARNING) <<
"Could not find EventSelector" <<
endmsg;
225 IProperty* propertyServer =
dynamic_cast<IProperty*
>(pEvtSelector.operator->());
226 if (!propertyServer) {
227 msg(MSG::WARNING) <<
"Could not get propertyServer" <<
endmsg;
231 std::vector<std::string> vect;
235 if(!
sc.isSuccess()) {
236 msg(MSG::INFO) <<
"Could not get InputCollections property" <<
endmsg;
243 if(
s != fileInc->fileName())
250 if (strNewFileName.empty())
253 msg(MSG::WARNING) <<
" File requested by VP1 does not exists or is not readable: "<<strNewFileName<<
". Ending." <<
endmsg;
257 vect.push_back(strNewFileName);
258 msg(MSG::INFO) <<
" Setting next event file: " << strNewFileName<<
endmsg;
262 for(
unsigned i=0;
i<strNewFileNames.size(); ++
i) {
263 const std::string& strNewFileName = strNewFileNames[
i];
264 if (strNewFileName.empty())
267 msg(MSG::WARNING) <<
" File requested by VP1 does not exists or is not readable: " << strNewFileName <<
endmsg;
270 vect.push_back(strNewFileName);
271 msg(MSG::INFO) <<
" Setting next event file: " << strNewFileName<<
endmsg;
275 StringArrayProperty newInputCollections(
"InputCollections", vect);
277 if(propertyServer->setProperty(newInputCollections)!=StatusCode::SUCCESS)
278 msg(MSG::WARNING) <<
"Could not set new InputCollections property" <<
endmsg;
◆ initialize()
StatusCode VP1Alg::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 82 of file VP1Alg.cxx.
84 msg(MSG::INFO) <<
" in initialize() " <<
endmsg;
96 SmartIF<IIncidentSvc> incsvc{service(
"IncidentSvc")};
99 std::string endfilekey(
"EndTagFile");
100 incsvc->addListener(
this, endfilekey, 0);
116 return StatusCode::FAILURE;
118 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.
◆ updateVHKA()
◆ m_atlasRelease
Gaudi::Property<std::string> VP1Alg::m_atlasRelease {this, "AtlasRelease", "", "The current, in use Atlas release"} |
|
private |
◆ m_cruiseInitialMode
Gaudi::Property<std::string> VP1Alg::m_cruiseInitialMode |
|
private |
Initial value:{this, "CruiseInitialMode", "NONE",
"Cruise mode -- Initial Cruise mode: 'NONE', 'EVENT', 'TAB', 'BOTH'. Default: 'NONE'"}
Definition at line 61 of file VP1Alg.h.
◆ m_cruiseInitialUpdateSeconds
Gaudi::Property<unsigned> VP1Alg::m_cruiseInitialUpdateSeconds {this, "CruiseInitialSeconds", 10, "Cruise mode -- Initial Cruise update time, in seconds. Default: 10"} |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_initialvp1files
Gaudi::Property<std::vector<std::string> > VP1Alg::m_initialvp1files |
|
private |
Initial value:{
this, "InitialInputVP1Files", {}, "a vector of input VP1 files"}
Definition at line 65 of file VP1Alg.h.
◆ m_mfAvailableLocalInputDirectories
Gaudi::Property<std::vector<std::string> > VP1Alg::m_mfAvailableLocalInputDirectories |
|
private |
Initial value:{this, "MFAvailableLocalInputDirectories", {},
"MultipleFiles mode -- Will only be used if sourcedir is set and local"}
Definition at line 58 of file VP1Alg.h.
◆ m_mfLimit
Gaudi::Property<int> VP1Alg::m_mfLimit |
|
private |
Initial value:{this, "MFNumFileLimit", 10,
"MultipleFiles mode -- Maximum number of local copies to keep"}
Definition at line 52 of file VP1Alg.h.
◆ m_mfLocalCopyDir
Gaudi::Property<std::string> VP1Alg::m_mfLocalCopyDir |
|
private |
Initial value:{this, "MFLocalCopyDir", ".",
"MultipleFiles mode -- Path of the directory to keep local copies of processed events. Default '.' (the local run folder)"}
Definition at line 56 of file VP1Alg.h.
◆ m_mfOn
Gaudi::Property<bool> VP1Alg::m_mfOn |
|
private |
Initial value:{this, "MultipleFilesON", false,
"Flag to turn the 'Multiple Files' mode ON/OFF. Default OFF"}
Definition at line 50 of file VP1Alg.h.
◆ m_mfSourceDir
Gaudi::Property<std::string> VP1Alg::m_mfSourceDir |
|
private |
Initial value:{this, "MFSourceDir", "",
"MultipleFiles mode -- Path of the source directory, where input data files are stored and from which events are taken from"}
Definition at line 54 of file VP1Alg.h.
◆ m_noGui
Gaudi::Property<bool> VP1Alg::m_noGui |
|
private |
Initial value:{this, "noGUI", false,
"Flag to turn OFF the GUI. Default: FALSE (i.e., GUI is ON)"}
Definition at line 68 of file VP1Alg.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_vp1gui
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
static bool fileExistsAndReadable(const std::string &)
uint64_t eventNumber() const
The current event's event number.
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Gaudi::Property< std::vector< std::string > > m_initialvp1files
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
bool executeNewEvent(const int &run, const uint64_t &event, const unsigned &triggerType=0, const unsigned &time=0)
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< std::string > m_mfSourceDir
Gaudi::Property< std::string > m_cruiseInitialMode
Gaudi::Property< bool > m_noGui
Gaudi::Property< bool > m_mfOn
uint32_t runNumber() const
The current event's run number.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
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.
Gaudi::Property< std::vector< std::string > > m_mfAvailableLocalInputDirectories
bool hasBeenInitialised()
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< std::string > userRequestedFiles()
Class describing the basic event information.
DataObjIDColl m_extendedExtraObjects
def time(flags, cells_name, *args, **kw)
#define ATH_MSG_WARNING(x)
Gaudi::Property< int > m_mfLimit
uint16_t level1TriggerType() const
The Level-1 trigger type.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
bool argumentsAreValid() const
AthAlgorithm()
Default constructor:
std::string nextRequestedEventFile() const
Gaudi::Property< std::string > m_mfLocalCopyDir
Gaudi::Property< unsigned > m_cruiseInitialUpdateSeconds
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>