28 {
29
30 MsgStream log(
msgSvc(), name() );
31
32 log << MSG::INFO << "creating DTag sub Algorithm" << endmsg;
33
34 StatusCode sc;
35
36 if ( m_recD0 )
37 {
38 sc = createSubAlgorithm( "NeutralDReconstruction", "NeutralDReconstruction",
39 m_NeutralDReconstruction );
40 if ( sc.isFailure() )
41 {
42 log << MSG::ERROR << "Error while creating D0Reconstruction" << endmsg;
43 return StatusCode::FAILURE;
44 }
45 }
46
47 if ( m_recDp )
48 {
49 sc = createSubAlgorithm( "ChargedDReconstruction", "ChargedDReconstruction",
50 m_ChargedDReconstruction );
51 if ( sc.isFailure() )
52 {
53 log << MSG::ERROR << "Error while creating D+Reconstruction" << endmsg;
54 return StatusCode::FAILURE;
55 }
56 }
57
58 if ( m_recDs )
59 {
60 sc = createSubAlgorithm( "DsReconstruction", "DsReconstruction", m_DsReconstruction );
61 if ( sc.isFailure() )
62 {
63 log << MSG::ERROR << "Error while creating DsReconstruction" << endmsg;
64 return StatusCode::FAILURE;
65 }
66 }
67
68 if ( m_recLc )
69 {
70 sc = createSubAlgorithm( "LambdaCReconstruction", "LambdaCReconstruction",
71 m_LambdaCReconstruction );
72 if ( sc.isFailure() )
73 {
74 log << MSG::ERROR << "Error while creating LcReconstruction" << endmsg;
75 return StatusCode::FAILURE;
76 }
77 }
78
79 log << MSG::INFO << "Calling Sequence::initialize()" << endmsg;
80 return Gaudi::Sequence::initialize();
81}