00001 #ifndef FRACVARANA_H 00002 #define FRACVARANA_H 00003 00004 #include "NueAna/NueAnaBase.h" 00005 #include "NueAna/FracVar.h" 00006 #include "TMultiLayerPerceptron.h" 00007 00008 class TPad; 00009 class TNtuple; 00010 00011 class NtpSRRecord; 00012 class NtpSREvent; 00013 class FracVarAna : public NueAnaBase 00014 { 00015 00016 public: 00017 00018 FracVarAna(FracVar &fv); 00019 virtual ~FracVarAna(); 00020 00021 void Analyze(int evtn, RecRecordImp<RecCandHeader> *srobj); 00022 bool LoadLargestTrackFromEvent(NtpSREvent* event, 00023 RecRecordImp<RecCandHeader>* record, 00024 int& trkidx); 00025 bool LoadShowerAtTrackVertex(NtpSREvent* event, 00026 RecRecordImp<RecCandHeader>* record, 00027 int trkidx, 00028 int& shwidx); 00029 bool LoadLargestShowerFromEvent(NtpSREvent* event, 00030 RecRecordImp<RecCandHeader>* record, 00031 int& shwidx); 00032 void SetDisplay(Int_t fd){fDisplay = fd;}; 00033 void Draw(TPad *pad); 00034 void Print(TPad *pad); 00035 00036 private: 00037 FracVar &fFracVar; 00038 Int_t fDisplay; 00039 TNtuple *display; 00040 static TMultiLayerPerceptron *fneuralNet; 00041 }; 00042 00043 #endif// FRACVARANA_H