43 produces < reco::RecoEcalCandidateIsolationMap >(
"Deta" ).setBranchAlias(
"deta" );
44 produces < reco::RecoEcalCandidateIsolationMap >(
"Dphi" ).setBranchAlias(
"dphi" );
55 desc.
add<
int>((
"upperTrackNrToRemoveCut"), 9999);
56 desc.
add<
int>((
"lowerTrackNrToRemoveCut"), -1);
57 descriptions.
add(
"hltEgammaHLTGsfTrackVarProducer", desc);
85 for(reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand = recoEcalCandHandle->begin(); iRecoEcalCand != recoEcalCandHandle->end(); iRecoEcalCand++){
91 std::vector<const reco::GsfTrack*> gsfTracks;
93 for(reco::ElectronCollection::const_iterator eleIt = electronHandle->begin(); eleIt != electronHandle->end(); eleIt++){
94 if(eleIt->superCluster()==scRef){
95 gsfTracks.push_back(&*eleIt->gsfTrack());
99 for(reco::GsfTrackCollection::const_iterator trkIt =gsfTracksHandle->begin();trkIt!=gsfTracksHandle->end();++trkIt){
104 if(scRefFromTrk==scRef){
105 gsfTracks.push_back(&*trkIt);
110 float dEtaInValue=999999;
111 float dPhiInValue=999999;
120 for(
size_t trkNr=0;trkNr<gsfTracks.size();trkNr++){
122 GlobalPoint scPos(scRef->x(),scRef->y(),scRef->z());
126 if(fabs(scAtVtx.dEta())<dEtaInValue) dEtaInValue=fabs(scAtVtx.dEta());
127 if(fabs(scAtVtx.dPhi())<dPhiInValue) dPhiInValue=fabs(scAtVtx.dPhi());
131 dEtaMap.
insert(recoEcalCandRef, dEtaInValue);
132 dPhiMap.
insert(recoEcalCandRef, dPhiInValue);
137 iEvent.
put(dEtaMapForEvent,
"Deta" );
138 iEvent.
put(dPhiMapForEvent,
"Dphi" );
144 cacheIDTDGeom_(rhs.cacheIDTDGeom_),
145 cacheIDMagField_(rhs.cacheIDMagField_),
146 magField_(rhs.magField_),
147 trackerHandle_(rhs.trackerHandle_),
148 mtsMode_(rhs.mtsMode_)
165 delete mtsTransform_;
167 else mtsTransform_ =0;
174 bool updateField(
false);
181 bool updateGeometry(
false);
183 updateGeometry =
true;
188 if ( updateField || updateGeometry || !mtsTransform_ ) {
189 delete mtsTransform_;
199 mtsMode()->positionFromModeCartesian(posTSOS,extrapolatedPos);
200 return extrapolatedPos;
208 mtsMode()->momentumFromModeCartesian(posTSOS,extrapolatedMom);
209 return extrapolatedMom;
T getParameter(std::string const &) const
unsigned long long cacheIdentifier() const
virtual void produce(edm::Event &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::ElectronCollection > inputCollectionTag1_
edm::EDGetTokenT< reco::GsfTrackCollection > inputCollectionTag2_
TrackExtrapolator trackExtrapolator_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
~EgammaHLTGsfTrackVarProducer()
EgammaHLTGsfTrackVarProducer(const edm::ParameterSet &)
int upperTrackNrToRemoveCut_
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandTag_
edm::EDGetTokenT< reco::BeamSpot > beamSpotTag_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void insert(const key_type &k, const data_type &v)
insert an association
REF castTo() const
cast to a concrete type
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int lowerTrackNrToRemoveCut_
const Point & position() const
position