Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

TMBMCevtInfo.hpp

Go to the documentation of this file.
00001 #ifndef TMBMCevtInfo_H
00002 #define TMBMCevtInfo_H
00003 
00005 //                                                                      //
00006 //   file: TMBMCevtInfo.hpp                                                  //
00007 //   TMBTree MCevt class 
00008 //     has MCevt information
00009 //
00010 //   created: 23-Nov-2002  Wade Fisher                                 
00011 //                                                                      //
00013 
00014 #ifndef ROOT_TObject
00015 #include "TObject.h"
00016 #endif
00017 
00022 class TMBMCevtInfo : public TObject {
00023 
00024 private:
00025  
00026   Int_t            _run;
00027   Int_t          _evtid;
00028   Int_t          _nreac;      // reactiob number
00029   Int_t          _flav1, _flav2;    // flavor of interacting partons
00030   Float_t        _xsect;      //cross section in microbarns
00031   Float_t       _weight;
00032   Float_t          _qsq;
00033   Float_t         _shat;
00034   Float_t         _that;
00035   Float_t         _uhat;
00036   Float_t         _x1, _x2; // x of interacting partons
00037   Long_t    _overlayrun;    //overlay run 
00038   Long_t  _overlayevtid;    //overlay event
00039   Int_t  _overlaylumblk;    // overlay lbn
00040   Int_t    _overlaytick;    // overlay tick number
00041   Float_t  _overlay_instlum;// instantanous luminosity
00042 
00043 
00044   //  Note that the output chunk (Geant) is not counted
00045   Int_t           _nchunks;  // original number of input chunks
00046   Int_t           _nvtx[20]; // number of vertices in chunk i 
00047   Int_t           _npart[20]; // number of particles in chunk i 
00048    
00049 
00050 public:
00051   TMBMCevtInfo();
00052   
00053   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 flav1, Float_t x1, Int_t flav2, Float_t x2, Int_t nchunks, Int_t nvtx[20], Int_t npar[20], Long_t overlayrun, Long_t overlayevtid, Int_t overlaylumblk, Int_t overlaytick, Float_t inst_lum); 
00054   
00055   TMBMCevtInfo ( const TMBMCevtInfo & evt ); // copy constructor
00056      
00057   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 flav1, Float_t x1, Int_t flav2, Float_t x2, Int_t nchunks, Int_t nvtx[20], Int_t npar[20], Long_t overlayrun, Long_t overlayevtid, Int_t overlaylumblk, Int_t overlaytick, Float_t inst_lum);
00058 
00059   ~TMBMCevtInfo();
00060   
00061   Int_t          run() const { return _run; }
00062   Int_t          evtid() const { return _evtid; }
00063   Int_t          nreac() const { return _nreac; }
00064   Float_t        xsect() const { return _xsect; }
00065   Float_t       weight() const { return _weight; }
00066   Float_t          qsq() const { return _qsq; }
00067   Float_t         shat() const { return _shat; }
00068   Float_t         that() const { return _that; }
00069   Float_t         uhat() const { return _uhat; }
00070   Int_t           nchunks() const{return _nchunks;}
00071   Int_t          nvtx(int i)const {return _nvtx[i];}
00072   Int_t          npart(int i)const {return _npart[i];}
00073 
00074   Int_t          flav1() const { return _flav1;}
00075   Float_t        x1() const { return _x1;}
00076   Int_t          flav2() const { return _flav2;}
00077   Float_t        x2() const { return _x2;}
00078   void           parton_x(Float_t& x1, Float_t& x2) const { x1=_x1; x2=_x2;}
00079   void           parton_flav(Float_t& flav1, Float_t& flav2) const { flav1=_flav1; flav2=_flav2;}
00080   Long_t       overlayrun()    const { return _overlayrun; }
00081   Long_t       overlayevtid()  const { return _overlayevtid; }
00082   Int_t        overlaylumblk() const { return _overlaylumblk; }
00083   Int_t        overlaytick()   const { return _overlaytick; }
00084   Float_t      overlay_instlum() const { return _overlay_instlum; }
00085 
00086    ClassDef(TMBMCevtInfo, 5)   //TMBTree MCevt class
00087 };
00088 
00089 #endif

Generated on Tue Mar 28 10:13:05 2006 for CAF by doxygen 1.3.4