// @(#)root/test:$Name: $:$Id: Event.cxx,v 1.28 2005/01/19 07:52:45 brun Exp $ // Author: Rene Brun 19/08/96 //////////////////////////////////////////////////////////////////////// // // Event class // ======================= // // The Event class is a simple event structure //////////////////////////////////////////////////////////////////////// #include "Event.h" ClassImp(Event) //______________________________________________________________________________ Event::Event() { } //______________________________________________________________________________ Event::~Event() { } //______________________________________________________________________________ void Event::build(int ev) { // set event number fiEvent=ev ; // initialize data member to invalid values feTrue=-999.; feReco=-999.; fCalData.clear(); } void Event::setCalData(const std::vector& caldata) { fCalData=caldata; } std::vector Event::CalData() const { return fCalData; } void Event::setParticle( const CalParticle & theParticle ) { fParticle.setEnergy( theParticle.energy() ) ; fParticle.setX( theParticle.x() ) ; fParticle.setY( theParticle.y() ) ; } CalParticle Event::Particle() const { return CalParticle( fParticle.energy() , fParticle.x() , fParticle.y() ) ; } void Event::setTruePosition( const float x , const float y ) { fxTrue = x ; fyTrue = y ; } void Event::setRecoPosition( const float x , const float y ) { fxReco = x ; fyReco = y ; }