BOSS 7.1.1
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
24class RawDataInputSvc: public extends<Service,
25 IRawDataInputSvc>
26{
27 public:
28
29 // Constructors:
30 RawDataInputSvc(const std::string& name, ISvcLocator* svcloc);
31
32 // Destructor.
33 virtual ~RawDataInputSvc();
34
35 // Implementation of the RawDataInputSvc interface methods.
36 virtual StatusCode initialize();
37 virtual StatusCode finalize();
38
39 virtual RAWEVENT* nextEvent();
40 virtual RAWEVENT* currentEvent() ;
41 virtual bool setCurrentEvent(RAWEVENT* m_onlinere);//TR
42
43 std::string currentFile() const { return m_reader->currentFile(); }
44
45 // 0-NormalNetMode, 1-OnlineMode, 2-OfflineMode, 3-DistBossMode
46 int runMode() { return m_mode; }
47
48 uint32_t runNo() { return m_reader->runNo(); }
49
50 const SniperJSON& config(const std::string& key) { return m_json[key]; }
51
52 OfflineRevise* offlineRevisor() { return m_revisor; }
53
54 private:
55
56 RAWEVENT* m_re;
57 IRawReader* m_reader; // used by OfflineMode and DistBossMode
58 OfflineRevise* m_revisor;
59
60 // 0-NormalNetMode, 1-OnlineMode, 2-OfflineMode, 3-DistBossMode
61 int m_mode;
62 bool m_keepRdm;
63
64 // OfflineMode parameter
65 std::vector<std::string> m_inputFiles;
66
67 // DistBossMode parameter
68 std::string m_evtServer;
69
70 // The config file for offline revision
71 std::string m_conf4Revise;
72
73 // SubDetectorFragments & ROBs
74 const uint32_t** m_sds;
75 const uint32_t** m_robs;
76
77 // configurations in json
78 SniperJSON m_json;
79};
80
81#endif
82
*************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
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
RawDataInputSvc(const std::string &name, ISvcLocator *svcloc)
OfflineRevise * offlineRevisor()
virtual RAWEVENT * nextEvent()