BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataInputSvc.h
Go to the documentation of this file.
1#ifndef RAWDATACNVSVC_RAWDATAFILEINPUTSVC_H
2#define RAWDATACNVSVC_RAWDATAFILEINPUTSVC_H
3
4//===================================================================
5// RawDataFileInputSvc.h
6//===================================================================
7//
8// Description: This class implements the interface RawDataInputSvc for
9// event selector to read the events for Files.
10//
11//-------------------------------------------------------------------
12
13
14// Include files.
15#include "GaudiKernel/Service.h"
16#include "GaudiKernel/ISvcLocator.h"
17#include "IRawFile/IRawReader.h"
21
22class OfflineRevise;
23
24static const InterfaceID IID_RawDataInputSvc("RawDataInputSvc", 1, 0);
25
26class RawDataInputSvc: public Service,
27 virtual public IRawDataInputSvc
28{
29 public:
30
31 static const InterfaceID& interfaceID() { return IID_RawDataInputSvc; }
32
33 // Constructors:
34 RawDataInputSvc(const std::string& name, ISvcLocator* svcloc);
35
36 // Destructor.
37 virtual ~RawDataInputSvc();
38
39 // Implementation of the RawDataInputSvc interface methods.
40 virtual StatusCode initialize();
41 virtual StatusCode finalize();
42
43 virtual RAWEVENT* nextEvent();
44 virtual RAWEVENT* currentEvent() ;
45 virtual bool setCurrentEvent(RAWEVENT* m_onlinere);//TR
46
47 std::string currentFile() const { return m_reader->currentFile(); }
48
49 // 0-NormalNetMode, 1-OnlineMode, 2-OfflineMode, 3-DistBossMode
50 int runMode() { return m_mode; }
51
52 uint32_t runNo() { return m_reader->runNo(); }
53
54 const SniperJSON& config(const std::string& key) { return m_json[key]; }
55
56 OfflineRevise* offlineRevisor() { return m_revisor; }
57
58 private:
59
60 RAWEVENT* m_re;
61 IRawReader* m_reader; // used by OfflineMode and DistBossMode
62 OfflineRevise* m_revisor;
63
64 // 0-NormalNetMode, 1-OnlineMode, 2-OfflineMode, 3-DistBossMode
65 int m_mode;
66 bool m_keepRdm;
67
68 // OfflineMode parameter
69 std::vector<std::string> m_inputFiles;
70
71 // DistBossMode parameter
72 std::string m_evtServer;
73
74 // The config file for offline revision
75 std::string m_conf4Revise;
76
77 // SubDetectorFragments & ROBs
78 const uint32_t** m_sds;
79 const uint32_t** m_robs;
80
81 // configurations in json
82 SniperJSON m_json;
83};
84
85#endif
86
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
Definition: Taupair.h:42
virtual std::string currentFile()=0
virtual uint32_t runNo()=0
uint32_t runNo()
virtual bool setCurrentEvent(RAWEVENT *m_onlinere)
virtual StatusCode initialize()
virtual StatusCode finalize()
const SniperJSON & config(const std::string &key)
virtual ~RawDataInputSvc()
virtual RAWEVENT * currentEvent()
std::string currentFile() const
OfflineRevise * offlineRevisor()
static const InterfaceID & interfaceID()
virtual RAWEVENT * nextEvent()