29using std::make_unique;
38std::atomic<uint32_t>
seed = 1;
39const uint32_t
rngmax =
static_cast<uint32_t
> (-1);
46double randf (
double rmax,
double rmin = 0)
48 return static_cast<double>(
rng()) /
rngmax * (rmax-rmin) + rmin;
80 return AthAlgorithm::initialize();
89 return AthAlgorithm::finalize();
100 for (
unsigned i = 0; i < 10; i++) {
102 for (
unsigned int j=0; j < i; j++)
103 o1->m_vo2.push_back (
Obj2 (10*
m_count + i + 100*j));
113 for (
int i = 0; i <
m_count; i++)
115 for (
int i = 0; i < 2*
m_count; i++)
121 return StatusCode::SUCCESS;
131 for (
unsigned i = 0; i < 10; i++) {
140 return StatusCode::SUCCESS;
150 for (
unsigned i = 0; i < 10; i++) {
156 return StatusCode::SUCCESS;
165 auto c = make_unique<Obj5Container>();
166 auto store = make_unique<SG::AuxStoreInternal>();
167 c->setStore (store.get());
174 for (
unsigned i = 0; i < 10; i++) {
175 c->push_back (make_unique<Obj5> (300*
m_count + i));
176 anInt(*c->back()) = 400*
m_count + i;
177 aFloat(*c->back()) = 500*
m_count + i + 0.5;
179 std::ostringstream os;
180 os <<
"aux " << 600*
m_count + i;
181 aString(*c->back()) = os.str();
187 aFourvec(*c->back()).SetPtEtaPhiM (pt,
eta,
phi, m);
192 return StatusCode::SUCCESS;
207 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
An auxiliary data store that holds data internally.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Put objects into StoreGate to test D3PD maker.
DataVector< INavigable4Momentum > INavigable4MomentumCollection
Test class for D3PD maker.
Test class for D3PD maker.
Test class for D3PD maker.
Test class for D3PD maker.
Test class for D3PD maker (aux data).
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
FillerAlg(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi algorithm constructor.
std::string m_sgkeyObj5cont
virtual StatusCode finalize()
Standard Gaudi finalize method.
std::string m_sgkeyObj1cont
StatusCode fillObj3Collections()
Fill collections involving Obj3.
std::string m_sgkeyObj3cont
std::string m_sgkeyObj1sel
virtual StatusCode execute()
Standard Gaudi execute method.
std::string m_sgkeyObj4cont
StatusCode fillObj4Collections()
Fill collections involving Obj4.
virtual StatusCode initialize()
Standard Gaudi initialize method.
StatusCode fillObj1Collections()
Fill collections involving Obj1/2.
StatusCode fillObj5Collections()
Fill collections involving Obj5.
Test class for D3PD maker.
Test class for D3PD maker.
Test class for D3PD maker.
Test class for D3PD maker.
static const DataModel_detail::DVLInfoBase & dvlinfo()
SG::Accessor< T, ALLOC > Accessor
std::atomic< uint32_t > seed
double randf(double rmax, double rmin=0)