1#include "GaudiKernel/MsgStream.h"
2#include "GaudiKernel/SmartDataPtr.h"
16 Algorithm(name, pSvcLocator)
19 declareProperty(
"EMinOfBarrel", _pi0_cut.MinEnergyOfBarrelPhoton = 0.025);
20 declareProperty(
"EMinOfEndcap", _pi0_cut.MinEnergyOfEndcapPhoton = 0.045);
21 declareProperty(
"Angle", _pi0_cut.MinAngle = 20);
22 declareProperty(
"TimeLimit", _pi0_cut.TimeLimit = 20);
24 declareProperty(
"Pi0MinMass", _pi0_cut.MinMass = 0.10);
25 declareProperty(
"Pi0MaxMass", _pi0_cut.MaxMass = 0.18);
26 declareProperty(
"ChisqCut", _pi0_cut.Chisq = 50.0);
32 MsgStream log(
msgSvc(), name());
33 log << MSG::INFO <<
"in initialize()" <<endreq;
35 return StatusCode::SUCCESS;
42 MsgStream log(
msgSvc(), name());
43 log << MSG::INFO <<
"in execute()" <<endreq;
46 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
50 bool save2TDS =
false;
75 if ( sc.isFailure() ) {
76 log << MSG::ERROR <<
"could not register EvtRecPi0Col in TDS" <<endreq;
77 return StatusCode::FAILURE;
80 return StatusCode::SUCCESS;
87 MsgStream log(
msgSvc(), name());
88 log << MSG::INFO <<
"in finalize()" << endreq;
90 return StatusCode::SUCCESS;
95 double eraw = gTrk->
energy();
96 double phi = gTrk->
phi();
97 double the = gTrk->
theta();
99 return HepLorentzVector( eraw *
sin(the) *
cos(phi),
100 eraw *
sin(the) *
sin(phi),
double sin(const BesAngle a)
double cos(const BesAngle a)
ObjectVector< EvtRecPi0 > EvtRecPi0Col
_EXTERN_ std::string EvtRecPi0Col
_EXTERN_ std::string EvtRecEvent
_EXTERN_ std::string EvtRecTrackCol
Pi0List & make_pi0_list(const GammaList &gamma_list)
GammaList & make_gamma_list(UserPi0Cut &cut)
void Pi0ListToTDS(const Pi0List &pi0list, EvtRecPi0Col *recPi0Col)
GammaList & GetDefaultGammaList()
Pi0List & GetCandidatePi0List()
Pi0List & apply_criteria(const Criteria &cri)
static void SetForTrack(EvtRecEvent *_recEvt, EvtRecTrackCol *_recTrkCol)