CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::GsfElectronCoreCollection
coreElectrons
 
edm::Handle
< reco::TrackCollection
currentCtfTracks
 
EcalRecHitMetaCollectionecalBarrelHitsMeta
 
EgammaRecHitIsolationecalBarrelIsol03
 
EgammaRecHitIsolationecalBarrelIsol04
 
EcalRecHitMetaCollectionecalEndcapHitsMeta
 
EgammaRecHitIsolationecalEndcapIsol03
 
EgammaRecHitIsolationecalEndcapIsol04
 
IsolationValueMaps edIsolationValues
 
GsfElectronPtrCollectionelectrons
 
edm::Handle< EcalRecHitCollectionendcapRecHits
 
edm::Eventevent
 
edm::Handle
< reco::GsfPFRecTrackCollection
gsfPfRecTracks
 
EgammaTowerIsolationhadDepth1Isolation03
 
EgammaTowerIsolationhadDepth1Isolation03Bc
 
EgammaTowerIsolationhadDepth1Isolation04
 
EgammaTowerIsolationhadDepth1Isolation04Bc
 
EgammaTowerIsolationhadDepth2Isolation03
 
EgammaTowerIsolationhadDepth2Isolation03Bc
 
EgammaTowerIsolationhadDepth2Isolation04
 
EgammaTowerIsolationhadDepth2Isolation04Bc
 
bool originalCtfTrackCollectionRetreived
 
edm::Handle
< reco::TrackCollection
originalCtfTracks
 
bool originalGsfTrackCollectionRetreived
 
edm::Handle
< reco::GsfTrackCollection
originalGsfTracks
 
IsolationValueMaps pfIsolationValues
 
edm::Handle
< reco::GsfElectronCollection
pflowElectrons
 
edm::Handle< edm::ValueMap
< float > > 
pfMva
 
edm::Handle
< reco::GsfElectronCollection
previousElectrons
 
edm::Handle
< reco::ElectronSeedCollection
seeds
 
ElectronTkIsolationtkIsolation03
 
ElectronTkIsolationtkIsolation04
 
edm::Handle< CaloTowerCollectiontowers
 
edm::Handle
< reco::VertexCollection
vertices
 

Detailed Description

Definition at line 176 of file GsfElectronAlgo.cc.

Member Typedef Documentation

Definition at line 219 of file GsfElectronAlgo.cc.

Constructor & Destructor Documentation

GsfElectronAlgo::EventData::EventData ( )

Definition at line 224 of file GsfElectronAlgo.cc.

References electrons.

225  : event(0), beamspot(0),
234  {
236  }
EgammaTowerIsolation * hadDepth1Isolation03
EgammaRecHitIsolation * ecalBarrelIsol04
EgammaTowerIsolation * hadDepth2Isolation03
EgammaTowerIsolation * hadDepth1Isolation04
ElectronTkIsolation * tkIsolation03
EgammaRecHitIsolation * ecalEndcapIsol03
std::list< reco::GsfElectron * > GsfElectronPtrCollection
const reco::BeamSpot * beamspot
GsfElectronPtrCollection * electrons
EgammaRecHitIsolation * ecalBarrelIsol03
EcalRecHitMetaCollection * ecalBarrelHitsMeta
EgammaTowerIsolation * hadDepth2Isolation04
EgammaRecHitIsolation * ecalEndcapIsol04
ElectronTkIsolation * tkIsolation04
EcalRecHitMetaCollection * ecalEndcapHitsMeta
GsfElectronAlgo::EventData::~EventData ( )

Definition at line 238 of file GsfElectronAlgo.cc.

References HI_PhotonSkim_cff::electrons.

239  {
240  delete tkIsolation03 ;
241  delete tkIsolation04 ;
242  delete hadDepth1Isolation03 ;
243  delete hadDepth1Isolation04 ;
244  delete hadDepth2Isolation03 ;
245  delete hadDepth2Isolation04 ;
246  delete ecalBarrelHitsMeta ;
247  delete ecalEndcapHitsMeta ;
248  delete ecalBarrelIsol03 ;
249  delete ecalBarrelIsol04 ;
250  delete ecalEndcapIsol03 ;
251  delete ecalEndcapIsol04 ;
252 
253  GsfElectronPtrCollection::const_iterator it ;
254  for ( it = electrons->begin() ; it != electrons->end() ; it++ )
255  { delete (*it) ; }
256  delete electrons ;
257  }
EgammaTowerIsolation * hadDepth1Isolation03
EgammaRecHitIsolation * ecalBarrelIsol04
EgammaTowerIsolation * hadDepth2Isolation03
EgammaTowerIsolation * hadDepth1Isolation04
ElectronTkIsolation * tkIsolation03
EgammaRecHitIsolation * ecalEndcapIsol03
GsfElectronPtrCollection * electrons
EgammaRecHitIsolation * ecalBarrelIsol03
EcalRecHitMetaCollection * ecalBarrelHitsMeta
EgammaTowerIsolation * hadDepth2Isolation04
EgammaRecHitIsolation * ecalEndcapIsol04
ElectronTkIsolation * tkIsolation04
EcalRecHitMetaCollection * ecalEndcapHitsMeta

Member Function Documentation

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

Definition at line 260 of file GsfElectronAlgo.cc.

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

Referenced by GsfElectronAlgo::createElectron().

261  {
262  if ((!originalCtfTrackCollectionRetreived)&&(ctfTrack.isNonnull()))
263  {
264  event->get(ctfTrack.id(),originalCtfTracks) ;
266  }
267  if ((!originalGsfTrackCollectionRetreived)&&(gsfTrack.isNonnull()))
268  {
269  event->get(gsfTrack.id(),originalGsfTracks) ;
271  }
272  }
edm::Handle< reco::TrackCollection > originalCtfTracks
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
edm::Handle< reco::GsfTrackCollection > originalGsfTracks
ProductID id() const
Accessor for product ID.
Definition: Ref.h:256

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
EcalRecHitMetaCollection* GsfElectronAlgo::EventData::ecalBarrelHitsMeta

Definition at line 213 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::beginEvent().

EgammaRecHitIsolation* GsfElectronAlgo::EventData::ecalBarrelIsol03
EgammaRecHitIsolation * GsfElectronAlgo::EventData::ecalBarrelIsol04
EcalRecHitMetaCollection* GsfElectronAlgo::EventData::ecalEndcapHitsMeta

Definition at line 214 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::beginEvent().

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 201 of file GsfElectronAlgo.cc.

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

Definition at line 203 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::createElectron().

bool GsfElectronAlgo::EventData::originalGsfTrackCollectionRetreived

Definition at line 202 of file GsfElectronAlgo.cc.

edm::Handle<reco::GsfTrackCollection> GsfElectronAlgo::EventData::originalGsfTracks

Definition at line 204 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::createElectron().

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

Definition at line 198 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 199 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::beginEvent().

ElectronTkIsolation* GsfElectronAlgo::EventData::tkIsolation03
ElectronTkIsolation * GsfElectronAlgo::EventData::tkIsolation04
edm::Handle<CaloTowerCollection> GsfElectronAlgo::EventData::towers

Definition at line 197 of file GsfElectronAlgo.cc.

Referenced by GsfElectronAlgo::beginEvent().

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