Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MadEdAnalysis.h

Go to the documentation of this file.
00001 #ifndef madedanalysis_h
00002 #define madedanalysis_h
00003 #include "TChain.h"
00004 #include "TFile.h"
00005 #include "TMultiLayerPerceptron.h"
00006 #include "Mad/MadAnalysis.h"
00007 #include "Registry/Registry.h"
00008 #include "Mad/MadAnalysis.h"
00009 #include "MCReweight/MCReweight.h"
00010 #include "MCReweight/GnumiInterface.h"
00011 #include "MCReweight/NuParent.h"
00012 using namespace std;
00013 
00014 class MadEdAnalysis : public MadAnalysis
00015 {
00016 
00017  protected:
00018 
00019   TMultiLayerPerceptron *fneural; //pointer to neural net object
00020 
00021   Bool_t PassAnalysisCuts(Int_t event=0);
00022   Bool_t PassBasicCuts(Int_t event=0);
00023   
00024   TFile *fLikeliFile; //pointer to PID file 
00025   TH1F *fLikeliHist[6];
00026 
00027   Float_t HitF(Int_t itr);
00028   Float_t ETrkF(Int_t itr);
00029   Float_t DeDx(Int_t itr);
00030 
00031   Float_t EvtLength();
00032   Float_t Trkphsig(Int_t itrk);
00033   Float_t Trkplanes(Int_t itrk);
00034   Float_t Evtphsig();
00035 
00036   Float_t RecoMuDCosY(Int_t itrk);
00037   Float_t RecoMuZn(Int_t itrk);
00038   Float_t RecoMuAZM(Int_t itrk);
00039 
00040  public:
00041  
00042   MadEdAnalysis(TChain *chainSR=0,TChain *chainMC=0,
00043                 TChain *chainTH=0,TChain *chainEM=0);
00044   MadEdAnalysis(JobC *,string,int);
00045   ~MadEdAnalysis();
00046 
00047   Bool_t MyIsFidVtx(Int_t itrk=0);
00048   Bool_t MyIsFidVtxrz(Int_t itrk=0);
00049 
00050   Float_t PID(Int_t event=0,Int_t method=0);
00051   Float_t NeuNetEval(Int_t event=0);
00052   Float_t *LikeliPID();
00053   Float_t *MyLikeliQE(TH1F**); //likelihood calculation for QE separation
00054   TMultiLayerPerceptron* NeuNetTrain(TFile*);
00055   void SetMLP(TMultiLayerPerceptron *neural) {fneural=neural;}
00056   void PIDHisto();
00057   void MyMakeQEFile(std::string);
00058   void DataHist(std::string);
00059   void MCHist(std::string);
00060   void MakeEff(std::string);
00061 
00062 
00063   void MyMakeMyFile(std::string);
00064   void MyReadPIDFile(std::string);
00065   void MyCreatePAN(std::string tag);
00066   void MyCreatePANData(std::string tag);
00067 
00068 
00069 
00070 };
00071 #endif // #ifdef madedanalysis_h

Generated on Mon Feb 15 11:06:55 2010 for loon by  doxygen 1.3.9.1