CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
GsfElectronAlgo::EventData Struct Reference

Public Types

typedef std::vector< edm::Handle< edm::ValueMap< double > > > IsolationValueMaps
 

Public Member Functions

 EventData ()
 
void retreiveOriginalTrackCollections (const reco::TrackRef &, const reco::GsfTrackRef &)
 
 ~EventData ()
 

Public Attributes

edm::Handle< EcalRecHitCollectionbarrelRecHits
 
const reco::BeamSpotbeamspot
 
edm::Handle< reco::GsfElectronCoreCollectioncoreElectrons
 
edm::Handle< reco::TrackCollectioncurrentCtfTracks
 
EgammaRecHitIsolationecalBarrelIsol03
 
EgammaRecHitIsolationecalBarrelIsol04
 
EgammaRecHitIsolationecalEndcapIsol03
 
EgammaRecHitIsolationecalEndcapIsol04
 
IsolationValueMaps edIsolationValues
 
GsfElectronPtrCollectionelectrons
 
edm::Handle< EcalRecHitCollectionendcapRecHits
 
edm::Eventevent
 
edm::Handle< reco::GsfPFRecTrackCollectiongsfPfRecTracks
 
EgammaTowerIsolationhadDepth1Isolation03
 
EgammaTowerIsolationhadDepth1Isolation03Bc
 
EgammaTowerIsolationhadDepth1Isolation04
 
EgammaTowerIsolationhadDepth1Isolation04Bc
 
EgammaTowerIsolationhadDepth2Isolation03
 
EgammaTowerIsolationhadDepth2Isolation03Bc
 
EgammaTowerIsolationhadDepth2Isolation04
 
EgammaTowerIsolationhadDepth2Isolation04Bc
 
bool originalCtfTrackCollectionRetreived
 
edm::Handle< reco::TrackCollectionoriginalCtfTracks
 
bool originalGsfTrackCollectionRetreived
 
edm::Handle< reco::GsfTrackCollectionoriginalGsfTracks
 
IsolationValueMaps pfIsolationValues
 
edm::Handle< reco::GsfElectronCollectionpflowElectrons
 
edm::Handle< edm::ValueMap< float > > pfMva
 
edm::Handle< reco::GsfElectronCollectionpreviousElectrons
 
edm::Handle< reco::ElectronSeedCollectionseeds
 
edm::Handle< CaloTowerCollectiontowers
 
edm::Handle< reco::VertexCollectionvertices
 

Detailed Description

Definition at line 185 of file GsfElectronAlgo.cc.

Member Typedef Documentation

Definition at line 225 of file GsfElectronAlgo.cc.

Constructor & Destructor Documentation

GsfElectronAlgo::EventData::EventData ( )

Definition at line 230 of file GsfElectronAlgo.cc.

References electrons.

Referenced by GsfElectronAlgo::beginEvent().

231  : event(nullptr), beamspot(nullptr),
234  hadDepth1Isolation03(nullptr), hadDepth1Isolation04(nullptr),
235  hadDepth2Isolation03(nullptr), hadDepth2Isolation04(nullptr),
238  ecalBarrelIsol03(nullptr), ecalBarrelIsol04(nullptr),
239  ecalEndcapIsol03(nullptr), ecalEndcapIsol04(nullptr)
240  {
242  }
EgammaTowerIsolation * hadDepth1Isolation04Bc
EgammaTowerIsolation * hadDepth1Isolation03Bc
EgammaTowerIsolation * hadDepth1Isolation03
EgammaRecHitIsolation * ecalBarrelIsol04
EgammaTowerIsolation * hadDepth2Isolation03
EgammaTowerIsolation * hadDepth1Isolation04
EgammaRecHitIsolation * ecalEndcapIsol03
EgammaTowerIsolation * hadDepth2Isolation03Bc
std::list< reco::GsfElectron * > GsfElectronPtrCollection
const reco::BeamSpot * beamspot
GsfElectronPtrCollection * electrons
EgammaTowerIsolation * hadDepth2Isolation04Bc
EgammaRecHitIsolation * ecalBarrelIsol03
EgammaTowerIsolation * hadDepth2Isolation04
EgammaRecHitIsolation * ecalEndcapIsol04
GsfElectronAlgo::EventData::~EventData ( )

Definition at line 244 of file GsfElectronAlgo.cc.

References ecalBarrelIsol03, ecalBarrelIsol04, ecalEndcapIsol03, ecalEndcapIsol04, electrons, hadDepth1Isolation03, hadDepth1Isolation03Bc, hadDepth1Isolation04, hadDepth1Isolation04Bc, hadDepth2Isolation03, hadDepth2Isolation03Bc, hadDepth2Isolation04, hadDepth2Isolation04Bc, and retreiveOriginalTrackCollections().

245  {
246  delete hadDepth1Isolation03 ;
247  delete hadDepth1Isolation04 ;
248  delete hadDepth2Isolation03 ;
249  delete hadDepth2Isolation04 ;
250  delete hadDepth1Isolation03Bc ;
251  delete hadDepth1Isolation04Bc ;
252  delete hadDepth2Isolation03Bc ;
253  delete hadDepth2Isolation04Bc ;
254  delete ecalBarrelIsol03 ;
255  delete ecalBarrelIsol04 ;
256  delete ecalEndcapIsol03 ;
257  delete ecalEndcapIsol04 ;
258 
259  GsfElectronPtrCollection::const_iterator it ;
260  for ( it = electrons->begin() ; it != electrons->end() ; it++ )
261  { delete (*it) ; }
262  delete electrons ;
263  }
EgammaTowerIsolation * hadDepth1Isolation04Bc
EgammaTowerIsolation * hadDepth1Isolation03Bc
EgammaTowerIsolation * hadDepth1Isolation03
EgammaRecHitIsolation * ecalBarrelIsol04
EgammaTowerIsolation * hadDepth2Isolation03
EgammaTowerIsolation * hadDepth1Isolation04
EgammaRecHitIsolation * ecalEndcapIsol03
EgammaTowerIsolation * hadDepth2Isolation03Bc
GsfElectronPtrCollection * electrons
EgammaTowerIsolation * hadDepth2Isolation04Bc
EgammaRecHitIsolation * ecalBarrelIsol03
EgammaTowerIsolation * hadDepth2Isolation04
EgammaRecHitIsolation * ecalEndcapIsol04

Member Function Documentation

void GsfElectronAlgo::EventData::retreiveOriginalTrackCollections ( const reco::TrackRef ctfTrack,
const reco::GsfTrackRef gsfTrack 
)

Definition at line 266 of file GsfElectronAlgo.cc.

References edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::isNonnull(), originalCtfTrackCollectionRetreived, originalCtfTracks, originalGsfTrackCollectionRetreived, originalGsfTracks, and funct::true.

Referenced by GsfElectronAlgo::createElectron(), and ~EventData().

267  {
268  if ((!originalCtfTrackCollectionRetreived)&&(ctfTrack.isNonnull()))
269  {
270  event->get(ctfTrack.id(),originalCtfTracks) ;
272  }
273  if ((!originalGsfTrackCollectionRetreived)&&(gsfTrack.isNonnull()))
274  {
275  event->get(gsfTrack.id(),originalGsfTracks) ;
277  }
278  }
edm::Handle< reco::TrackCollection > originalCtfTracks
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:251
ProductID id() const
Accessor for product ID.
Definition: Ref.h:257
edm::Handle< reco::GsfTrackCollection > originalGsfTracks

Member Data Documentation

edm::Handle<EcalRecHitCollection> GsfElectronAlgo::EventData::barrelRecHits
const reco::BeamSpot* GsfElectronAlgo::EventData::beamspot
edm::Handle<reco::GsfElectronCoreCollection> GsfElectronAlgo::EventData::coreElectrons
edm::Handle<reco::TrackCollection> GsfElectronAlgo::EventData::currentCtfTracks
EgammaRecHitIsolation* GsfElectronAlgo::EventData::ecalBarrelIsol03
EgammaRecHitIsolation * GsfElectronAlgo::EventData::ecalBarrelIsol04
EgammaRecHitIsolation* GsfElectronAlgo::EventData::ecalEndcapIsol03
EgammaRecHitIsolation * GsfElectronAlgo::EventData::ecalEndcapIsol04
IsolationValueMaps GsfElectronAlgo::EventData::edIsolationValues
GsfElectronPtrCollection* GsfElectronAlgo::EventData::electrons
edm::Handle<EcalRecHitCollection> GsfElectronAlgo::EventData::endcapRecHits
edm::Event* GsfElectronAlgo::EventData::event
edm::Handle<reco::GsfPFRecTrackCollection> GsfElectronAlgo::EventData::gsfPfRecTracks
EgammaTowerIsolation* GsfElectronAlgo::EventData::hadDepth1Isolation03
EgammaTowerIsolation* GsfElectronAlgo::EventData::hadDepth1Isolation03Bc
EgammaTowerIsolation * GsfElectronAlgo::EventData::hadDepth1Isolation04
EgammaTowerIsolation * GsfElectronAlgo::EventData::hadDepth1Isolation04Bc
EgammaTowerIsolation* GsfElectronAlgo::EventData::hadDepth2Isolation03
EgammaTowerIsolation* GsfElectronAlgo::EventData::hadDepth2Isolation03Bc
EgammaTowerIsolation * GsfElectronAlgo::EventData::hadDepth2Isolation04
EgammaTowerIsolation * GsfElectronAlgo::EventData::hadDepth2Isolation04Bc
bool GsfElectronAlgo::EventData::originalCtfTrackCollectionRetreived

Definition at line 210 of file GsfElectronAlgo.cc.

Referenced by retreiveOriginalTrackCollections().

edm::Handle<reco::TrackCollection> GsfElectronAlgo::EventData::originalCtfTracks
bool GsfElectronAlgo::EventData::originalGsfTrackCollectionRetreived

Definition at line 211 of file GsfElectronAlgo.cc.

Referenced by retreiveOriginalTrackCollections().

edm::Handle<reco::GsfTrackCollection> GsfElectronAlgo::EventData::originalGsfTracks
IsolationValueMaps GsfElectronAlgo::EventData::pfIsolationValues
edm::Handle<reco::GsfElectronCollection> GsfElectronAlgo::EventData::pflowElectrons
edm::Handle<edm::ValueMap<float> > GsfElectronAlgo::EventData::pfMva

Definition at line 207 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::beginEvent().

edm::Handle<reco::GsfElectronCollection> GsfElectronAlgo::EventData::previousElectrons
edm::Handle<reco::ElectronSeedCollection> GsfElectronAlgo::EventData::seeds

Definition at line 208 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::beginEvent().

edm::Handle<CaloTowerCollection> GsfElectronAlgo::EventData::towers

Definition at line 206 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::beginEvent().

edm::Handle<reco::VertexCollection> GsfElectronAlgo::EventData::vertices