#include <GenAccessIO.h>
Definition at line 22 of file GenAccessIO.h.
◆ String
◆ GenAccessIO()
GenAccessIO::GenAccessIO |
( |
| ) |
|
|
inline |
Definition at line 42 of file GenAccessIO.h.
42 :m_sgSvc(0){
43 ISvcLocator* svcLoc = Gaudi::svcLocator( );
44 if( (svcLoc->service( "StoreGateSvc", m_sgSvc )).isFailure() ){
45 throw StatusCode::FAILURE;
46 }
47}
◆ getDH() [1/2]
Definition at line 50 of file GenAccessIO.h.
50 {
51 if((m_sgSvc->retrieve(dh)).isFailure() ){
52 return StatusCode::FAILURE;
53 }
54 return StatusCode::SUCCESS;
55}
Referenced by getMC().
◆ getDH() [2/2]
Definition at line 58 of file GenAccessIO.h.
58 {
59 if( (m_sgSvc->retrieve(dh,
key)).isFailure() ){
60 return StatusCode::FAILURE;
61 }
62 return StatusCode::SUCCESS;
63}
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
◆ getMC() [1/2]
◆ getMC() [2/2]
Definition at line 16 of file GenAccessIO.cxx.
17 {
18
20 StatusCode stat = this->
getDH(mcCollptr);
21 if(!stat){
22 return StatusCode::FAILURE;
23 }
24
25
26 McEventCollection::const_iterator itr;
27 for (itr = mcCollptr->begin(); itr!=mcCollptr->end(); ++itr) {
28
29 const HepMC::GenEvent* genEvt = (*itr);
30 if(genEvt == 0) return StatusCode::FAILURE;
31
32 HepMC::GenEvent::particle_const_iterator it= genEvt->particles_begin();
33 HepMC::GenEvent::particle_const_iterator en= genEvt->particles_end();
34 for(; it!=en; ++it){
35 if((*selector)(*it)){mcParticles.push_back(*it);}
36 }
37 }
38
39 return StatusCode::SUCCESS;
40
41}
StatusCode getDH(const McEventCollection *&) const
◆ store() [1/2]
Definition at line 65 of file GenAccessIO.h.
65 {
66 return (m_sgSvc->record(pObject) ) ;
67}
◆ store() [2/2]
Definition at line 70 of file GenAccessIO.h.
70 {
71 return (m_sgSvc->record(storee,
key) ) ;
72}
The documentation for this class was generated from the following files: