|
ATLAS Offline Software
|
#include <AthenaPoolTestDataReader.h>
|
| AthenaPoolTestDataReader (const std::string &name, ISvcLocator *pSvcLocator) |
| Algorithm constructor. More...
|
|
| ~AthenaPoolTestDataReader () |
| Algorithm destructor. More...
|
|
virtual StatusCode | initialize () |
| Algorithm initialize at begin of job. More...
|
|
virtual StatusCode | execute () |
| Algorithm execute once per event. More...
|
|
virtual StatusCode | finalize () |
| Algorithm finalize at end of job. 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 |
|
Definition at line 32 of file AthenaPoolTestDataReader.h.
◆ StoreGateSvc_t
◆ AthenaPoolTestDataReader()
AthenaPoolTestDataReader::AthenaPoolTestDataReader |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~AthenaPoolTestDataReader()
AthenaPoolTestDataReader::~AthenaPoolTestDataReader |
( |
| ) |
|
◆ 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 AthenaPoolTestDataReader::execute |
( |
| ) |
|
|
virtual |
Algorithm execute once per event.
Definition at line 51 of file AthenaPoolTestDataReader.cxx.
75 test1 = elt->printWhoYouAre();
95 test1 = elt->printWhoYouAre();
116 test1 = elt->printWhoYouAre();
126 test1 = elt->printWhoYouAre();
147 test1 = elt->printWhoYouAre();
167 test1 = elt->printWhoYouAre();
181 bool readMatrix =
true;
184 for (
int i = 0;
i < 3; ++
i ) {
186 stream <<
"AthenaPoolTestMatrix_" <<
i;
191 const HepGeom::Point3D<double>& point =
matrix->point();
192 const HepGeom::Point3D<double>& point1 =
matrix->point1();
200 << point1.z() <<
" ");
201 const CLHEP::HepMatrix& smallMatrix =
matrix->smallMatrix();
202 ATH_MSG_DEBUG(
" Small matrix : ( " << smallMatrix.num_row() <<
", " << smallMatrix.num_col() <<
" ) " );
205 for (
int i = 0;
i < smallMatrix.num_row(); ++
i) {
206 for (
int j = 0; j < smallMatrix.num_col(); ++ j) {
207 stream << smallMatrix[
i][j] <<
", ";
212 const CLHEP::HepMatrix& bigMatrix =
matrix->bigMatrix();
213 ATH_MSG_DEBUG(
" Big matrix : ( " << bigMatrix.num_row() <<
", " << bigMatrix.num_col() <<
" ) " );
216 for (
int i = 0;
i < bigMatrix.num_row(); ++
i) {
217 for (
int j = 0; j < bigMatrix.num_col(); ++ j) {
218 stream << bigMatrix[
i][j] <<
", ";
223 for (
int ii = 0; ii <
matrix->numberOfMatrices(); ++ii ) {
224 const CLHEP::HepMatrix& matrx =
matrix->matrix( ii );
225 ATH_MSG_DEBUG(
" ( " << matrx.num_row() <<
", " << matrx.num_col() <<
" ) " );
228 for (
int i = 0;
i < matrx.num_row(); ++
i) {
229 for (
int j = 0; j < matrx.num_col(); ++ j) {
240 std::map<unsigned int, CLHEP::HepMatrix>& mp0 = mats[0];
241 std::map<unsigned int, CLHEP::HepMatrix>& mp1 = mats[1];
242 std::map<unsigned int, CLHEP::HepMatrix>::const_iterator itmp = mp0.begin();
244 << (*itmp).second.num_row() <<
", " << (*itmp).second.num_col() );
247 << (*itmp).second.num_row() <<
", " << (*itmp).second.num_col() );
250 << (*itmp).second.num_row() <<
", " << (*itmp).second.num_col() );
253 << (*itmp).second.num_row() <<
", " << (*itmp).second.num_col() );
294 typedef std::vector<deposit_t> deposit_vec;
296 deposit_vec deposits;
301 AthenaPoolTestMap::const_iterator itm = tmap.begin();
302 AthenaPoolTestMap::const_iterator endm = tmap.end();
303 for (; itm != endm; ++itm) {
306 stream <<
"AthenaPoolTestMap: key " << (*itm).first
307 <<
" word " << (*itm).second.word()
308 <<
" Deposits: (barCode, evtIndx, wgt) ";
311 (*itm).second.deposits(deposits);
312 for (
unsigned int i = 0;
i < deposits.size(); ++
i) {
316 << deposits[
i].second <<
" ";
332 const std::vector<dummy_B>&
b = dummyA->
dummy();
334 for (
unsigned int i = 0;
i <
b.size(); ++
i) {
335 const std::vector<dummy_C>&
c =
b[
i].dummy();
337 for (
unsigned int j = 0; j <
c.size(); ++j) {
346 const std::vector<const dummy_D*>&
d = dummyE->
dummy();
348 for (
unsigned int i = 0;
i <
d.size(); ++
i) {
360 <<
evt->event_ID()->event_number() <<
":"
361 <<
evt->event_ID()->time_stamp() <<
"] " );
365 stream <<
"Event type: user type "
366 <<
evt->event_type()->user_type();
367 for (
unsigned int i = 0;
i <
evt->event_type()->n_mc_event_weights (); ++
i)
368 stream<<
" weight " <<
i <<
": " <<
evt->event_type()->mc_event_weight(
i);
374 <<
evt->actualInteractionsPerCrossing() <<
" and ave: "
375 <<
evt->averageInteractionsPerCrossing() );
396 << pevt->
event_ID()->run_number() <<
","
397 << pevt->
event_ID()->event_number() <<
":"
398 << pevt->
event_ID()->time_stamp() <<
"] " );
416 stream <<
"EventFilterInfo ";
420 stream <<
"EventFilterInfo ";
439 << (*it).time() <<
" " << (*it).index() );
442 << sevt->
event_ID()->run_number() <<
","
443 << sevt->
event_ID()->event_number() <<
":"
444 << sevt->
event_ID()->time_stamp() <<
"] " );
448 <<
it->time() <<
" " <<
it->index() );
455 if (
error)
return (StatusCode::FAILURE);
457 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 AthenaPoolTestDataReader::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode AthenaPoolTestDataReader::initialize |
( |
| ) |
|
|
virtual |
◆ 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_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
char data[hepevt_bytes_allocation_ATLAS]
std::string user_type(void) const
Access to user type.
const std::vector< StreamTag > & streamTags() const
get stream tags
index_type eventIndex() const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< std::map< unsigned int, CLHEP::HepMatrix > > matrixMaps_t
Simple class with int,int,float,double for testing pool i/o from Athena.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
Interface class for AthenaPoolTest i/o tests with DataVector.
virtual void setOwner(IDataHandleHolder *o)=0
const std::vector< number_type > & level1TriggerInfo() const
get level1 trigger info
Simple class with HepGeom::Point3D<double> for testing pool i/o from Athena.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SubEvent::iterator beginSubEvt()
Simple class with two int's for testing pool i/o from Athena.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
const std::vector< number_type > & level2TriggerInfo() const
get level2 trigger info
::StatusCode StatusCode
StatusCode definition for legacy code.
EventID * event_ID()
the unique identification of the event.
Eigen::Affine3d Transform3D
std::pair< AthenaPoolTestMapDataLink, float > Deposit
Interface class for AthenaPoolTest i/o tests.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Simple class with four int's divided among protected/private for testing pool i/o from Athena.
number_type level1TriggerType() const
get level1 trigger type
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
test nested vectors - problem seen in root3/4 transition
This class provides general information about an event. Event information is provided by the accessor...
const std::vector< const dummy_D * > & dummy() const
This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts...
DataObjIDColl m_extendedExtraObjects
number_type extendedLevel1ID() const
get extended level1 ID
const std::vector< number_type > & eventFilterInfo() const
get event filter trigger info
Test derived class that contains a list of parent classes.
#define ATH_MSG_WARNING(x)
std::list< SubEvent >::const_iterator const_iterator
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
const std::vector< dummy_B > & dummy() const
Simple class with various CLHEP classes for testing pool i/o from Athena.
number_type statusElement() const
get status element
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc
SubEvent::iterator endSubEvt()