BOSS 7.1.1
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 35 of file EmcCalibModLowHigh.h.

Constructor & Destructor Documentation

◆ EmcCalibModLowHigh()

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

Definition at line 59 of file EmcCalibModLowHigh.cxx.

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

◆ ~EmcCalibModLowHigh()

EmcCalibModLowHigh::~EmcCalibModLowHigh ( )
virtual

Definition at line 82 of file EmcCalibModLowHigh.cxx.

82 {
83
84 if ( 0 != m_oldConstants) {
85 delete [] m_oldConstants;
86 m_oldConstants = 0;
87 }
88 if ( 0 != m_IxtalNumber) {
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()" << endreq;
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
135 log << MSG::INFO << "in endRun()" << endreq;
136
137
138 return StatusCode::SUCCESS;
139}

◆ 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()" << endreq;
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" << endreq;
105 }
106 else {
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: