CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TofRawDataProvider.h
Go to the documentation of this file.
1#ifndef TOFRAWDATAPROVIDER_H
2#define TOFRAWDATAPROVIDER_H
3
4#include "GaudiKernel/ISvcLocator.h"
5#include "GaudiKernel/IMessageSvc.h"
6#include "GaudiKernel/IIncidentListener.h"
10
11
12const double timeDiff = 20.0;
13const double tClockDiff = 1.0;
14const double timeForward = 120.0;
15const double timeBackward = 24.0;
16const double tClockForward = 5.0;
17const double tClockBackward = 1.0;
18
19// RawDataProvider for TOF
20// author: Sun Shengsen
22 public:
24 TofRawDataProvider( const char* name );
26
27 // initialize service point
28 StatusCode initialize( bool mode= false, ISvcLocator* svcLoc=0, IMessageSvc* pMsg=0 );
29
30 // Incident handler
31 void handle(const Incident&);
32
33 // get multimap or vector of the TofData
34 void tofDataMapFull();
35
36 // online mode
37 TofDataMap& tofDataMapOnlineMode(uint32_t control=1);
38 TofDataVector& tofDataVectorOnlineMode(uint32_t control=1);
39
40 // event start time
43
44 // tof reconstruction
45 TofDataMap& tofDataMapTof( double estime = 0.0 );
46 TofDataVector& tofDataVectorTof( double estime = 0.0 );
47
48 // emc reconstruction
49 TofDataMap& tofDataMapEmc( double estime = 0.0 );
50 TofDataVector& tofDataVectorEmc( double estime = 0.0 );
51
53
54
55 private:
56 bool m_hasFilled;
57 TofDataMap m_tofDataMap; // storage of result
58 // OnlineMode
59 TofDataMap m_tofDataMapOnline;
60 TofDataVector m_tofDataVectorOnline;
61 // Event Start Time
62 TofDataMap m_tofDataMapEstime;
63 TofDataVector m_tofDataVectorEstime;
64 // TOF Reconstruction
65 TofDataMap m_tofDataMapTof;
66 TofDataVector m_tofDataVectorTof;
67 // EMC Reconstruction using energy deposit in TOF
68 TofDataMap m_tofDataMapEmc;
69 TofDataVector m_tofDataVectorEmc;
70
71};
72#endif
std::multimap< unsigned int, TofData * > TofDataMap
Definition TofData.h:244
std::vector< TofData * > TofDataVector
Definition TofData.h:247
const double tClockBackward
const double tClockForward
const double timeDiff
const double timeForward
const double tClockDiff
const double timeBackward
TofDataMap & tofDataMapTof(double estime=0.0)
void handle(const Incident &)
TofDataVector & tofDataVectorTof(double estime=0.0)
MrpcCalibSvc * mrpcCaliSvc
TofDataMap & tofDataMapOnlineMode(uint32_t control=1)
TofDataMap & tofDataMapEstime()
TofDataVector & tofDataVectorEmc(double estime=0.0)
TofDataVector & tofDataVectorEstime()
TofDataVector & tofDataVectorOnlineMode(uint32_t control=1)
StatusCode initialize(bool mode=false, ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
TofDataMap & tofDataMapEmc(double estime=0.0)