Go to the documentation of this file.
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 ) {
97 if ( std::abs(
m_trkMomFixed[i] ) > std::numeric_limits<float>::epsilon() ) {
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;
NTuple::Array< float > m_trkMomFixed
NTuple::Array< float > m_trkMom
NTuple::Item< Gaudi::TestSuite::MyTrack * > m_track
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
StatusCode item(const std::string &name, Item< TYPE > &result)
Locate a scalar Item of data to the N tuple type safe.
NTuple::Item< int > m_ntrack
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
bool operator()(NTuple::Tuple *) override
Specialized callback for NTuples.
Selector(IInterface *svc)
Standard constructor.
constexpr static const auto SUCCESS
Abstract base class which allows the user to interact with the actual N tuple implementation.
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
StatusCode initialize(NTuple::Tuple *nt) override
Initialization.
#define EvtCollectionSelector
#define DECLARE_OBJECT_FACTORY(x)