48 MsgStream log(
msgSvc(), name());
50 uint32_t run=0,
event=0;
51 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
53 log << MSG::FATAL <<
"Could not find Event Header" << endreq;
54 return( StatusCode::FAILURE);
56 run=eventHeader->runNumber();
57 event=eventHeader->eventNumber();
58 log << MSG::INFO <<
"execute() RunNo=" << run <<
", EventNo=" <<
event << endreq;
63 setFilterPassed(
false);
64 m_type =
"RefuseByEF";
67 SmartDataPtr<TrigData> trg(eventSvc(),
"/Event/Trig/TrigData");
69 log << MSG::WARNING <<
"Could not find Event TrigData" << endreq;
73 for(
int i=0;i<16;i++){
74 if(trg->getTrigChannel(i)) pass=
true;
78 m_type =
"RefuseByTrg";
79 return( StatusCode::SUCCESS);
85 SmartDataPtr<HltInf> hlt(eventSvc(),
"/Event/Hlt/HltInf");
87 log << MSG::WARNING <<
"Could not find Event HltInf (try DstHltInf now)" << endreq;
88 SmartDataPtr<DstHltInf> hltDst(eventSvc(),
"/Event/Hlt/DstHltInf");
90 log << MSG::FATAL <<
"Could not find Event DstHltInf too ( please re-generate data)" << endreq;
91 return( StatusCode::FAILURE);
100 std::vector<std::string>::iterator it=m_chn.begin();
103 log << MSG::WARNING << m_type << endreq;
105 if(log.level()<=MSG::VERBOSE) aHlt->
print();
107 for(;it!=m_chn.end();it++){
110 setFilterPassed(
true);
112 log << MSG::INFO <<
"this event is passed" << endreq;
116 log << MSG::INFO <<
"this event is a " << m_type <<endreq;
118 if(m_example&&!hlt) {
119 cout<<
"****** Example for getting event filter informatiom ******" << endl;
120 cout<<
"****** Please refer to the code in EventFilter.cxx ******" << endl;
124 return ( StatusCode::SUCCESS);
128 int nmdc,ntof,nemc,nmuc,ntrk,nshower;