BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
VeeVertex Class Reference

#include <VeeVertex.h>

+ Inheritance diagram for VeeVertex:

Public Member Functions

 VeeVertex (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 

Detailed Description

Definition at line 8 of file VeeVertex.h.

Constructor & Destructor Documentation

◆ VeeVertex()

VeeVertex::VeeVertex ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 15 of file VeeVertex.cxx.

15 :
16 Algorithm(name, pSvcLocator) {
17 //Declare the properties
18 declareProperty("KShortReconstruction", m_recKShort = true);
19 declareProperty("LambdaReconstruction", m_recLambda = true);
20 declareProperty("GammaConversionReconstruction", m_recGC = true);
21}

Member Function Documentation

◆ execute()

StatusCode VeeVertex::execute ( )

Definition at line 99 of file VeeVertex.cxx.

99 {
100 MsgStream log(msgSvc(), name());
101
102 StatusCode sc = clearEvtRecVeeVertexCol(log);
103 if (sc != StatusCode::SUCCESS) {
104 return sc;
105 }
106
107 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
108 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
109 for(; it != end; it++) {
110 sc = (*it)->execute();
111 if(sc.isFailure()) {
112 log << "Error executing selection " << (*it)->name() << endreq;
113 }
114 }
115
116 DataObject* aEvtRecVeeVertexCol;
117 eventSvc()->findObject("/Event/EvtRec/EvtRecVeeVertexCol", aEvtRecVeeVertexCol);
118 if (aEvtRecVeeVertexCol == NULL) {
119 registerEvtRecVeeVertexCol(log);
120 }
121
122 return StatusCode::SUCCESS;
123}
IMessageSvc * msgSvc()

◆ finalize()

StatusCode VeeVertex::finalize ( )

Definition at line 126 of file VeeVertex.cxx.

126 {
127
128 MsgStream log(msgSvc(), name());
129 log << MSG::INFO << "in finalize()" << endmsg;
130 return StatusCode::SUCCESS;
131}

◆ initialize()

StatusCode VeeVertex::initialize ( )

Definition at line 24 of file VeeVertex.cxx.

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}

The documentation for this class was generated from the following files: