|
ATLAS Offline Software
|
Go to the documentation of this file.
38 std::atomic<uint32_t>
seed = 1;
46 double randf (
double rmax,
double rmin = 0)
48 return static_cast<double>(
rng()) /
rngmax * (rmax-rmin) + rmin;
100 for (
unsigned i = 0;
i < 10;
i++) {
102 for (
unsigned int j=0; j <
i; j++)
121 return StatusCode::SUCCESS;
131 for (
unsigned i = 0;
i < 10;
i++) {
133 double eta =
randf(5, -5);
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));
177 aFloat(*
c->back()) = 500*
m_count +
i + 0.5;
179 std::ostringstream
os;
181 aString(*
c->back()) =
os.str();
184 double eta =
randf(-5, 5);
187 aFourvec(*
c->back()).SetPtEtaPhiM (
pt, eta, phi,
m);
192 return StatusCode::SUCCESS;
207 return StatusCode::SUCCESS;
virtual StatusCode execute()
Standard Gaudi execute method.
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode finalize()
Standard Gaudi finalize method.
Test class for D3PD maker.
Test class for D3PD maker.
std::string m_sgkeyObj1sel
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
DataVector< INavigable4Momentum > INavigable4MomentumCollection
Test class for D3PD maker.
StatusCode fillObj3Collections()
Fill collections involving Obj3.
Test class for D3PD maker (aux data).
FillerAlg(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi algorithm constructor.
::StatusCode StatusCode
StatusCode definition for legacy code.
Test class for D3PD maker.
double randf(double rmax, double rmin=0)
#define CHECK(...)
Evaluate an expression and check for errors.
std::atomic< uint32_t > seed
StatusCode fillObj1Collections()
Fill collections involving Obj1/2.
StatusCode fillObj5Collections()
Fill collections involving Obj5.
Test class for D3PD maker.
std::string m_sgkeyObj4cont
Helpers for checking error return status codes and reporting errors.
std::string m_sgkeyObj3cont
virtual StatusCode initialize()
Standard Gaudi initialize method.
Test class for D3PD maker.
static const DataModel_detail::DVLInfoBase & dvlinfo()
Return the DV/DL info struct for this class.
std::string m_sgkeyObj1cont
Put objects into StoreGate to test D3PD maker.
An auxiliary data store that holds data internally.
StatusCode fillObj4Collections()
Fill collections involving Obj4.
Test class for D3PD maker.
Test class for D3PD maker.
std::string m_sgkeyObj5cont