BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataProviderSvc Class Reference

#include <RawDataProviderSvc.h>

+ Inheritance diagram for RawDataProviderSvc:

Public Member Functions

 RawDataProviderSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~RawDataProviderSvc ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvInterface)
 
void handle (const Incident &)
 
MdcDigiVecgetMdcDigiVec (uint32_t control=0)
 
TofDataMaptofDataMapOnlineMode (uint32_t control=1)
 
TofDataVectortofDataVectorOnlineMode (uint32_t control=1)
 
TofDataMaptofDataMapEstime ()
 
TofDataVectortofDataVectorEstime ()
 
TofDataMaptofDataMapTof (double estime=0.0)
 
TofDataVectortofDataVectorTof (double estime=0.0)
 
TofDataMaptofDataMapEmc (double estime=0.0)
 
TofDataVectortofDataVectorEmc (double estime=0.0)
 
EmcDigiColgetEmcDigiVec (uint32_t control)
 
MdcRawDataProvidergetMdcProvider ()
 
TofRawDataProvidergetTofProvider ()
 
EmcRawDataProvidergetEmcProvider ()
 
bool isOnlineMode ()
 
 RawDataProviderSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~RawDataProviderSvc ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvInterface)
 
void handle (const Incident &)
 
MdcDigiVecgetMdcDigiVec (uint32_t control=0)
 
TofDataMaptofDataMapOnlineMode (uint32_t control=1)
 
TofDataVectortofDataVectorOnlineMode (uint32_t control=1)
 
TofDataMaptofDataMapEstime ()
 
TofDataVectortofDataVectorEstime ()
 
TofDataMaptofDataMapTof (double estime=0.0)
 
TofDataVectortofDataVectorTof (double estime=0.0)
 
TofDataMaptofDataMapEmc (double estime=0.0)
 
TofDataVectortofDataVectorEmc (double estime=0.0)
 
EmcDigiColgetEmcDigiVec (uint32_t control)
 
MdcRawDataProvidergetMdcProvider ()
 
TofRawDataProvidergetTofProvider ()
 
EmcRawDataProvidergetEmcProvider ()
 
bool isOnlineMode ()
 
virtual MdcDigiVecgetMdcDigiVec (uint32_t control=0)=0
 
virtual MdcRawDataProvidergetMdcProvider ()=0
 
virtual TofDataMaptofDataMapOnlineMode (uint32_t control=1)=0
 
virtual TofDataVectortofDataVectorOnlineMode (uint32_t control=1)=0
 
virtual TofDataMaptofDataMapEstime ()=0
 
virtual TofDataVectortofDataVectorEstime ()=0
 
virtual TofDataMaptofDataMapTof (double estime=0)=0
 
virtual TofDataVectortofDataVectorTof (double estime=0)=0
 
virtual TofDataMaptofDataMapEmc (double estime=0)=0
 
virtual TofDataVectortofDataVectorEmc (double estime=0)=0
 
virtual TofRawDataProvidergetTofProvider ()=0
 
virtual EmcDigiColgetEmcDigiVec (uint32_t control=0)=0
 
virtual EmcRawDataProvidergetEmcProvider ()=0
 
virtual bool isOnlineMode ()=0
 
virtual MdcDigiVecgetMdcDigiVec (uint32_t control=0)=0
 
virtual MdcRawDataProvidergetMdcProvider ()=0
 
virtual TofDataMaptofDataMapOnlineMode (uint32_t control=1)=0
 
virtual TofDataVectortofDataVectorOnlineMode (uint32_t control=1)=0
 
virtual TofDataMaptofDataMapEstime ()=0
 
virtual TofDataVectortofDataVectorEstime ()=0
 
virtual TofDataMaptofDataMapTof (double estime=0)=0
 
virtual TofDataVectortofDataVectorTof (double estime=0)=0
 
virtual TofDataMaptofDataMapEmc (double estime=0)=0
 
virtual TofDataVectortofDataVectorEmc (double estime=0)=0
 
virtual TofRawDataProvidergetTofProvider ()=0
 
