BOSS 7.1.1
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 16 of file VeeVertex.cxx.

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

Member Function Documentation

◆ execute()

StatusCode VeeVertex::execute ( )

Definition at line 100 of file VeeVertex.cxx.

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

◆ finalize()

StatusCode VeeVertex::finalize ( )

Definition at line 127 of file VeeVertex.cxx.

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

◆ initialize()

StatusCode VeeVertex::initialize ( )

Definition at line 25 of file VeeVertex.cxx.

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

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