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 orderedHitsPSET.
add<
std::string>(
"ComponentName",
"StandardHitPairGenerator");
100 orderedHitsPSET.add<
unsigned int>(
"maxElement", 0);
103 descriptions.
add((
"hltEgammaHLTRegionalPixelSeedGeneratorProducers"), desc);
118 auto output = std::make_unique< TrajectorySeedCollection>();
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
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
def create(alignables, pedeDump, additionalData, outputFile, config)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Global3DPoint GlobalPoint
math::XYZPoint Point
point in the space
void beginRun(edm::Run const &run, const edm::EventSetup &es) final
EgammaHLTRegionalPixelSeedGeneratorProducers(const edm::ParameterSet &conf)
void produce(edm::Event &e, const edm::EventSetup &c) override
void endRun(edm::Run const &run, const edm::EventSetup &es) final
void addParameter(std::string const &name, T const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~EgammaHLTRegionalPixelSeedGeneratorProducers() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const Point & position() const
position
T get(const Candidate &c)