#ifndef TMBMCevtInfo_H #define TMBMCevtInfo_H ////////////////////////////////////////////////////////////////////////// // // // file: TMBMCevtInfo.hpp // // TMBTree MCevt class // has MCevt information // // created: 23-Nov-2002 Wade Fisher // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TObject #include "TObject.h" #endif class TMBMCevtInfo : public TObject { private: Int_t _run; Int_t _evtid; Int_t _nreac; // reactiob number Float_t _xsect; //cross section in microbarns Float_t _weight; Float_t _qsq; Float_t _shat; Float_t _that; Float_t _uhat; // Note that the output chunk (Geant) is not counted Int_t _nchunks; // original number of input chunks Int_t _nvtx[20]; // number of vertices in chunk i Int_t _npart[20]; // number of particles in chunk i public: TMBMCevtInfo(); TMBMCevtInfo(Int_t run, Int_t evtid, Int_t nreac, Float_t xsect, Float_t weight, Float_t qsq, Float_t shat, Float_t that, Float_t uhat,Int_t nchunks, Int_t nvtx[20], Int_t npar[20] ); TMBMCevtInfo ( const TMBMCevtInfo & evt ); // copy constructor void Set(Int_t run, Int_t evtid, Int_t nreac, Float_t xsect, Float_t weight, Float_t qsq, Float_t shat, Float_t that, Float_t uhat,Int_t nchunks, Int_t nvtx[20], Int_t npar[20]); ~TMBMCevtInfo(); Int_t run() const { return _run; } Int_t evtid() const { return _evtid; } Int_t nreac() const { return _nreac; } Float_t xsect() const { return _xsect; } Float_t weight() const { return _weight; } Float_t qsq() const { return _qsq; } Float_t shat() const { return _shat; } Float_t that() const { return _that; } Float_t uhat() const { return _uhat; } Int_t nchunks() const{return _nchunks;} Int_t nvtx(int i)const {return _nvtx[i];} Int_t npart(int i)const {return _npart[i];} ClassDef(TMBMCevtInfo, 2) //TMBTree MCevt class }; #endif