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);
111 auto output = std::make_unique< TrajectorySeedCollection>();
119 iEvent.
getByToken(BSProducer_,recoBeamSpotHandle);
126 iEvent.
getByToken(candTagEle_,electronHandle);
129 for (reco::RecoEcalCandidateCollection::const_iterator recoecalcand= recoecalcands->begin(); recoecalcand!=recoecalcands->end(); recoecalcand++) {
130 scRef = recoecalcand->superCluster();
134 for(reco::ElectronCollection::const_iterator iElectron = electronHandle->begin(); iElectron != electronHandle->end(); iElectron++){
136 scRefEle = iElectron->superCluster();
137 if(&(*scRef) == &(*scRefEle)){
138 if(iElectron->track().isNonnull()) zvertex = iElectron->track()->vz();
139 else zvertex = iElectron->gsfTrack()->vz();
145 GlobalVector dirVector((recoecalcand)->px(),(recoecalcand)->py(),(recoecalcand)->pz());
147 GlobalPoint( BSPosition.x(), BSPosition.y(), zvertex ),
155 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
EgammaHLTRegionalPixelSeedGeneratorProducers(const edm::ParameterSet &conf)
void produce(edm::Event &e, const edm::EventSetup &c) override
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)