#include <EmcCalibTagDeadOrHot.h>
Definition at line 35 of file EmcCalibTagDeadOrHot.h.
◆ EmcCalibTagDeadOrHot()
EmcCalibTagDeadOrHot::EmcCalibTagDeadOrHot |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
Definition at line 59 of file EmcCalibTagDeadOrHot.cxx.
60 :Algorithm(name, pSvcLocator),
61 m_fileExt(""),
62 m_fileDir("/home/besdata/public/liucx/Calib/"),
63 m_deadIxtal(-999),
64 m_hotIxtal(-999)
65{
66
67
68 declareProperty("fileExt", m_fileExt);
69 declareProperty("fileDir", m_fileDir);
70 declareProperty("deadIxtal", m_deadIxtal);
71 declareProperty("hotIxtal", m_hotIxtal);
72
73 m_oldConstants = new double[6240];
74 m_IxtalNumber= new int[6240];
75}
◆ ~EmcCalibTagDeadOrHot()
EmcCalibTagDeadOrHot::~EmcCalibTagDeadOrHot |
( |
| ) |
|
|
virtual |
Definition at line 80 of file EmcCalibTagDeadOrHot.cxx.
80 {
81
82 if ( 0 != m_oldConstants) {
83 delete [] m_oldConstants;
84 m_oldConstants = 0;
85 }
86 if ( 0 != m_IxtalNumber) {
87 delete [] m_IxtalNumber;
88 m_IxtalNumber = 0;
89 }
90}
◆ execute()
StatusCode EmcCalibTagDeadOrHot::execute |
( |
| ) |
|
Definition at line 119 of file EmcCalibTagDeadOrHot.cxx.
119 {
120
121 MsgStream log(
msgSvc(), name());
122 log << MSG::DEBUG << "in execute()" << endreq;
123
124 return StatusCode::SUCCESS;
125}
◆ finalize()
StatusCode EmcCalibTagDeadOrHot::finalize |
( |
| ) |
|
Definition at line 128 of file EmcCalibTagDeadOrHot.cxx.
128 {
129
130 MsgStream log(
msgSvc(), name());
131
132
133 log << MSG::INFO << "in endRun()" << endreq;
134
135
136 return StatusCode::SUCCESS;
137}
◆ initialize()
StatusCode EmcCalibTagDeadOrHot::initialize |
( |
| ) |
|
Definition at line 93 of file EmcCalibTagDeadOrHot.cxx.
93 {
94
95 MsgStream log(
msgSvc(), name());
96 log << MSG::INFO << "in initialize()" << endreq;
97
98
99 StatusCode scCalib;
100 scCalib = Gaudi::svcLocator() -> service("EmcCalibConstSvc", m_emcCalibConstSvc);
101 if( scCalib != StatusCode::SUCCESS){
102 log << MSG::ERROR << "can not use EmcCalibConstSvc" << endreq;
103 }
104 else {
105 std::cout << "Test EmcCalibConstSvc DigiCalibConst(0)= "
106 << m_emcCalibConstSvc -> getDigiCalibConst(0) << std::endl;
107 }
108
109
110
111 initCalibConst();
112
113 SetDeadOrHotChannel();
114
115 return StatusCode::SUCCESS;
116}
The documentation for this class was generated from the following files: