24 {
25
26 MsgStream log(
msgSvc(), name());
27
28 log << MSG::INFO << "creating VeeVertex sub Algorithm" << endreq;
29
30 StatusCode sc;
31
32 if(m_recKShort) {
33 sc = createSubAlgorithm("KShortReconstruction", "KShortReconstruction", m_KShortReconstruction);
34 if(sc.isFailure()) {
35 log << MSG::ERROR << "Error while creating KShortReconstruction" << endreq;
36 return StatusCode::FAILURE;
37 }
38 }
39 if(m_recLambda) {
40 sc = createSubAlgorithm("LambdaReconstruction", "LambdaReconstruction", m_LambdaReconstruction);
41 if(sc.isFailure()) {
42 log << MSG::ERROR << "Error while creating LambdaReconstruction" << endreq;
43 return StatusCode::FAILURE;
44 }
45 }
46 if(m_recGC) {
47 sc = createSubAlgorithm("GammaConversionReconstruction", "GammaConversionReconstruction", m_gcReconstruction);
48 if(sc.isFailure()) {
49 log << MSG::ERROR << "Error while creating GammaConversionReconstruction" << endreq;
50 return StatusCode::FAILURE;
51 }
52 }
53
54 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
55 return StatusCode::SUCCESS;
56
57}