32 {
33 MsgStream log(
msgSvc(), name());
34
35 log << MSG::INFO << "in initialize()" << endmsg;
36 StatusCode sc;
37
38 if ( m_selBhabha ) {
39 sc = createSubAlgorithm( "DQASelBhabha", "DQASelBhabha", m_dqaBhabha);
40 if (sc.isFailure()) {
41 log << MSG::ERROR << "Error creating Sub-Algorithm DQASelBhabha" << endreq;
42 return StatusCode::FAILURE;
43 }
44 }
45
46 if ( m_selDimu ) {
47 sc = createSubAlgorithm( "DQASelDimu", "DQASelDimu", m_dqaDimu);
48 if (sc.isFailure()) {
49 log << MSG::ERROR << "Error creating Sub-Algorithm DQASelDimu" << endreq;
50 return StatusCode::FAILURE;
51 }
52 }
53
54 if ( m_selHadron ) {
55 sc = createSubAlgorithm( "DQASelHadron", "DQASelHadron", m_dqaHadron);
56 if (sc.isFailure()) {
57 log << MSG::ERROR << "Error creating Sub-Algorithm DQASelHadron" << endreq;
58 return StatusCode::FAILURE;
59 }
60 }
61
62 if ( m_selRhopi ) {
63 sc = createSubAlgorithm( "DQARhopi", "DQARhopi", m_dqaRhopi);
64 if (sc.isFailure()) {
65 log << MSG::ERROR << "Error creating Sub-Algorithm DQARhopiAlg" << endreq;
66 return StatusCode::FAILURE;
67 }
68 }
69
70 if ( m_selPpbar ) {
71 sc = createSubAlgorithm( "DQAJpsi2PPbarAlg", "DQAJpsi2PPbarAlg", m_dqaPpbar);
72 if (sc.isFailure()) {
73 log << MSG::ERROR << "Error creating Sub-Algorithm Jpsi2PPbarAlg" << endreq;
74 return StatusCode::FAILURE;
75 }
76 }
77
78 if ( m_selKstark ) {
79 sc = createSubAlgorithm( "DQAKsKpi", "DQAKsKpi", m_dqaKstark);
80 if (sc.isFailure()) {
81 log << MSG::ERROR << "Error creating Sub-Algorithm DQAKsKpi" << endreq;
82 return StatusCode::FAILURE;
83 }
84 }
85
86 if ( m_selLambdalambda ) {
87 sc = createSubAlgorithm( "JsiLL", "JsiLL", m_dqaLambdalambda);
88 if (sc.isFailure()) {
89 log << MSG::ERROR << "Error creating Sub-Algorithm JsiLL" << endreq;
90 return StatusCode::FAILURE;
91 }
92 }
93
94 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
95 return StatusCode::SUCCESS;
96
97
98}