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