BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcCalibTagDeadOrHot.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// Environment:
3// This software was developed for the BESIII collaboration. If you
4// use all or part of it, please give an appropriate acknowledgement.
5//
6// Copyright Information:
7// Copyright (C) 2005 IHEP
8//
9//------------------------------------------------------------------------
10
11#ifndef EMCCALIBTAGDEADORHOT_H
12#define EMCCALIBTAGDEADORHOT_H
13
14//-------------
15// C Headers --
16//-------------
17#include <ctime>
18
19#include <cstring>
20
21#include "GaudiKernel/Algorithm.h"
22
23#include "EmcCalibConstSvc/IEmcCalibConstSvc.h"
24#include "GaudiKernel/Bootstrap.h"
25#include "GaudiKernel/ISvcLocator.h"
26
27// Ntuple
28#include "GaudiKernel/NTuple.h"
29
30using namespace std;
31
32class EmcCalibTagDeadOrHot : public Algorithm {
33
34public:
35 EmcCalibTagDeadOrHot( const std::string& name, ISvcLocator* pSvcLocator );
36
37 //--------------
38 // Destructor
39 //--------------
40 virtual ~EmcCalibTagDeadOrHot();
41
42 StatusCode initialize();
43 StatusCode execute();
44 StatusCode finalize();
45
46private:
47 // read in calibration constants from file or initialize them to 1
48 void initCalibConst();
49
50 void SetDeadOrHotChannel();
51
52private:
53 // cut on minimum number of direct hits needed per xtal
54 int m_deadIxtal;
55 int m_hotIxtal;
56
57 // file name extensions for different output files
58 std::string m_fileExt;
59
60 // file directory
61 std::string m_fileDir;
62
63 // the old absolute constants the new once are relative to
64 double* m_oldConstants;
65 int* m_IxtalNumber;
66 IEmcCalibConstSvc* m_emcCalibConstSvc;
67};
68
69#endif // EMCCALIBTAGDEADORHOT_H
EmcCalibTagDeadOrHot(const std::string &name, ISvcLocator *pSvcLocator)