41 #include "Math/GenVector/VectorUtil.h"
42 #include "Math/GenVector/PxPyPzE4D.h"
50 produces<TrajectorySeedCollection>();
119 for (reco::RecoEcalCandidateCollection::const_iterator recoecalcand= recoecalcands->begin(); recoecalcand!=recoecalcands->end(); recoecalcand++) {
120 scRef = recoecalcand->superCluster();
124 for(reco::ElectronCollection::const_iterator iElectron = electronHandle->begin(); iElectron != electronHandle->end(); iElectron++){
126 scRefEle = iElectron->superCluster();
127 if(&(*scRef) == &(*scRefEle)){
128 if(iElectron->track().isNonnull()) zvertex = iElectron->track()->vz();
129 else zvertex = iElectron->gsfTrack()->vz();
135 GlobalVector dirVector((recoecalcand)->px(),(recoecalcand)->py(),(recoecalcand)->pz());
137 GlobalPoint( BSPosition.x(), BSPosition.y(), zvertex ),
T getParameter(std::string const &) const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
virtual void endRun(edm::Run const &run, const edm::EventSetup &es) overridefinal
Global3DPoint GlobalPoint
math::XYZPoint Point
point in the space
EgammaHLTRegionalPixelSeedGeneratorProducers(const edm::ParameterSet &conf)
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::InputTag candTagEle_
void addParameter(std::string const &name, T const &value)
virtual ~EgammaHLTRegionalPixelSeedGeneratorProducers()
SeedGeneratorFromRegionHits * combinatorialSeedGenerator
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void run(TrajectorySeedCollection &seedCollection, const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es)
virtual void beginRun(edm::Run const &run, const edm::EventSetup &es) overridefinal
edm::InputTag BSProducer_
T get(const Candidate &c)