1#include "GaudiKernel/MsgStream.h"
3#include "GaudiKernel/SmartDataPtr.h"
20#include "CLHEP/Random/RandFlat.h"
37 MsgStream log(
msgSvc(), name);
59 MsgStream log(
msgSvc(), name());
60 log << MSG::INFO <<
"in initialize()" << endreq;
66 if ( sc.isFailure() ) {
67 log << MSG::ERROR <<
"m_HltStoreSvc->put(nmdc) wrong" << endreq;
71 if ( sc.isFailure() ) {
72 log << MSG::ERROR <<
"m_HltStoreSvc->put(nmuc) wrong" << endreq;
76 if ( sc.isFailure() ) {
77 log << MSG::ERROR <<
"m_HltStoreSvc->put(ntof) wrong" << endreq;
81 if ( sc.isFailure() ) {
82 log << MSG::ERROR <<
"m_HltStoreSvc->put(nemc) wrong" << endreq;
87 log << MSG::ERROR <<
"m_HltStoreSvc->put(derr) wrong" << endreq;
92 log << MSG::ERROR <<
"m_HltStoreSvc->put(rndm) wrong" << endreq;
96 return StatusCode::SUCCESS;
103 MsgStream log(
msgSvc(), name());
106 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
108 log << MSG::FATAL <<
"Could not find Event Header" << endreq;
109 return( StatusCode::FAILURE);
111 log << MSG::INFO <<
"eventNo-->" << eventHeader->eventNumber()<<endreq;
114 SmartDataPtr<MdcDigiCol> mdcDigiCol(eventSvc(),
"/Event/Digi/MdcDigiCol");
116 log << MSG::FATAL <<
"Could not find Mdc digi!!" << endreq;
117 return( StatusCode::FAILURE);
120 SmartDataPtr<TofDigiCol> tofDigiCol(eventSvc(),
"/Event/Digi/TofDigiCol");
122 log << MSG::FATAL <<
"Could not find Tof digi!!" << endreq;
123 return( StatusCode::FAILURE);
125 SmartDataPtr<EmcDigiCol> emcDigiCol(eventSvc(),
"/Event/Digi/EmcDigiCol");
127 log << MSG::FATAL <<
"Could not find Emc digi!!" << endreq;
128 return( StatusCode::FAILURE);
136 SmartDataPtr<MucDigiCol> mucDigiCol(eventSvc(),
"/Event/Digi/MucDigiCol");
138 log << MSG::FATAL <<
"Could not find Muc digi!!" << endreq;
139 return( StatusCode::FAILURE);
143 unsigned int nhitsMdc=mdcDigiCol->size();
149 unsigned int nhitsEmc=emcDigiCol->size();
150 unsigned int nhitsMuc=mucDigiCol->size();
151 unsigned int nhitsTof=tofDigiCol->size();
153 double rndm=CLHEP::RandFlat::shoot();
155 log << MSG::INFO <<
" Number of hits in MDC:EMC:MUC:TOF is " << nhitsMdc
156 <<
":" << nhitsEmc <<
":" << nhitsMuc <<
":" <<nhitsTof <<
"; "
157 <<
"random number:" << rndm <<endreq;
182 return StatusCode::SUCCESS;
186 MsgStream log(
msgSvc(), name());
187 log << MSG::INFO <<
"in finalize()" << endmsg;
188 return StatusCode::SUCCESS;
*******INTEGER m_nBinMax INTEGER m_NdiMax !No of bins in histogram for cell exploration division $ !Last vertex $ !Last active cell $ !Last cell in buffer $ !No of sampling when dividing cell $ !No of function total $ !Flag for random ceel for $ !Flag for type of for WtMax $ !Flag which decides whether vertices are included in the sampling $ entire domain is hyp !Maximum effective eevents per saves r n generator level $ !Flag for chat level in output
void setValue(float value)
virtual ~EFDetectorHits()
virtual StatusCode execute()
virtual StatusCode initialize()
virtual StatusCode finalize()
EFDetectorHits(const std::string &name, ISvcLocator *pSvcLocator)
bool addToEFVec(uint32_t val, uint32_t pos)
bool setVecBit(uint32_t val, uint32_t vecpos, uint32_t bbegin, uint32_t bend)
bool put(const std::string &name, const T &value)
virtual StatusCode initialize()
IRawDataProviderSvc * m_rawDigiSvc
HltStoreSvc * m_HltStoreSvc
virtual EmcDigiCol & getEmcDigiVec(uint32_t control=0)=0
virtual bool isOnlineMode()=0
virtual MdcDigiVec & getMdcDigiVec(uint32_t control=0)=0