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