CGEM BOSS 6.6.5.g
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"
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_barrelfile; //specify input data file
35 std::vector<std::string> m_endcapfile; //specify input data file
36 std::string m_calibItem;
37 // bit 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};
51
52#endif//tofcalgsec_Header
const Int_t n
StatusCode finalize()
Definition: tofcalgsec.cxx:248
bool testbit(unsigned int n)
Definition: tofcalgsec.h:21
StatusCode initialize()
Definition: tofcalgsec.cxx:81
StatusCode beginRun()
Definition: tofcalgsec.cxx:198
StatusCode execute()
Definition: tofcalgsec.cxx:205
StatusCode endRun()
Definition: tofcalgsec.cxx:241