10 cout <<
"----------------------------------------------------------------------" << std::endl;
11 cout <<
"--- EcalTangentFilter constructor" << std::endl;
12 cout <<
"--- MuLabel: " << fMuLabel << std::endl;
13 cout <<
"--- MuonD0Min: " << fMuonD0Min << std::endl;
14 cout <<
"--- MuonD0Max: " << fMuonD0Max << std::endl;
15 cout <<
"--- Verbose: " << fVerbose << std::endl;
16 cout <<
"----------------------------------------------------------------------" << std::endl;
23 std::cout <<
"==> EcalTangentFilter> Number of accepted/total events = " << fNgood <<
"/" << fNtot << std::endl;
30 bool goodEvent(
false);
35 for (MuonCollection::const_iterator
muon=Muons->begin();
muon!=Muons->end(); ++
muon){
37 if(
muon->outerTrack().isNonnull()){
38 ref =
muon->outerTrack();
40 double d0 = ref->d0();
41 if(fabs(d0) > fMuonD0Min && fabs(d0) < fMuonD0Max) goodEvent =
true;
46 if(fVerbose)
std::cout <<
"==> EcalTangentFilter> new event r" << iEvent.
id().
run() <<
"/ev" << iEvent.
id().
event() <<
" accepted, so far: " << fNgood << std::endl;
T getParameter(std::string const &) const
EventNumber_t event() const
#define DEFINE_FWK_MODULE(type)
EcalTangentFilter(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual bool filter(edm::Event &, const edm::EventSetup &) override