Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
92 static int s_nEvt = 0;
93 static int s_nRun = 0;
95 if ( 1 == ++s_nEvt % 50 ) { ++s_nRun; }
97 DataObject*
event = get<DataObject>(
"/Event" );
100 if ( 0 ==
registry ) {
return Error(
"IRegistry* point to NULL!" ); }
102 if ( 0 == address ) {
return Error(
"Address points to NULL!" ); }
129 return tuple->
write();
EvtColAlg(const std::string &name, ISvcLocator *pSvc)
standard construtor
SmartIF< IRndmGenSvc > & randSvc() const
The standard RandomGen service, Return a pointer to the service if present.
StatusCode column(std::string_view name, float value)
Set the value for selected tuple column.
const std::string & name() const override
The identifying name of the algorithm object.
void Assert(const bool ok, std::string_view message="", const StatusCode sc=StatusCode::FAILURE) const
Assertion - throw exception if the given condition is not fulfilled.
GaudiAlg::TupleID TupleID
the actual type of N-tuple ID
StatusCode setProperty(const Gaudi::Details::PropertyBase &p)
Set the property from a property.
Parameters for the flat random number generation within boundaries [minimum, maximum].
EvtColAlg & operator=(const EvtColAlg &)
Parameters for the Gauss random number generation.
Random number accessor This small class encapsulates the use of the random number generator.
Parameters for the BreitWigner distributed random number generation.
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
Tuple evtCol(const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const
Access an Event Tag Collection object (book on-demand) with unique identifier.
Header file for std:chrono::duration-based Counters.
StatusCode initialize() override
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)
EvtColAlg(const EvtColAlg &)
StatusCode write()
write a record to NTuple
Parameters for the Gauss random number generation.
Parameters for the Poisson distributed random number generation with a given mean.
StatusCode initialize() override
standard initialization method
constexpr static const auto FAILURE
StatusCode execute() override
the only one essential methos
Parameters for the Binomial distributed random number generation.
StatusCode Error(std::string_view msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
Print the error message and return with the given StatusCode.