74 , Emin_ (iConfig.getParameter<double>(
"EminHit"))
75 , EtminSC_ (iConfig.getParameter<double>(
"EtminSC"))
76 , side_ (iConfig.getParameter<int>(
"SCsize"))
77 , nBadHitsSC_ (iConfig.getParameter<int>(
"nBadHitsSC"))
78 , badsc_ (iConfig.getParameter<std::vector<int> >(
"badscEE"))
79 , taggingMode_ (iConfig.getParameter<bool>(
"taggingMode"))
80 , debug_ (iConfig.getParameter<bool>(
"debug"))
108 if(hits->find(*cursor)!=hits->end())
113 const GlobalPoint p ( geometry->getPosition(*cursor) ) ;
114 TVector3 hitPos(
p.x(),
p.y(),
p.z());
115 hitPos *= 1.0/hitPos.Mag();
116 hitPos *= tmpHit.
energy();
117 float rechitEt = hitPos.Pt();
175 for (std::vector<int>::const_iterator scit =
badsc_.begin(); scit !=
badsc_.end(); ++ scit) {
181 iz=int(*scit/1000000);
183 ix=int((*scit-iy-1000000*iz)/1000)*iz;
191 scan5x5(det,eeRHs,pTopology,pG,nhits,totEt);
196 std::cout <<
"EEBadScFilter.cc: SCID=" << *scit << std::endl;
197 std::cout <<
"EEBadScFilter.cc: ix=" << ix <<
" iy=" << iy <<
" iz=" << iz << std::endl;
198 std::cout <<
"EEBadScFilter.cc: Et(5x5)=" << totEt <<
" nbadhits=" << nhits << std::endl;
211 if (pass==
false &&
debug_)
std::cout <<
"EEBadScFilter.cc: REJECT EVENT!!!" << std::endl;
214 iEvent.
put( std::auto_ptr<bool>(
new bool(pass)) );
const edm::EDGetTokenT< EcalRecHitCollection > eeRHSrcToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void scan5x5(const DetId &det, const edm::Handle< EcalRecHitCollection > &hits, const edm::ESHandle< CaloTopology > &caloTopo, const edm::ESHandle< CaloGeometry > &geometry, int &nHits, float &totEt)
const std::vector< int > badsc_
EEBadScFilter(const edm::ParameterSet &iConfig)
T offsetBy(int deltaX, int deltaY) const
Free movement of arbitray steps.
bool checkFlag(int flag) const
check if the flag is true
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual bool filter(edm::Event &iEvent, const edm::EventSetup &iSetup) override
void home() const
move the navigator back to the starting point
ESHandle< TrackerGeometry > geometry