27# pragma warning( disable : 1125 )
29# pragma warning( disable : 1572 )
57 std::cerr <<
"EvtCollectionSelector: initialize " << sc << std::endl;
58 std::cerr <<
"TrkMom" << std::endl;
64 std::cerr <<
"EvtCollectionSelector: initialize " << sc << std::endl;
65 std::cerr <<
"TrkMomFix" << std::endl;
71 std::cerr <<
"EvtCollectionSelector: initialize " << sc << std::endl;
72 std::cerr <<
"Ntrack" << std::endl;
78 std::cerr <<
"EvtCollectionSelector: initialize " << sc << std::endl;
79 std::cerr <<
"Track" << std::endl;
86 using NTuple::Selector::operator();
92 for (
int i = 0; i < std::min( 5, n ); ++i ) { std::cout <<
"[" << i <<
"]=" <<
m_trkMom[i] <<
" "; }
95 for (
int i = 0; i < std::min( 5, n ); ++i ) { std::cout <<
"[" << i <<
"]=" <<
m_trkMomFixed[i] <<
" "; }
96 for (
int i = 5; i < 99; ++i ) {
98 std::cout <<
"[" << i <<
"]= Error in Fixed momentum" << std::endl;
102 std::cout << std::endl;
105 std::cout <<
"\t -> Track : "
106 <<
" px=" << ( *m_track )->px() <<
" py=" << ( *m_track )->py() <<
" pz=" << ( *m_track )->pz()
109 std::cout <<
" Track* is NULL" << std::endl;
#define EvtCollectionSelector
#define DECLARE_OBJECT_FACTORY(x)
implementation of various functions for streaming.
Definition of a small class for further pre-selections when reading an event collection.
NTuple::Item< int > m_ntrack
StatusCode initialize(NTuple::Tuple *nt) override
Initialization.
bool operator()(NTuple::Tuple *) override
Specialized callback for NTuples.
NTuple::Array< float > m_trkMomFixed
NTuple::Item< Gaudi::TestSuite::MyTrack * > m_track
NTuple::Array< float > m_trkMom
Class acting as a smart pointer holding a N tuple _Item.
Class acting as a smart pointer holding a N tuple _Item.
Selector(IInterface *svc)
Standard constructor.
Abstract base class which allows the user to interact with the actual N tuple implementation.
StatusCode item(const std::string &name, Item< TYPE > &result)
Locate a scalar Item of data to the N tuple type safe.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Gaudi::ParticleID abs(const Gaudi::ParticleID &p)
Return the absolute value for a PID.