BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
tofcalgsec.h
Go to the documentation of this file.
1#ifndef tofcalgsec_Header
2#define tofcalgsec_Header
3
4#include "GaudiKernel/Algorithm.h"
5#include "GaudiKernel/NTuple.h"
6#include "TofCalibCheck.h"
7
8using namespace std;
9class tofcalgsec : public Algorithm {
10
11public:
12 tofcalgsec( const std::string& name, ISvcLocator* pSvcLocator );
14 StatusCode initialize();
15 StatusCode beginRun();
16 StatusCode execute();
17 StatusCode finalize();
18
19protected:
20 bool testbit( unsigned int n ) {
21 if ( n > m_calibItem.size() ) return false;
22 return m_calibItem[n] == '0' ? false : true;
23 }
24
25private:
26 bool m_online; // online,offline
27 bool m_calibration; // online and calibration or offline
28 std::string m_workdir; // by default workdir=.
29 std::string m_datafile_dir; // dir of data files are in
30 std::vector<std::string> m_datafile_barrel; // specify input data file
31 std::vector<std::string> m_datafile_endcap; // specify input data file
32 std::vector<std::string> m_datafile_etf; // specify input data file
33 std::vector<std::string> m_barrelfile; // specify input data file
34 std::vector<std::string> m_endcapfile; // specify input data file
35 std::vector<std::string> m_etffile; // specify input data file
36 std::string m_calibItem;
37 // bit 1 1 1 1 1 1 1 1 1 1 1 1;
38 // Endcap Barrel: Q0, EffV, AttenLength, Time
39 unsigned int m_tcorrzbin; // the bin for time correltation
40 unsigned int m_barrelzbin; // the bin for barrel sigma calibration
41 unsigned int m_endcaprbin; // the bin for endcap sigma calibration
42 unsigned int m_endcapQrbin; // the bin for endcap Q calibration
43
44 bool FILE_HAS_BEEN_READ; // indicate that
45
46 TofCalibCheck* m_checkbarrel;
47 NTuple::Tuple* mtuple_barrel;
48 TofCalibCheck* m_checkendcap;
49 NTuple::Tuple* mtuple_endcap;
50 TofCalibCheck* m_checketf;
51 NTuple::Tuple* mtuple_etf;
52};
53
54#endif // tofcalgsec_Header
const Int_t n
tofcalgsec(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode finalize()
bool testbit(unsigned int n)
Definition tofcalgsec.h:20
StatusCode initialize()
StatusCode beginRun()
StatusCode execute()