00001 00002 // $Id: CondensedNtpModule.h,v 1.8 2005/05/06 21:13:02 minoscvs Exp $ 00003 // 00004 // A module used for generating analysis ntuples from the SR ntuples 00005 // 00006 // B. Rebel 10/2004 00008 #ifndef CONDENSEDNTPMODULE_H 00009 #define CONDENSEDNTPMODULE_H 00010 00011 #include "TObject.h" 00012 #include "Registry/Registry.h" 00013 #include "TTree.h" 00014 #include "TFile.h" 00015 #include "AnalysisNtuples/ANtpEventInfo.h" 00016 #include "AnalysisNtuples/ANtpShowerInfo.h" 00017 #include "AnalysisNtuples/ANtpTrackInfo.h" 00018 #include "AnalysisNtuples/ANtpTruthInfo.h" 00019 #include "AnalysisNtuples/ANtpHeaderInfo.h" 00020 #include "AnalysisNtuples/Module/ANtpInfoObjectFiller.h" 00021 00022 #ifndef JOBCMODULE_H 00023 #include "JobControl/JobCModule.h" 00024 #endif 00025 00026 #include<string> 00027 00028 class MomNavigator; 00029 class JobCommand; 00030 class NtpMCRecord; 00031 00032 //...................................................................... 00033 00034 class CondensedNtpModule : public JobCModule, public TObject 00035 { 00036 00037 public: 00038 CondensedNtpModule(); 00039 virtual ~CondensedNtpModule(); 00040 00041 void BeginJob(); 00042 JobCResult Ana(const MomNavigator *mom); 00043 const Registry& DefaultConfig() const; 00044 void Config(const Registry& r); 00045 void Help(); 00046 void EndJob(); 00047 00048 private: 00049 00050 std::string fFileName; 00051 std::string fTreeName; 00052 TFile *fNtpFile; 00053 TTree *fNtuple; 00054 Int_t fDetector; //0-->near, 1-->far 00055 Int_t fEndPlane; 00056 00057 ANtpEventInfo *fEventInfo; 00058 ANtpHeaderInfo *fHeaderInfo; 00059 ANtpShowerInfo *fShowerInfo; 00060 ANtpTrackInfo *fTrackInfo; 00061 ANtpTruthInfo *fTruthInfo; 00062 00063 ANtpInfoObjectFiller *fInfoFiller; 00064 00065 Int_t fStripInfoPresent; //set to 1 if using the full ntuples, 0 otherwise 00066 Int_t fDataType; //0-->Data, 1-->MC 00067 Int_t fReconstructed; //0 --> not reconstructed, 1--> reconstructed 00068 00069 void FillUnRecoedMCInformation(TClonesArray *mcArray, TClonesArray *stdArray); 00070 void ResetTreeVariables(); 00071 00072 ClassDef(CondensedNtpModule, 1) //CondensedNtpModule 00073 }; 00074 00075 #endif // CONDENSEDNTPMODULE_H 00076 00077
1.3.9.1