35 #include "Math/GenVector/VectorUtil.h"
36 #include "Math/GenVector/PxPyPzE4D.h"
46 produces<TrajectorySeedCollection>();
50 originradius_= conf.
getParameter<
double>(
"originRadius");
51 halflength_ = conf.
getParameter<
double>(
"originHalfLength");
85 desc.
add<
double>(
"ptMin", 1.5);
86 desc.
add<
double>(
"vertexZ", 0);
87 desc.
add<
double>(
"originRadius", 0.02);
88 desc.
add<
double>(
"originHalfLength", 15.0);
89 desc.
add<
double>(
"deltaEtaRegion", 0.3);
90 desc.
add<
double>(
"deltaPhiRegion", 0.3);
94 desc.
add<
bool>((
"UseZInVertex"),
false);
98 orederedHitsPSET.
add<
std::string>(
"ComponentName",
"StandardHitPairGenerator");
100 orederedHitsPSET.add<
unsigned int>(
"maxElement", 0);
103 descriptions.
add((
"hltEgammaHLTRegionalPixelSeedGeneratorProducers"), desc);
126 iEvent.
getByToken(BSProducer_,recoBeamSpotHandle);
133 iEvent.
getByToken(candTagEle_,electronHandle);
136 for (reco::RecoEcalCandidateCollection::const_iterator recoecalcand= recoecalcands->begin(); recoecalcand!=recoecalcands->end(); recoecalcand++) {
137 scRef = recoecalcand->superCluster();
141 for(reco::ElectronCollection::const_iterator iElectron = electronHandle->begin(); iElectron != electronHandle->end(); iElectron++){
143 scRefEle = iElectron->superCluster();
144 if(&(*scRef) == &(*scRefEle)){
145 if(iElectron->track().isNonnull()) zvertex = iElectron->track()->vz();
146 else zvertex = iElectron->gsfTrack()->vz();
152 GlobalVector dirVector((recoecalcand)->px(),(recoecalcand)->py(),(recoecalcand)->pz());
154 GlobalPoint( BSPosition.x(), BSPosition.y(), zvertex ),
162 combinatorialSeedGenerator->run(*output, etaphiRegion, iEvent, iSetup);
T getParameter(std::string const &) const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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.
void addParameter(std::string const &name, T const &value)
virtual ~EgammaHLTRegionalPixelSeedGeneratorProducers()
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void beginRun(edm::Run const &run, const edm::EventSetup &es) overridefinal
void add(std::string const &label, ParameterSetDescription const &psetDescription)
T get(const Candidate &c)