00001
00006 #ifndef _rmcsecondary_h
00007 #define _rmcsecondary_h
00008
00009 #include "TObject.h"
00010 #include "TClonesArray.h"
00011 #include "iostream.h"
00012 #include "TTree.h"
00013 #include "TChain.h"
00014 #include "TBranch.h"
00015 #include "TFile.h"
00016 #include "TNamed.h"
00017 #include "TBuffer.h"
00018 #include "TControlBar.h"
00019 #include "TCut.h"
00020 #include "TEventList.h"
00021 #include "TString.h"
00022 #include "TH1.h"
00023 #include "TButton.h"
00024 #include "TArrayI.h"
00025 #include "TList.h"
00026 #include "ReactorDetector.hh"
00027 #include "RMCPMT.hh"
00028
00029
00030 #include "TTreeFormula.h"
00031 #include "TProofServ.h"
00032 #include "TSystem.h"
00033
00034
00035 class RMCSecondary : public TObject
00036 {
00037
00038 public:
00039
00040 RMCSecondary();
00041 RMCSecondary(ReactorDetector& Detector, int s);
00042 ~RMCSecondary();
00043
00044 void SetSecondaryType(int sectype){fSecondaryType = sectype;};
00045 void SetNumPMTs(int NPMTs){fNumPMTs = NPMTs;};
00046 void SetSecondaryGammas(int ngammas){fSecondaryGammas = ngammas;};
00047 void SetSecondaryKE(double energy){fSecondaryKE = energy;};
00048 void SetSecondaryEDeposited(double energy){fSecondaryEDeposited = energy;};
00049 void SetSecondaryTime(double time){fSecondaryTime = time;};
00050 void SetSecondaryDirection(double* direction)
00051 {
00052 fSecondaryDirection[0]= *direction++;
00053 fSecondaryDirection[1]= *direction++;
00054 fSecondaryDirection[2]= *direction++;
00055 };
00056
00057 int GetSecondaryType(){return fSecondaryType;};
00058 int GetNumPMTs(){return fNumPMTs;};
00059 int GetSecondaryGammas(){return fSecondaryGammas;};
00060 double GetSecondaryEDeposited(){return fSecondaryEDeposited;}
00061 double GetSecondaryKE(){return fSecondaryKE;}
00062 double GetSecondaryTime(){return fSecondaryTime;}
00063 double* GetSecondaryDirection(){return fSecondaryDirection;}
00064
00065
00066
00067 TObjArray *fPMTs;
00068 int fNPMT;
00069
00070
00071 private:
00072
00073 int fSecondaryType;
00074 int fSecondaryGammas;
00075 double fSecondaryKE;
00076 double fSecondaryEDeposited;
00077 double fSecondaryDirection[3];
00078 double fSecondaryTime;
00079 int fNumPMTs;
00080
00081 ClassDef(RMCSecondary,2)
00082
00083
00084 };
00085
00086 #endif
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097