Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

GlobalHeader2002v0.h

Go to the documentation of this file.
00001 //////////////////////////////////////////////////////////
00002 //   This class has been automatically generated 
00003 //     (Tue May 13 16:43:04 2003 by ROOT version3.05/05)
00004 //   from TTree h100/global
00005 //   found on file: emec_12369.root
00006 //////////////////////////////////////////////////////////
00007 
00008 
00009 #ifndef GlobalHeader2002v0_h
00010 #define GlobalHeader2002v0_h
00011 
00012 #include <TROOT.h>
00013 #include <TChain.h>
00014 #include <TFile.h>
00015 #include <string>
00016 #include <iostream>
00017 
00018 using std::string;
00019 using std::cout;
00020 using std::endl;
00021 
00022 /*! - Class GlobalHeader2002v0
00023   * - Author: Ian Gable (igable@uvic.ca)
00024   * - Date:  05/27/2003
00025   * - Description: This class was created by root 3.05/05. Use it to access the information
00026   *      contained in the Global Header.
00027   */
00028 
00029 class GlobalHeader2002v0 {
00030    public :
00031 
00032    GlobalHeader2002v0(TTree *tree=0,string fileName=0);
00033    ~GlobalHeader2002v0();
00034 
00035 
00036 
00037    Int_t  Cut(Int_t entry);
00038    Int_t  GetEntry(Int_t entry);
00039    Int_t  LoadTree(Int_t entry);
00040    void   Init(TTree *tree);
00041    void   Loop();
00042    Bool_t Notify();
00043    void   Show(Int_t entry = -1);
00044 
00045    //! Run number
00046    int getRunNo(){return runno;};
00047 
00048    //! Experiment number
00049    int getRunPd(){return runpd;};
00050 
00051    //! Beam energy (negative for negative charged particle)
00052    float getBeamEnergy(){return beame;};
00053 
00054    //! Cryostat positon X (cm)
00055    float getCryoX(){ return cryox;};
00056 
00057    //! Table position Y (cm)
00058    float getTableY(){ return tabley;};
00059 
00060    //! Beam position Z (not available now)
00061    float getBeamZ(){ return zbeam;};
00062 
00063    //! Particle type (fELECTORON=1, fMUON=2, fPION=3)
00064    int getPartType(){return parttype;};
00065 
00066   TTree* getChain(){ return fChain;};
00067   Int_t getCurrent(){ return fCurrent;};
00068 
00069 private:
00070 
00071    TTree          *fChain;   //!pointer to the analyzed TTree or TChain
00072    Int_t           fCurrent; //!current Tree number in a TChain
00073 
00074 //Declaration of leaves types
00075    UInt_t          runno;
00076    UInt_t          runpd;
00077    Float_t         beame;
00078    Float_t         cryox;
00079    Float_t         tabley;
00080    Float_t         zbeam;
00081    UInt_t          parttype;
00082 
00083 //List of branches
00084    TBranch        *b_runno;   //!
00085    TBranch        *b_runpd;   //!
00086    TBranch        *b_beame;   //!
00087    TBranch        *b_cryox;   //!
00088    TBranch        *b_tabley;   //!
00089    TBranch        *b_zbeam;   //!
00090    TBranch        *b_parttype;   //!
00091 };
00092 
00093 #endif
00094 
00095 
00096 

Generated on Fri Aug 15 10:52:04 2003 for TBRootAna by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002