CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/IOMC/NtupleConverter/interface/NtupleROOTFile.h

Go to the documentation of this file.
00001 
00005 #ifndef NTUPLEROOTFILE_
00006 #define NTUPLEROOTFILE_
00007 
00008 
00009 #include "TFile.h"
00010 #include "TTree.h"
00011 #include <string>
00012 #include <map>
00013 
00014 class NtupleROOTFile {
00015         public:
00016         NtupleROOTFile(std::string filename, int id);
00017         virtual ~NtupleROOTFile();
00018         
00019         virtual void   setEvent(int event) const;
00020         virtual int getNhep()const;
00021         virtual int getNevhep() const;
00022         virtual int getIdhep(int j) const;
00023         virtual int getJsmhep(int j) const;
00024         virtual int getJsdhep(int j) const;
00025         virtual int getIsthep(int j) const;
00026         virtual int getJmohep(int j, int idx) const;
00027         virtual int getJdahep(int j, int idx) const;
00028         virtual double getPhep(int j, int idx) const;
00029         virtual double getVhep(int j, int idx) const;
00030         virtual int    getEntries() const;
00031         virtual int getId() const {return id_;} 
00032         
00033         protected:
00034         int id_;
00035         private:
00036         TFile *file;
00037         TTree* tree;
00038         
00039         //  Int_t           Nevhep;
00040         Int_t           Nhep;
00041         Int_t           Nevhep;
00042         Int_t           Idhep[4000];   //[Nhep]
00043         Int_t           Jsmhep[4000];   //[Nhep]
00044         Int_t           Jsdhep[4000];   //[Nhep]
00045         Float_t         Phep[4000][5];   //[Nhep]
00046         Float_t         Vhep[4000][4];   //[Nhep]
00047         Int_t           Isthep[4000];
00048         Int_t           Jmohep[4000][2];
00049         Int_t           Jdahep[4000][2];
00050         
00051         NtupleROOTFile() {}
00052 };
00053 
00054 #endif