00001 // 00002 //File: RecEventAssemblyAlg.h 00003 //Description: Assemble Rec Events. 00004 //Author: Wang LiangLiang 00005 //History: 2006/3/7 created by Wang Liangliang 00006 // 00007 00008 // Change EventAssemblyAlg.h 00009 // by hekl 2008.03.19 00010 00011 #ifndef Event_EventAssemblyAlg_H 00012 #define Event_EventAssemblyAlg_H 00013 00014 #include "GaudiKernel/AlgFactory.h" 00015 #include "GaudiKernel/Algorithm.h" 00016 #include "GaudiKernel/NTuple.h" 00017 00018 00019 class EventAssemblyAlg:public Algorithm 00020 { 00021 public: 00022 EventAssemblyAlg(const std::string& name, ISvcLocator* pSvcLocator); 00023 StatusCode initialize(); 00024 StatusCode execute(); 00025 StatusCode finalize(); 00026 00027 private: 00028 double thetaCut(double p,double nSigma,int parId); 00029 double phiCut(double p,double nSigma,int parId); 00030 00031 bool myMsgFlag; 00032 bool myActiveCutFlag; 00033 00034 double myEmcThetaCut;//Emc matching cut 00035 double myEmcPhiCut;//Emc matching cut 00036 00037 double myEmcThetaNSigmaCut; 00038 double myEmcPhiNSigmaCut; 00039 int myParticleId; 00040 int m_Output; //switch of output RecAssemble.root 00041 00042 NTuple::Tuple* myNTuple1; 00043 NTuple::Item<double> myExted; 00044 NTuple::Item<double> myMatched; 00045 NTuple::Item<double> myEnergyMatched; 00046 }; 00047 00048 #endif 00049