11#include "GaudiKernel/MsgStream.h"
12#include "GaudiKernel/IHistogramSvc.h"
13#include "GaudiKernel/SmartDataPtr.h"
14#include "GaudiKernel/INTupleSvc.h"
22 Algorithm(name, pSvcLocator),
25 m_sOutputFile(
"MucCalibConst.root")
28 declareProperty(
"JobInfo", m_vJobInfo);
29 declareProperty(
"ConfigInfo", m_vConfigInfo);
30 declareProperty(
"Output" , m_sOutputFile);
36 MsgStream log(
msgSvc(), name());
37 log << MSG::INFO << endreq <<
"In initialize() " << endreq;
38 std::string recMode[3]={
"ExtTrk",
"SlfTrk",
"Combine"};
39 log << MSG::INFO <<
" InputTag = " << m_vJobInfo[4] << endreq;
40 log << MSG::INFO <<
" RecMode = " << recMode[m_vConfigInfo[0]] << endreq;
41 log << MSG::INFO <<
" UsePad = " << m_vConfigInfo[1] << endreq;
42 log << MSG::INFO <<
" EffWindow = " << m_vConfigInfo[2] << endreq;
43 log << MSG::INFO <<
" ClstMode = " << m_vConfigInfo[3] << endreq;
44 log << MSG::INFO <<
" ClstSave = " << m_vConfigInfo[4] << endreq;
45 log << MSG::INFO <<
" CheckEvent = " << (m_vConfigInfo[5]?
"Yes":
"No") << endreq;
46 log << MSG::INFO <<
" DimuSelect = " << (m_vConfigInfo[6]?
"Yes":
"No") << endreq;
47 log << MSG::INFO <<
" DimuOnly = " << (m_vConfigInfo[7]?
"Yes":
"No") << endreq;
50 m_pMucCalibMgr =
new MucCalibMgr( m_vJobInfo, m_vConfigInfo, m_sOutputFile );
52 return StatusCode::SUCCESS;
58 MsgStream log(
msgSvc(), name());
59 log << MSG::INFO << endreq <<
"In execute()" << endreq;
60 StatusCode sc = StatusCode::FAILURE;
63 if( m_vConfigInfo[5] == 1 ) m_pMucCalibMgr->
CheckEvent();
66 return StatusCode::SUCCESS;
72 MsgStream log(
msgSvc(), name());
73 log << MSG::INFO << endreq <<
"In finalize()" << endreq << endreq;
82 log << MSG::INFO << endreq <<
"MucCalibAlg finalizes successfully!" << endreq << endreq;
83 return StatusCode::SUCCESS;
MucCalibAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode AnalyseEffAndNoise()