|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/MsgStream.h"
17 #include "Gaudi/Property.h"
18 #include "GaudiKernel/SystemOfUnits.h"
38 ISvcLocator* pSvcLocator ) :
48 "Input location of particles" );
52 "Input location of Decay" );
56 "Input location of Elephantino" );
58 std::vector<std::string> testNames; testNames.reserve(3);
59 testNames.push_back(
"test1");
60 testNames.push_back(
"test2");
61 testNames.push_back(
"test3");
64 "List of tests to proceed with" );
79 return StatusCode::SUCCESS;
85 return StatusCode::SUCCESS;
92 for ( std::vector<std::string>::const_iterator
100 return StatusCode::FAILURE;
104 return StatusCode::SUCCESS;
109 const std::string&
test = testName;
117 << particlesName <<
"] !!");
118 return StatusCode::RECOVERABLE;
127 (
"Could not fetch iparticles at [" << iparticlesName <<
"] !!");
128 return StatusCode::RECOVERABLE;
137 (
"Could not fetch Decay at [" << decayName <<
"] !!");
138 return StatusCode::RECOVERABLE;
147 (
"Could not fetch Elephantino at [" << elephantinoName <<
"] !!");
148 return StatusCode::RECOVERABLE;
154 <<
"IN iparticles: " << iparticles->
size() <<
endmsg
156 <<
" p1: px= " << decay->
p1()->
px() * igev <<
endmsg
157 <<
" p2: px= " << decay->
p2()->
px() * igev);
159 msg(MSG::INFO) <<
" l1: px= ";
160 if ( decay->
l1() ) {
msg(MSG::INFO) << decay->
l1()->
px() * igev <<
endmsg;
161 }
else {
msg(MSG::INFO) <<
"[thinned!]" <<
endmsg;
163 msg(MSG::INFO) <<
" l2: px= ";
164 if ( decay->
l2() ) {
msg(MSG::INFO) << decay->
l2()->
px() * igev <<
endmsg;
165 }
else {
msg(MSG::INFO) <<
"[thinned!]" <<
endmsg;
169 <<
"IN elephantino: " <<
endmsg
170 <<
" leg1: px= " << elephantino->
leg1()->
px() * igev <<
endmsg
171 <<
" leg2: px= " << elephantino->
leg2()->
px() * igev <<
endmsg
172 <<
" leg3: px= " << elephantino->
leg3()->
px() * igev <<
endmsg
173 <<
" leg4: px= " << elephantino->
leg4()->
px() * igev <<
endmsg;
175 msg(MSG::INFO) <<
" ear1: px= ";
176 if ( elephantino->
ear1() ) {
179 msg(MSG::INFO) <<
"[thinned!]" <<
endmsg;
181 msg(MSG::INFO) <<
" ear2: px= ";
182 if ( elephantino->
ear2() ) {
185 msg(MSG::INFO) <<
"[thinned!]" <<
endmsg;
188 msg(MSG::INFO) <<
"Particles | IParticles : " <<
endmsg;
189 for (
unsigned int i = 0;
i !=
particles->size(); ++
i ) {
191 << std::setw(9) << (* particles)[
i]->px() * igev
193 << std::setw(9) << (*iparticles)[
i]->px() * igev
196 msg(MSG::INFO) <<
"======================" <<
endmsg;
198 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
std::vector< std::string > m_testNames
list of test names
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode execute()
virtual double px() const
Implementation of the AthExIParticle interface.
const AthExIParticle * leg4() const
const AthExIParticle * ear2() const
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const AthExIParticle * ear1() const
const AthExIParticle * leg2() const
::StatusCode StatusCode
StatusCode definition for legacy code.
StringProperty m_decayName
Decay input location.
virtual StatusCode finalize()
const AthExParticle * l1() const
virtual StatusCode initialize()
StringProperty m_elephantinoName
Elephantino input location.
ReadThinnedData()
Default constructor:
virtual double px() const =0
AthExIParticle interface.
#define ATH_MSG_WARNING(x)
const AthExParticle * p2() const
virtual ~ReadThinnedData()
Destructor:
const AthExIParticle * leg1() const
StatusCode checkTest(const std::string &testName)
read the output of a given test (test1, test2, test3)
const AthExParticle * p1() const
const AthExIParticle * leg3() const
StringProperty m_particlesName
Containers.
size_type size() const noexcept
Returns the number of elements in the collection.
const AthExParticle * l2() const