BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcCalibTagDeadOrHot Class Reference

#include <EmcCalibTagDeadOrHot.h>

Inheritance diagram for EmcCalibTagDeadOrHot:

Public Member Functions

 EmcCalibTagDeadOrHot (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~EmcCalibTagDeadOrHot ()
StatusCode initialize ()
StatusCode execute ()
StatusCode finalize ()

Detailed Description

Definition at line 32 of file EmcCalibTagDeadOrHot.h.

Constructor & Destructor Documentation

◆ EmcCalibTagDeadOrHot()

EmcCalibTagDeadOrHot::EmcCalibTagDeadOrHot ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 56 of file EmcCalibTagDeadOrHot.cxx.

57 : Algorithm( name, pSvcLocator )
58 , m_fileExt( "" )
59 , m_fileDir( "/home/besdata/public/liucx/Calib/" )
60 , m_deadIxtal( -999 )
61 , m_hotIxtal( -999 ) {
62
63 // Declare the properties
64 declareProperty( "fileExt", m_fileExt );
65 declareProperty( "fileDir", m_fileDir );
66 declareProperty( "deadIxtal", m_deadIxtal );
67 declareProperty( "hotIxtal", m_hotIxtal );
68
69 m_oldConstants = new double[6240];
70 m_IxtalNumber = new int[6240];
71}

Referenced by EmcCalibTagDeadOrHot().

◆ ~EmcCalibTagDeadOrHot()

EmcCalibTagDeadOrHot::~EmcCalibTagDeadOrHot ( )
virtual

Definition at line 76 of file EmcCalibTagDeadOrHot.cxx.

76 {
77
78 if ( 0 != m_oldConstants )
79 {
80 delete[] m_oldConstants;
81 m_oldConstants = 0;
82 }
83 if ( 0 != m_IxtalNumber )
84 {
85 delete[] m_IxtalNumber;
86 m_IxtalNumber = 0;
87 }
88}

Member Function Documentation

◆ execute()

StatusCode EmcCalibTagDeadOrHot::execute ( )

Definition at line 117 of file EmcCalibTagDeadOrHot.cxx.

117 {
118
119 MsgStream log( msgSvc(), name() );
120 log << MSG::DEBUG << "in execute()" << endmsg;
121
122 return StatusCode::SUCCESS;
123}
IMessageSvc * msgSvc()

◆ finalize()

StatusCode EmcCalibTagDeadOrHot::finalize ( )

Definition at line 126 of file EmcCalibTagDeadOrHot.cxx.

126 {
127
128 MsgStream log( msgSvc(), name() );
129
130 log << MSG::INFO << "in endRun()" << endmsg;
131
132 return StatusCode::SUCCESS;
133}

◆ initialize()

StatusCode EmcCalibTagDeadOrHot::initialize ( )

Definition at line 91 of file EmcCalibTagDeadOrHot.cxx.

91 {
92
93 MsgStream log( msgSvc(), name() );
94 log << MSG::INFO << "in initialize()" << endmsg;
95
96 // use EmcCalibConstSvc
97 StatusCode scCalib;
98 scCalib = Gaudi::svcLocator()->service( "EmcCalibConstSvc", m_emcCalibConstSvc );
99 if ( scCalib != StatusCode::SUCCESS )
100 { log << MSG::ERROR << "can not use EmcCalibConstSvc" << endmsg; }
101 else
102 {
103 std::cout << "Test EmcCalibConstSvc DigiCalibConst(0)= "
104 << m_emcCalibConstSvc->getDigiCalibConst( 0 ) << std::endl;
105 }
106
107 // init starting values for calibration constants from file or set to 1
108
109 initCalibConst();
110
111 SetDeadOrHotChannel();
112
113 return StatusCode::SUCCESS;
114}

The documentation for this class was generated from the following files: