47 : matcher_(0), caloGeomCacheId_(0), hcalIso_(0)
70 produces<reco::ElectronSeedCollection>();
104 LogDebug(
"FastElectronSeedProducer")<<
"[FastElectronSeedProducer::produce] entering " ;
150 for (
unsigned int i=0;
i<2;
i++) {
162 std::auto_ptr<reco::ElectronSeedCollection> pSeeds(seeds) ;
176 for (
unsigned int i=0;
i<superClusters->size();++
i)
179 if (scl.
energy()/cosh(scl.
eta())>SCEtCut_)
206 double newHcalE = hcalIso_->getHcalESum(&scl), newHoE = newHcalE/scl.
energy() ;
208 if (newHoE<=maxHOverE_)
213 LogDebug(
"ElectronSeedProducer")<<
"Filtered out "
214 <<sclRefs.
size()<<
" superclusters from "<<superClusters->size() ;
T getParameter(std::string const &) const
unsigned long long cacheIdentifier() const
void setupES(const edm::EventSetup &setup)
edm::InputTag trackerHits_
FastElectronSeedGenerator * matcher_
double eta() const
pseudorapidity of cluster centroid
edm::ESHandle< CaloGeometry > caloGeom_
EgammaHcalIsolation * hcalIso_
edm::InputTag clusters_[2]
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void beginRun(edm::Run const &run, const edm::EventSetup &es) override
double energy() const
cluster energy
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
void run(edm::Event &e, const reco::SuperClusterRefVector &sclRefs, const SiTrackerGSMatchedRecHit2DCollection *theGSRecHits, const edm::SimTrackContainer *theSimTracks, TrajectorySeedCollection *seeds, const TrackerTopology *tTopo, reco::ElectronSeedCollection &out)
TrajectorySeedCollection * initialSeedColl_
T const * product() const
FastElectronSeedProducer(const edm::ParameterSet &conf)
edm::InputTag initialSeeds_
void filterClusters(const edm::Handle< reco::SuperClusterCollection > &superClusters, reco::SuperClusterRefVector &sclRefs)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.
virtual ~FastElectronSeedProducer()
unsigned long long caloGeomCacheId_
std::vector< SimTrack > SimTrackContainer
edm::InputTag hcalRecHits_