virtual EmcDigiColgetEmcDigiVec (uint32_t control=0)=0
 
virtual EmcRawDataProvidergetEmcProvider ()=0
 
virtual bool isOnlineMode ()=0
 

Additional Inherited Members

- Static Public Member Functions inherited from IRawDataProviderSvc
static const InterfaceID & interfaceID ()
 
static const InterfaceID & interfaceID ()
 

Detailed Description

Constructor & Destructor Documentation

◆ RawDataProviderSvc() [1/2]

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

◆ ~RawDataProviderSvc() [1/2]

RawDataProviderSvc::~RawDataProviderSvc ( )

Definition at line 43 of file RawDataProviderSvc.cxx.

43 {
44 if(m_mdcProvider) delete m_mdcProvider;
45 if(m_tofProvider) delete m_tofProvider;
46 if(m_emcProvider) delete m_emcProvider;
47}

◆ RawDataProviderSvc() [2/2]

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

◆ ~RawDataProviderSvc() [2/2]

RawDataProviderSvc::~RawDataProviderSvc ( )

Member Function Documentation

◆ finalize() [1/2]

StatusCode RawDataProviderSvc::finalize ( )
virtual

Definition at line 92 of file RawDataProviderSvc.cxx.

92 {
93 MsgStream log(messageService(), name());
94 log << MSG::INFO << "RawDataProviderSvc::finalize()" << endreq;
95
96 return StatusCode::SUCCESS;
97}

◆ finalize() [2/2]

virtual StatusCode RawDataProviderSvc::finalize ( )
virtual

◆ getEmcDigiVec() [1/2]

EmcDigiCol & RawDataProviderSvc::getEmcDigiVec ( uint32_t  control)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 40 of file Event/RawDataProviderSvc/RawDataProviderSvc-00-03-46/RawDataProviderSvc/RawDataProviderSvc.h.

40{return m_emcProvider->getEmcDigiVec(control); }
EmcDigiCol & getEmcDigiVec(uint32_t control)

◆ getEmcDigiVec() [2/2]

EmcDigiCol & RawDataProviderSvc::getEmcDigiVec ( uint32_t  control)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 40 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

40{return m_emcProvider->getEmcDigiVec(control); }

◆ getEmcProvider() [1/2]

EmcRawDataProvider * RawDataProviderSvc::getEmcProvider ( )
inlinevirtual

◆ getEmcProvider() [2/2]

EmcRawDataProvider * RawDataProviderSvc::getEmcProvider ( )
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 44 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

44{ return m_emcProvider; }

◆ getMdcDigiVec() [1/2]

◆ getMdcDigiVec() [2/2]

