17 std::vector<size_t> beams;
18 for (
size_t i=0; i<evt.
particles().size(); i++)
void write_event(const GenEvent &evt)
Write event.
int event_number() const
Get event number.
TTree * m_tree
Tree handler. Public to allow simple access, e.g. custom branches.
void set_run_number(const int nr)
Set run number.
void write_event(const GenEvent &evt) override
Write event to file.
float m_Ebeam
Beam energy in GEV.
Stores event-related information.
WriterRootTreeOPAL(const std::string &filename, std::shared_ptr< GenRunInfo > run=std::shared_ptr< GenRunInfo >())
Constructor.
GenEvent I/O serialization for root files based on root TTree.
void init_branches()
Init ROOT branches.
Definition of class WriterRootTreeOPAL.
const std::vector< ConstGenParticlePtr > & particles() const
Get list of particles (const)
Feature< Feature_type > abs(const Feature< Feature_type > &input)
Obtain the absolute value of a Feature. This works as you'd expect. If foo is a valid Feature...