00001
00002
00003
00004
00005
00006
00008 #ifndef CALDET2003PLOTSMODULE_H
00009 #define CALDET2003PLOTSMODULE_H
00010 #ifndef JOBCMODULE_H
00011 #include "JobControl/JobCModule.h"
00012 #endif
00013
00014 #include "Registry/Registry.h"
00015
00016 #include <string>
00017
00018 class TFile;
00019 class TH1F;
00020 class TH2F;
00021 class TH1D;
00022 class TProfile;
00023 class TProfile2D;
00024 class TDirectory;
00025 class TEventList;
00026
00027 class CalDet2003PlotsModule : public JobCModule
00028 {
00029 public:
00030 CalDet2003PlotsModule();
00031 ~CalDet2003PlotsModule();
00032
00033 public:
00034
00035 void BeginJob();
00036 void EndJob();
00037
00038
00039 JobCResult Ana(const MomNavigator* mom);
00040
00041
00042
00043 const Registry& DefaultConfig() const;
00044 void Config(const Registry& r);
00045
00046
00047
00048 void Help();
00049
00050
00051 private:
00052 static int PlaneTrigger(float* qvec, int len);
00053
00054 static int fcount;
00055 static int fNumObj;
00056 static std::string fFilePath;
00057 static std::string fFileName;
00058 static TFile* fOut;
00059
00060 std::string fDirName;
00061
00062 TDirectory *fDir;
00063 TH1F* h_tdc0;
00064 TH1F* h_tdc1;
00065 TH1F* h_tdc2;
00066 TH1F* h_tdcdiff;
00067
00068 TH1F *h_cera0;
00069 TH1F *h_cera1;
00070 TH1F *h_cera2;
00071
00072 TH1F *h_cert0;
00073 TH1F *h_cert1;
00074 TH1F *h_cert2;
00075
00076 TH1F *h_hittime;
00077 TH1F *h_hittimenear;
00078 TH1F *h_hittimefar;
00079
00080 TH1F *h_pid;
00081 TH1F *h_nov;
00082 TH1F *h_inct;
00083 TH1F *h_olchi2;
00084 TH1F *h_beamp;
00085
00086 TH1F *h_nhits;
00087 TH2F *h_nhitsfarnear;
00088 TH1D *h_nhitsfar;
00089 TH1D *h_nhitsnear;
00090
00091 TH1F *h_nhitstrips;
00092 TH2F *h_nhitstripsfarnear;
00093 TH1D *h_nhitstripsfar;
00094 TH1D *h_nhitstripsnear;
00095
00096 TH1F *h_nhitplanes;
00097 TH2F *h_nhitplanesfarnear;
00098 TH1D *h_nhitplanesfar;
00099 TH1D *h_nhitplanesnear;
00100
00101 TH2F *h_svp;
00102 TH2F *h_svpfar;
00103 TH2F *h_svpnear;
00104
00105 TH2F *h_wsvp;
00106 TH2F *h_wsvpfar;
00107 TH2F *h_wsvpnear;
00108
00109 TH1F *h_tmip;
00110 TH2F *h_tmipfarnear;
00111 TH1D *h_tmipfar;
00112 TH1D *h_tmipnear;
00113
00114 TH2F *h_mipvplane;
00115 TH2F *h_mipvplanefar;
00116 TH2F *h_mipvplanenear;
00117
00118 TProfile *h_mipvplane_pfx;
00119 TProfile *h_mipvplanefar_pfx;
00120 TProfile *h_mipvplanenear_pfx;
00121
00122 TH2F *h_mipvplanediff;
00123 TH2F *h_mipvplaneratio;
00124
00125 TProfile *h_mipvplanediff_pfx;
00126 TProfile *h_mipvplaneratio_pfx;
00127
00128 TH1F *h_hitadc;
00129 TH2F *h_hitadcfarnear;
00130 TH1D *h_hitadcfar;
00131 TH1D *h_hitadcnear;
00132
00133 TH1F *h_fartime;
00134 TH1F *h_neartime;
00135
00136 TH1F *h_triggertime;
00137 TH1F *h_triggertimenofar;
00138 TH1F *h_triggertimenonear;
00139
00140
00141 TEventList* el_snarls;
00142
00143 };
00144 #endif // CALDET2003PLOTSMODULE_H
00145