 |
ATLAS Offline Software
|
Go to the documentation of this file.
29 #include "EventInfo/EventInfo.h"
39 ISvcLocator* pSvcLocator):
48 return StatusCode::SUCCESS;
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;
462 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
AthenaPoolTestDataReader(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
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
This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts...
~AthenaPoolTestDataReader()
Algorithm destructor.
std::vector< std::map< unsigned int, CLHEP::HepMatrix > > matrixMaps_t
Class definition for IAthenaPoolTestCollection.
Class definition for AthenaPoolTestA.
Simple class with int,int,float,double for testing pool i/o from Athena.
This class contains trigger related information.
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
#define ATH_MSG_VERBOSE(x)
Class definition for AthenaPoolTestB.
Interface class for AthenaPoolTest i/o tests with DataVector.
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()
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Simple class with two int's for testing pool i/o from Athena.
Class definition for AthenaPoolTestD.
Class definition for AthenaPoolTestMatrix.
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
Class definition for AthenaPoolTestC.
std::pair< AthenaPoolTestMapDataLink, float > Deposit
Interface class for AthenaPoolTest i/o tests.
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 StatusCode initialize()
Algorithm initialize at begin of job.
test nested vectors - problem seen in root3/4 transition
virtual StatusCode finalize()
Algorithm finalize at end of job.
virtual StatusCode execute()
Algorithm execute once per event.
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...
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.
std::list< SubEvent >::const_iterator const_iterator
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
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
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc
SubEvent::iterator endSubEvt()