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

#include <EmcCalibModLowHigh.h>

Inheritance diagram for EmcCalibModLowHigh:

Public Member Functions

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

Detailed Description

Definition at line 33 of file EmcCalibModLowHigh.h.

Constructor & Destructor Documentation

◆ EmcCalibModLowHigh()

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

Definition at line 58 of file EmcCalibModLowHigh.cxx.

59 : Algorithm( name, pSvcLocator )
60 , m_fileExt( "" )
61 , m_inputFileDir( "../InputData/" )
62 , m_fileDir( "/home/besdata/public/liucx/Calib/" )
63 , m_deadIxtal( -999 )
64 , m_hotIxtal( -999 ) {
65
66 // Declare the properties
67 declareProperty( "fileExt", m_fileExt );
68 declareProperty( "inputFileDir", m_inputFileDir );
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}

Referenced by EmcCalibModLowHigh().

◆ ~EmcCalibModLowHigh()

EmcCalibModLowHigh::~EmcCalibModLowHigh ( )
virtual

Definition at line 80 of file EmcCalibModLowHigh.cxx.

80 {
81
82 if ( 0 != m_oldConstants )
83 {
84 delete[] m_oldConstants;
85 m_oldConstants = 0;
86 }
87 if ( 0 != m_IxtalNumber )
88 {
89 delete[] m_IxtalNumber;
90 m_IxtalNumber = 0;
91 }
92}

Member Function Documentation

◆ execute()

StatusCode EmcCalibModLowHigh::execute ( )

Definition at line 121 of file EmcCalibModLowHigh.cxx.

121 {
122
123 MsgStream log( msgSvc(), name() );
124 log << MSG::DEBUG << "in execute()" << endmsg;
125
126 return StatusCode::SUCCESS;
127}
IMessageSvc * msgSvc()

◆ finalize()

StatusCode EmcCalibModLowHigh::finalize ( )

Definition at line 130 of file EmcCalibModLowHigh.cxx.

130 {
131
132 MsgStream log( msgSvc(), name() );
133
134 log << MSG::INFO << "in endRun()" << endmsg;
135
136 return StatusCode::SUCCESS;
137}

◆ initialize()

StatusCode EmcCalibModLowHigh::initialize ( )

Definition at line 95 of file EmcCalibModLowHigh.cxx.

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

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