BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TofEnergyCalib.h
Go to the documentation of this file.
1#ifndef Physics_Analysis_TofEnergyCalib_H
2#define Physics_Analysis_TofEnergyCalib_H
3#include <cstring>
4
5#include "GaudiKernel/Algorithm.h"
6#include "GaudiKernel/NTuple.h"
7using namespace std;
8
9class TofEnergyCalib : public Algorithm {
10
11public:
12 TofEnergyCalib( const std::string& name, ISvcLocator* pSvcLocator );
13 StatusCode initialize();
14 StatusCode execute();
15 StatusCode finalize();
16
17private:
18 NTuple::Tuple* m_tuple;
19 NTuple::Item<long> m_npart;
20 NTuple::Item<long> m_number;
21 NTuple::Item<double> m_adc1; // east ADC
22 NTuple::Item<double> m_adc2; // west ADC
23 NTuple::Item<double> m_tdc1; // east TDC
24 NTuple::Item<double> m_tdc2; // west TDC
25 NTuple::Item<double> m_zpos; // z position
26 NTuple::Item<double> m_length; // track length in TOF
27 NTuple::Item<double> m_energy; // energy deposited
28 NTuple::Item<double> m_length_ext; // track length in TOF
29 NTuple::Item<double> m_energy_ext; // energy deposited
30 NTuple::Item<double> m_ztdc; // z tdc
31 NTuple::Item<double> m_q; // q
32
33 int m_event;
34 int m_run;
35
36 bool m_isData; // MC or data flag
37
38 // file name extensions
39 std::string m_fileExt;
40
41 // file directory
42 std::string m_fileDir;
43 double m_num;
44 double m_EvsQ;
45};
46
47#endif
TofEnergyCalib(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize()
StatusCode finalize()
StatusCode execute()