00001 #ifndef ANTPSHOWERINFOANA_H
00002 #define ANTPSHOWERINFOANA_H
00003
00004 #include "TObject.h"
00005 #include "NueAna/NueAnaBase.h"
00006 #include "NueAna/ANtpShowerInfoNue.h"
00007 #include "AnalysisNtuples/Module/ANtpInfoObjectFiller.h"
00008 #include "DataUtil/EnergyCorrections.h"
00009
00010 class NtpSRRecord;
00011
00012 class ANtpShowerInfoAna : public NueAnaBase
00013 {
00014
00015 public:
00016 ANtpShowerInfoAna(ANtpShowerInfoNue &ansi);
00017 virtual ~ANtpShowerInfoAna();
00018
00019
00020 void Analyze(int evtn, RecRecordImp<RecCandHeader> *srobj);
00021 void FillNueShowerInformation(NtpSRShower *ntpShower, NtpSREvent *ntpEvent, ANtpShowerInfoNue *showerInfoNue,RecRecordImp<RecCandHeader> *srobj);
00022
00023 Float_t RecoShwEnergy(Float_t linearCCGeV, SimFlag::SimFlag_t s, const Detector::Detector_t& det, int mode);
00024 Float_t RecoShwEnergy(NtpSRShower * ntpShower, Int_t opt, Int_t det);
00025 Float_t RecoShwEnergyNew(NtpSRShower * ntpShower,
00026 Int_t opt, VldContext cx);
00027
00028 Float_t GetShwEnergy(NtpSRShower* ntpShower, Int_t opt);
00029 CandShowerHandle::EShowerType GetShwHandleType(Int_t opt);
00030
00031 void FillGapInformation(NtpSREvent *evt, NtpSRShower *shw, NtpSRTrack* trk, NtpStRecord * st);
00032
00033 private:
00034 ANtpShowerInfoNue &fANtpShowerInfo;
00035 ANtpInfoObjectFiller *fInfoFiller;
00036 };
00037
00038 #endif// ANTPSHOWERINFOANA_H