#ifndef EVENTHEADER_H #define EVENTHEADER_H #include #include "Rtypes.h" #include "BecConfig.h" namespace BEC { class EventHeader { public: // enum Type { UNKNOWN=0, DATA=1, MC=2}; EventHeader(); virtual ~EventHeader(){}; void Clear(); // inline const Type GetType() const {return fType;} inline const uint32 GetNumber() const {return fNumber;} inline const uint32 GetSpill() const {return fSpill;} inline const uint32 GetTapeId() const {return fTapeId;} inline const uint32 GetTape() const {return fTape;} inline const uint8 GetBeamType() const {return fBeamType;} inline const uint8 GetNvtx() const {return fNvtx;} inline const uint8 GetNtrkInPV() const {return fNtrkInPV;} inline const uint8 GetNcls() const {return fNcls;} inline const uint8 GetNphotonCls() const {return fNphotonCls;} inline const uint8 GetNpi0() const {return fNpi0;} inline const uint8 GetNeth2g() const {return fNeth2g;} inline const uint8 GetNsiPhotons() const {return fNsiPhotons;} // inline void SetType(const Type t) {fType=t;} inline void SetNumber(const uint32 n) {fNumber=n;} inline void SetSpill(const uint32 s) {fSpill=s;} inline void SetTapeId(const uint32 t) {fTapeId=t;} inline void SetTape(const uint32 t) {fTape=t;} inline void SetBeamType(const uint8 b) {fBeamType=b;} inline void SetNvtx(const uint8 n) {fNvtx=n;} inline void SetNtrkInPV(const uint8 n) {fNtrkInPV=n;} inline void SetNcls(const uint8 n) {fNcls=n;} inline void SetNphotonCls(const uint8 n) {fNphotonCls=n;} inline void SetNpi0(const uint8 n) {fNpi0=n;} inline void SetNeth2g(const uint8 n) {fNeth2g=n;} inline void SetNsiPhotons(const uint8 n) {fNsiPhotons=n;} void Print(const int level=0,std::ostream& o=std::cout) const; friend std::ostream &operator<<(std::ostream &o,const EventHeader &h){h.Print(0,o); return o;} private: // Type fType; // event type uint32 fNumber; // number uint32 fSpill; // spill uint32 fTapeId; // tape id uint32 fTape; // tape number uint8 fBeamType; // type of beam // Number of: uint8 fNvtx; // vertices uint8 fNtrkInPV; // tracks in the Prim.Vertex uint8 fNcls; // clusters uint8 fNphotonCls; // photon clusters uint8 fNpi0; // neutral pions uint8 fNeth2g; // ethas decaying to 2 photons uint8 fNsiPhotons; // single(unpaired) photons // ClassDef(EventHeader,1) }; } //namespace BEC #endif