MdcDigiVec & RawDataProviderSvc::getMdcDigiVec ( uint32_t  control = 0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 29 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

29{ return m_mdcProvider->getMdcDigiVec(control); }

◆ getMdcProvider() [1/2]

MdcRawDataProvider * RawDataProviderSvc::getMdcProvider ( )
inlinevirtual

◆ getMdcProvider() [2/2]

MdcRawDataProvider * RawDataProviderSvc::getMdcProvider ( )
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 42 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

42{ return m_mdcProvider; }

◆ getTofProvider() [1/2]

TofRawDataProvider * RawDataProviderSvc::getTofProvider ( )
inlinevirtual

◆ getTofProvider() [2/2]

TofRawDataProvider * RawDataProviderSvc::getTofProvider ( )
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 43 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

43{ return m_tofProvider; }

◆ handle() [1/2]

void RawDataProviderSvc::handle ( const Incident &  inc)

Definition at line 110 of file RawDataProviderSvc.cxx.

110 {
111 MsgStream log( messageService(), name() );
112 log << MSG::DEBUG << "handle: " << inc.type() << endreq;
113 if ( inc.type() == "BeginEvent" ){
114 log << MSG::DEBUG << "Begin Event" << endreq;
115 m_tofProvider->handle( inc );
116 m_emcProvider->handle( inc );
117 m_mdcProvider->handle( inc );
118 }
119}
void handle(const Incident &)
void handle(const Incident &)
void handle(const Incident &)

◆ handle() [2/2]

void RawDataProviderSvc::handle ( const Incident &  )

◆ initialize() [1/2]

StatusCode RawDataProviderSvc::initialize ( )
virtual

Definition at line 50 of file RawDataProviderSvc.cxx.

50 {
51 MsgStream log(messageService(), name());
52 log << MSG::INFO << "RawDataProviderSvc::initialize()" << endreq;
53
54 StatusCode sc = Service::initialize();
55 if( sc.isFailure() ) return sc;
56
57 // tianhl for mt
58 std::string incidentSvc_name("IncidentSvc");
59 //if(isGaudiThreaded(name())){
60 // incidentSvc_name += getGaudiThreadIDfromName(name());
61 //}
62 // tianhl for mt
63 IIncidentSvc* incsvc;
64 sc = service(incidentSvc_name.c_str(), incsvc);
65 int priority = 100;
66 if( sc.isSuccess() ){
67 incsvc -> addListener(this, "BeginEvent", priority);
68 }
69
70 sc = m_mdcProvider->initialize();
71 if( sc.isFailure() ) return sc;
72
73
74 sc = m_tofProvider->initialize(m_onlineMode);
75 if( sc.isFailure() ) return sc;
76
77 if( m_skipLayers.size()>0 ) m_mdcProvider->setSkipLayers( m_skipLayers );
78 m_mdcProvider->setEffThreshold( m_effThreshold );
79
80 if(m_elow>0) m_emcProvider->setELowThreshold(RawDataUtil::EmcChargeChannel(m_elow));
81 if(m_tlow>0) m_emcProvider->setTLowThreshold(m_tlow);
82 if(m_thigh>0&&m_thigh<60) m_emcProvider->setTHighThreshold(m_thigh);
83 if(m_hotVec.size()>0) m_emcProvider->setHotCrystals(m_hotVec);
84 if(m_deadVec.size()>0) m_emcProvider->setHotCrystals(m_deadVec);
85 sc = m_emcProvider->initialize(m_onlineMode,serviceLocator());
86 if( sc.isFailure() ) return sc;
87
88 //log << MSG::INFO << "finish initializing..." << endreq;
89 return StatusCode::SUCCESS;
90}
virtual StatusCode initialize(bool mode=0, ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
StatusCode initialize(ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
StatusCode initialize(bool mode=false, ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)

◆ initialize() [2/2]

virtual StatusCode RawDataProviderSvc::initialize ( )
virtual

◆ isOnlineMode() [1/2]

bool RawDataProviderSvc::isOnlineMode ( )
inlinevirtual

◆ isOnlineMode() [2/2]

bool RawDataProviderSvc::isOnlineMode ( )
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 45 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

45{ return m_onlineMode; }

◆ queryInterface() [1/2]

StatusCode RawDataProviderSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvInterface 
)
virtual

Definition at line 99 of file RawDataProviderSvc.cxx.

100{
101 if ( IRawDataProviderSvc::interfaceID().versionMatch(riid) ) {
102 *ppvInterface = (IRawDataProviderSvc*)this;
103 }else{
104 return Service::queryInterface(riid, ppvInterface);
105 }
106 addRef();
107 return StatusCode::SUCCESS;
108}

◆ queryInterface() [2/2]

virtual StatusCode RawDataProviderSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvInterface 
)
virtual

◆ tofDataMapEmc() [1/2]

TofDataMap & RawDataProviderSvc::tofDataMapEmc ( double  estime = 0.0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 37 of file Event/RawDataProviderSvc/RawDataProviderSvc-00-03-46/RawDataProviderSvc/RawDataProviderSvc.h.

37{ return m_tofProvider->tofDataMapEmc(estime); }
TofDataMap & tofDataMapEmc(double estime=0.0)

◆ tofDataMapEmc() [2/2]

TofDataMap & RawDataProviderSvc::tofDataMapEmc ( double  estime = 0.0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 37 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

37{ return m_tofProvider->tofDataMapEmc(estime); }

◆ tofDataMapEstime() [1/2]

TofDataMap & RawDataProviderSvc::tofDataMapEstime ( )
inlinevirtual

◆ tofDataMapEstime() [2/2]

TofDataMap & RawDataProviderSvc::tofDataMapEstime ( )
inlinevirtual

◆ tofDataMapOnlineMode() [1/2]

TofDataMap & RawDataProviderSvc::tofDataMapOnlineMode ( uint32_t  control = 1)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 31 of file Event/RawDataProviderSvc/RawDataProviderSvc-00-03-46/RawDataProviderSvc/RawDataProviderSvc.h.

31{ return m_tofProvider->tofDataMapOnlineMode(control); }
TofDataMap & tofDataMapOnlineMode(uint32_t control=1)

◆ tofDataMapOnlineMode() [2/2]

TofDataMap & RawDataProviderSvc::tofDataMapOnlineMode ( uint32_t  control = 1)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 31 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

31{ return m_tofProvider->tofDataMapOnlineMode(control); }

◆ tofDataMapTof() [1/2]

TofDataMap & RawDataProviderSvc::tofDataMapTof ( double  estime = 0.0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 35 of file Event/RawDataProviderSvc/RawDataProviderSvc-00-03-46/RawDataProviderSvc/RawDataProviderSvc.h.

35{ return m_tofProvider->tofDataMapTof(estime); }
TofDataMap & tofDataMapTof(double estime=0.0)

◆ tofDataMapTof() [2/2]

TofDataMap & RawDataProviderSvc::tofDataMapTof ( double  estime = 0.0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 35 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

35{ return m_tofProvider->tofDataMapTof(estime); }

◆ tofDataVectorEmc() [1/2]

TofDataVector & RawDataProviderSvc::tofDataVectorEmc ( double  estime = 0.0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 38 of file Event/RawDataProviderSvc/RawDataProviderSvc-00-03-46/RawDataProviderSvc/RawDataProviderSvc.h.

38{ return m_tofProvider->tofDataVectorEmc(estime); }
TofDataVector & tofDataVectorEmc(double estime=0.0)

◆ tofDataVectorEmc() [2/2]

TofDataVector & RawDataProviderSvc::tofDataVectorEmc ( double  estime = 0.0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 38 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

38{ return m_tofProvider->tofDataVectorEmc(estime); }

◆ tofDataVectorEstime() [1/2]

TofDataVector & RawDataProviderSvc::tofDataVectorEstime ( )
inlinevirtual

◆ tofDataVectorEstime() [2/2]

TofDataVector & RawDataProviderSvc::tofDataVectorEstime ( )
inlinevirtual

◆ tofDataVectorOnlineMode() [1/2]

TofDataVector & RawDataProviderSvc::tofDataVectorOnlineMode ( uint32_t  control = 1)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 32 of file Event/RawDataProviderSvc/RawDataProviderSvc-00-03-46/RawDataProviderSvc/RawDataProviderSvc.h.

32{ return m_tofProvider->tofDataVectorOnlineMode(control); }
TofDataVector & tofDataVectorOnlineMode(uint32_t control=1)

◆ tofDataVectorOnlineMode() [2/2]

TofDataVector & RawDataProviderSvc::tofDataVectorOnlineMode ( uint32_t  control = 1)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 32 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

32{ return m_tofProvider->tofDataVectorOnlineMode(control); }

◆ tofDataVectorTof() [1/2]

TofDataVector & RawDataProviderSvc::tofDataVectorTof ( double  estime = 0.0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 36 of file Event/RawDataProviderSvc/RawDataProviderSvc-00-03-46/RawDataProviderSvc/RawDataProviderSvc.h.

36{ return m_tofProvider->tofDataVectorTof(estime); }
TofDataVector & tofDataVectorTof(double estime=0.0)

◆ tofDataVectorTof() [2/2]

TofDataVector & RawDataProviderSvc::tofDataVectorTof ( double  estime = 0.0)
inlinevirtual

Implements IRawDataProviderSvc.

Definition at line 36 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderSvc.h.

36{ return m_tofProvider->tofDataVectorTof(estime); }

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