BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/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"
7#include "RawDataProviderSvc/RawDataProviderBase.h"
8#include "RawDataProviderSvc/TofData.h"
9
10
11const double timeDiff = 20.0;
12const double tClockDiff = 1.0;
13const double timeForward = 120.0;
14const double timeBackward = 24.0;
15const double tClockForward = 5.0;
16const double tClockBackward = 1.0;
17
18const double timeDiffMRPC = 5.0;
19const double totForward = 0.0;
20const double totBackward = 50.0;
21
22// RawDataProvider for TOF
23// author: Sun Shengsen
25 public:
27 TofRawDataProvider( const char* name );
29
30 // initialize service point
31 StatusCode initialize( bool mode= false, ISvcLocator* svcLoc=0, IMessageSvc* pMsg=0 );
32
33 // Incident handler
34 void handle(const Incident&);
35
36 // get multimap or vector of the TofData
38
39 // online mode
40 TofDataMap& tofDataMapOnlineMode(uint32_t control=1);
42
43 // event start time
46
47 // tof reconstruction
48 TofDataMap& tofDataMapTof( double estime = 0.0 );
49 TofDataVector& tofDataVectorTof( double estime = 0.0 );
50
51 // emc reconstruction
52 TofDataMap& tofDataMapEmc( double estime = 0.0 );
53 TofDataVector& tofDataVectorEmc( double estime = 0.0 );
54
55 private:
56 int m_run, m_event;
57 bool m_hasFilled;
58 TofDataMap m_tofDataMap; // storage of result
59 // OnlineMode
60 TofDataMap m_tofDataMapOnline;
61 TofDataVector m_tofDataVectorOnline;
62 // Event Start Time
63 TofDataMap m_tofDataMapEstime;
64 TofDataVector m_tofDataVectorEstime;
65 // TOF Reconstruction
66 TofDataMap m_tofDataMapTof;
67 TofDataVector m_tofDataVectorTof;
68 // EMC Reconstruction using energy deposit in TOF
69 TofDataMap m_tofDataMapEmc;
70 TofDataVector m_tofDataVectorEmc;
71
72};
73#endif
TofDataMap & tofDataMapTof(double estime=0.0)
TofRawDataProvider(const char *name)
void handle(const Incident &)
TofDataVector & tofDataVectorTof(double estime=0.0)
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)