Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
EgammaCandidates
src
GsfElectronCore.cc
Go to the documentation of this file.
1
2
#include "
DataFormats/EgammaCandidates/interface/GsfElectronCore.h
"
3
#include "
DataFormats/GsfTrackReco/interface/GsfTrack.h
"
4
#include "
DataFormats/EgammaReco/interface/ElectronSeedFwd.h
"
5
#include "
DataFormats/EgammaReco/interface/ElectronSeed.h
"
6
7
#include <cmath>
8
9
using namespace
reco
;
10
11
GsfElectronCore::GsfElectronCore
12
()
13
: ctfGsfOverlap_(0.), isEcalDrivenSeed_(
false
), isTrackerDrivenSeed_(
false
)
14
{}
15
16
GsfElectronCore::GsfElectronCore
17
(
const
GsfTrackRef
& gsfTrack )
18
: gsfTrack_(gsfTrack), ctfGsfOverlap_(0.), isEcalDrivenSeed_(
false
), isTrackerDrivenSeed_(
false
)
19
{
20
edm::RefToBase<TrajectorySeed>
seed = gsfTrack_->extra()->seedRef() ;
21
if
(seed.
isNull
())
22
{
edm::LogError
(
"GsfElectronCore"
)<<
"The GsfTrack has no seed ?!"
; }
23
else
24
{
25
ElectronSeedRef
elseed = seed.
castTo
<
ElectronSeedRef
>() ;
26
if
(elseed.
isNull
())
27
{
edm::LogError
(
"GsfElectronCore"
)<<
"The GsfTrack seed is not an ElectronSeed ?!"
; }
28
else
29
{
30
if
(elseed->isEcalDriven()) isEcalDrivenSeed_ =
true
;
31
if
(elseed->isTrackerDriven()) isTrackerDrivenSeed_ =
true
;
32
}
33
}
34
}
35
36
GsfElectronCore
*
GsfElectronCore::clone
()
const
37
{
return
new
GsfElectronCore
(*
this
) ; }
reco::GsfElectronCore::GsfElectronCore
GsfElectronCore()
Definition:
GsfElectronCore.cc:12
edm::RefToBase::isNull
bool isNull() const
Checks for null.
Definition:
RefToBase.h:270
GsfElectronCore.h
ElectronSeedFwd.h
edm::RefToBase< TrajectorySeed >
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
reco::GsfElectronCore
Definition:
GsfElectronCore.h:28
edm::LogError
Definition:
MessageLogger.h:164
edm::Ref::isNull
bool isNull() const
Checks for null.
Definition:
Ref.h:247
GsfTrack.h
edm::RefToBase::castTo
REF castTo() const
cast to a concrete type
Definition:
RefToBase.h:241
ElectronSeed.h
reco::GsfElectronCore::clone
GsfElectronCore * clone() const
Definition:
GsfElectronCore.cc:36
edm::Ref< GsfTrackCollection >
Generated for CMSSW Reference Manual by
1.8.5