46 : matcher_(0), caloGeomCacheId_(0), hcalIso_(0)
69 produces<reco::ElectronSeedCollection>();
103 LogDebug(
"FastElectronSeedProducer")<<
"[FastElectronSeedProducer::produce] entering " ;
149 for (
unsigned int i=0;
i<2;
i++) {
161 std::auto_ptr<reco::ElectronSeedCollection> pSeeds(seeds) ;
175 for (
unsigned int i=0;
i<superClusters->size();++
i)
178 if (scl.
energy()/cosh(scl.
eta())>SCEtCut_)
205 double newHcalE = hcalIso_->getHcalESum(&scl), newHoE = newHcalE/scl.
energy() ;
207 if (newHoE<=maxHOverE_)
212 LogDebug(
"ElectronSeedProducer")<<
"Filtered out "
213 <<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
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)
T const * product() const
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_