BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DataInfoSvc Class Reference

#include <DataInfoSvc.h>

Inheritance diagram for DataInfoSvc:

Public Member Functions

 DataInfoSvc (const std::string &name, ISvcLocator *svcloc)
 ~DataInfoSvc ()
virtual StatusCode initialize ()
virtual StatusCode finalize ()
string getDecayOptions ()
std::vector< int > getTotEvtNo ()
void setDecayCard (string card)
void setTotEvtNo (std::vector< int > i)
unsigned int flag1 ()
 Retrieve flags, pingrg-2010-12-9.
unsigned int flag2 ()
void setFlag1 (unsigned int value)
 Update flags.
void setFlag2 (unsigned int value)

Detailed Description

Definition at line 16 of file DataInfoSvc.h.

Constructor & Destructor Documentation

◆ DataInfoSvc()

DataInfoSvc::DataInfoSvc ( const std::string & name,
ISvcLocator * svcloc )

Definition at line 22 of file DataInfoSvc.cxx.

23 : base_class( name, svcloc ) {
24 // declare properties
25}

Referenced by DataInfoSvc().

◆ ~DataInfoSvc()

DataInfoSvc::~DataInfoSvc ( )

Definition at line 27 of file DataInfoSvc.cxx.

27{}

Member Function Documentation

◆ finalize()

StatusCode DataInfoSvc::finalize ( )
virtual

Definition at line 66 of file DataInfoSvc.cxx.

66 {
67 MsgStream log( msgSvc(), name() );
68 log << MSG::INFO << "DataInfoSvc::finalize()" << endmsg;
69 return StatusCode::SUCCESS;
70}
IMessageSvc * msgSvc()

◆ flag1()

unsigned int DataInfoSvc::flag1 ( )
inline

Retrieve flags, pingrg-2010-12-9.

Definition at line 33 of file DataInfoSvc.h.

33{ return m_flag1; };

◆ flag2()

unsigned int DataInfoSvc::flag2 ( )
inline

Definition at line 34 of file DataInfoSvc.h.

34{ return m_flag2; };

◆ getDecayOptions()

string DataInfoSvc::getDecayOptions ( )
inline

Definition at line 26 of file DataInfoSvc.h.

26{ return m_decayOptions; }

◆ getTotEvtNo()

std::vector< int > DataInfoSvc::getTotEvtNo ( )
inline

Definition at line 27 of file DataInfoSvc.h.

27{ return m_totEvtNo; }

◆ initialize()

StatusCode DataInfoSvc::initialize ( )
virtual

Definition at line 38 of file DataInfoSvc.cxx.

38 {
39 MsgStream log( msgSvc(), name() );
40 log << MSG::INFO << "DataInfoSvc::initialize()" << endmsg;
41
42 StatusCode sc = Service::initialize();
43 // sc = setProperties();
44 return StatusCode::SUCCESS;
45}

◆ setDecayCard()

void DataInfoSvc::setDecayCard ( string card)

Definition at line 47 of file DataInfoSvc.cxx.

47 {
48 ifstream fin( card.c_str() );
49 string tempString;
50 int i = 0;
51 while ( getline( fin, tempString ) )
52 {
53 if ( tempString.size() > 0 )
54 {
55 m_decayOptions += tempString;
56 m_decayOptions += "\n";
57 }
58 i++;
59 }
60 if ( i > 100 ) m_decayOptions = "";
61 MsgStream log( msgSvc(), name() );
62 log << MSG::INFO << "set decayOptions: " << endmsg;
63 log << MSG::INFO << endmsg << m_decayOptions << endmsg;
64}

◆ setFlag1()

void DataInfoSvc::setFlag1 ( unsigned int value)
inline

Update flags.

Definition at line 36 of file DataInfoSvc.h.

36{ m_flag1 = value; }

◆ setFlag2()

void DataInfoSvc::setFlag2 ( unsigned int value)
inline

Definition at line 37 of file DataInfoSvc.h.

37{ m_flag2 = value; }

◆ setTotEvtNo()

void DataInfoSvc::setTotEvtNo ( std::vector< int > i)
inline

Definition at line 30 of file DataInfoSvc.h.

30{ m_totEvtNo = i; }

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