BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
OfflineRevise.h
Go to the documentation of this file.
1#ifndef RAWDATA_OFFLINE_REVISE_H
2#define RAWDATA_OFFLINE_REVISE_H
3
5#include <string>
6#include <vector>
7#include <map>
8
9class SniperJSON;
10
12{
13 public:
14 OfflineRevise(const SniperJSON& json);
15 virtual ~OfflineRevise();
16
17 void fixHeader(Event::EventHeader* header);
18
19 int timeRound(int run) {
20 return (run < m_tRoundSwitch) ? 61 : 60;
21 }
22
23 private:
24 void fixEts1(Event::EventHeader* header);
25 void fixEts2(Event::EventHeader* header);
26
27 std::vector<std::pair<int, int> > m_runRanges;
28 std::vector<int> m_runs;
29 int m_tRoundSwitch;
30
31 int m_lastRun;
32 int m_lastEvent;
33 bool m_lastFlag;
34
35 long m_t0Sec;
36 long m_t0NanoShift0;
37 long m_t0NanoShift1;
38
39 unsigned long m_lastEts1;
40 unsigned long m_lastEts2Old;
41 unsigned long m_lastEts2New;
42};
43
44#endif
virtual ~OfflineRevise()
OfflineRevise(const SniperJSON &json)
int timeRound(int run)
void fixHeader(Event::EventHeader *header)