BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
ReadRawData Class Reference

#include <ReadRawData.h>

+ Inheritance diagram for ReadRawData:

Public Member Functions

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

Detailed Description

Definition at line 3 of file ReadRawData.h.

Constructor & Destructor Documentation

◆ ReadRawData()

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

Definition at line 25 of file ReadRawData.cxx.

26 : Algorithm(name, pSvcLocator)
27{}

Member Function Documentation

◆ execute()

StatusCode ReadRawData::execute ( )

Definition at line 42 of file ReadRawData.cxx.

43{
44 StatusCode sc;
45 MsgStream log( msgSvc(), name() );
46
47 log << MSG::INFO << "================================================" << endreq;
48 log << MSG::INFO << "In execute()" << endreq;
49 log << MSG::INFO << "++++++++++++++++++++++++++++++++++++++++++++++++" << endreq;
50
51 SmartDataPtr<Event::EventHeader> evt(eventSvc(), EventModel::EventHeader);
52 if (!evt) {
53 log << MSG::ERROR << "Did not retrieve event" << endreq;
54 return StatusCode::FAILURE;
55 }
56 //Check event header
57
58 int eventNo = evt->eventNumber();
59 int runNo = evt->runNumber();
60
61 log << MSG::INFO << "ReadRawData: retrieved event: " << eventNo << " run: " << runNo << endreq;
62
63 log << MSG::INFO << "ReadRawData: start to read MdcDigiData" << endreq;
64 sc = readMdcDigiData();
65
66 log << MSG::INFO << "ReadRawData: start to read EmcDigiData" << endreq;
67 sc = readEmcDigiData();
68
69 log << MSG::INFO << "ReadRawData: start to read TofDigiData" << endreq;
70 sc = readTofDigiData();
71
72 log << MSG::INFO << "ReadRawData: start to read MucDigiData" << endreq;
73 sc = readMucDigiData();
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 m_count++;
79
80
81 return StatusCode::SUCCESS;
82}
int runNo
Definition: DQA_TO_DB.cxx:12
int eventNo
IMessageSvc * msgSvc()

◆ finalize()

StatusCode ReadRawData::finalize ( )

Definition at line 197 of file ReadRawData.cxx.

198{
199
200 MsgStream log(msgSvc(), name());
201
202 log << MSG::INFO << "In finalize()" << endreq;
203
204 return StatusCode::SUCCESS;
205}

◆ initialize()

StatusCode ReadRawData::initialize ( )

Definition at line 30 of file ReadRawData.cxx.

31{
32
33 MsgStream log(msgSvc(), name());
34 m_count = 0;
35
36 log << MSG::INFO << "in initialize()" << endreq;
37
38 return StatusCode::SUCCESS;
39}

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