BOSS 8.0.0
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 ) {}

Member Function Documentation

◆ execute()

StatusCode ReadRawData::execute ( )

Definition at line 40 of file ReadRawData.cxx.

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

◆ finalize()

StatusCode ReadRawData::finalize ( )

Definition at line 207 of file ReadRawData.cxx.

207 {
208
209 MsgStream log( msgSvc(), name() );
210
211 log << MSG::INFO << "In finalize()" << endmsg;
212
213 return StatusCode::SUCCESS;
214}

◆ initialize()

StatusCode ReadRawData::initialize ( )

Definition at line 29 of file ReadRawData.cxx.

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

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