62 produces < reco::RecoEcalCandidateIsolationMap >(
"Deta" ).setBranchAlias(
"deta" );
63 produces < reco::RecoEcalCandidateIsolationMap >(
"Dphi" ).setBranchAlias(
"dphi" );
101 for(reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand = recoEcalCandHandle->begin(); iRecoEcalCand != recoEcalCandHandle->end(); iRecoEcalCand++){
107 std::vector<const reco::GsfTrack*> gsfTracks;
109 for(reco::ElectronCollection::const_iterator eleIt = electronHandle->begin(); eleIt != electronHandle->end(); eleIt++){
110 if(eleIt->superCluster()==scRef){
111 gsfTracks.push_back(&*eleIt->gsfTrack());
115 for(reco::GsfTrackCollection::const_iterator trkIt =gsfTracksHandle->begin();trkIt!=gsfTracksHandle->end();++trkIt){
120 if(scRefFromTrk==scRef){
121 gsfTracks.push_back(&*trkIt);
126 float dEtaInValue=999999;
127 float dPhiInValue=999999;
136 for(
size_t trkNr=0;trkNr<gsfTracks.size();trkNr++){
138 GlobalPoint scPos(scRef->x(),scRef->y(),scRef->z());
142 if(fabs(scAtVtx.dEta())<dEtaInValue) dEtaInValue=fabs(scAtVtx.dEta());
143 if(fabs(scAtVtx.dPhi())<dPhiInValue) dPhiInValue=fabs(scAtVtx.dPhi());
147 dEtaMap.
insert(recoEcalCandRef, dEtaInValue);
148 dPhiMap.
insert(recoEcalCandRef, dPhiInValue);
153 iEvent.
put(dEtaMapForEvent,
"Deta" );
154 iEvent.
put(dPhiMapForEvent,
"Dphi" );
161 cacheIDTDGeom_(rhs.cacheIDTDGeom_),
162 cacheIDMagField_(rhs.cacheIDMagField_),
163 magField_(rhs.magField_),
164 trackerHandle_(rhs.trackerHandle_),
165 mtsMode_(rhs.mtsMode_)
182 delete mtsTransform_;
184 else mtsTransform_ =0;
191 bool updateField(
false);
198 bool updateGeometry(
false);
200 updateGeometry =
true;
205 if ( updateField || updateGeometry || !mtsTransform_ ) {
206 delete mtsTransform_;
216 mtsMode()->positionFromModeCartesian(posTSOS,extrapolatedPos);
217 return extrapolatedPos;
225 mtsMode()->momentumFromModeCartesian(posTSOS,extrapolatedMom);
226 return extrapolatedMom;
edm::InputTag recoEcalCandTag_
T getParameter(std::string const &) const
unsigned long long cacheIdentifier() const
edm::InputTag inputCollectionTag_
virtual void produce(edm::Event &, const edm::EventSetup &)
TrackExtrapolator trackExtrapolator_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
~EgammaHLTGsfTrackVarProducer()
EgammaHLTGsfTrackVarProducer(const edm::ParameterSet &)
int upperTrackNrToRemoveCut_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag beamSpotTag_
void insert(const key_type &k, const data_type &v)
insert an association
REF castTo() const
cast to a concrete type
int lowerTrackNrToRemoveCut_
const Point & position() const
position