#ifndef ROOT_Event #define ROOT_Event ////////////////////////////////////////////////////////////////////////// // // // Event // // // // Description of the event // // // ////////////////////////////////////////////////////////////////////////// #include "TObject.h" #include "CalCell.h" #include "CalParticle.h" #include "TClonesArray.h" #include "TCalParticle.h" #include class TDirectory; class Event : public TObject { private: int fiEvent ; // event number float feTrue ; // true energy float feReco ; // reconstructed energy std::vector fCalData; TCalParticle fParticle ; ///< Calo candidate float fxTrue , fyTrue ; ///< Position of the true particle float fxReco , fyReco ; ///< Position of the reco particle public: Event(); // constructor virtual ~Event(); // destructor void build(int ev); // initialize // setters void seteTrue(float e) { feTrue = e ; } void seteReco(float e) { feReco = e ; } void setCalData(const std::vector& caldata); void setParticle( const CalParticle & particle ) ; void setTruePosition( const float x , const float y ) ; void setRecoPosition( const float x , const float y ) ; // getters float eTrue () const { return feTrue ; } float eReco () const { return feReco ; } std::vector CalData() const; CalParticle Particle() const ; float xTrue() const { return fxTrue ; } ; float yTrue() const { return fyTrue ; } ; float xReco() const { return fxReco ; } ; float yReco() const { return fyReco ; } ; // technical (ignore) ClassDef(Event,1) //Event structure }; #endif