CMS 3D CMS Logo

ElectronClassification.cc
Go to the documentation of this file.
2 
4 
5 
7 
8 //===================================================================
9 // Author: Federico Ferri - INFN Milano, Bicocca university
10 // 12/2005
11 // See GsfElectron::Classification
12 //===================================================================
13 
14 using namespace reco;
15 
17  {
18  if ((!electron.isEB())&&(!electron.isEE()))
19  {
20  edm::LogWarning("")
21  << "ElectronClassification::init(): Undefined electron, eta = "
22  << electron.eta() << "!!!!" ;
24  return ;
25  }
26 
27  if ( electron.isEBEEGap() || electron.isEBEtaGap() || electron.isEERingGap() )
28  {
30  return ;
31  }
32 
33  //float pin = electron.trackMomentumAtVtx().R() ;
34  float fbrem = electron.trackFbrem() ;
35  int nbrem = electron.numberOfBrems() ;
36 
37  if (nbrem == 0 && fbrem < 0.5) // part (pin - scEnergy)/pin < 0.1 removed - M.D.
39  else if (nbrem == 0 && fbrem >= 0.5) // part (pin - scEnergy)/pin < 0.1 removed - M.D.
41  else
43 
44  }
45 
47  {
48  if ((!electron.isEB())&&(!electron.isEE()))
49  { return ; }
50 
51  if ( electron.isEBEEGap() || electron.isEBEtaGap() || electron.isEERingGap() )
52  { return ; }
53 
54  if ((electron.superClusterFbrem()-electron.trackFbrem())>=0.15)
56  }
57 
double eta() const final
momentum pseudorapidity
bool isEBEtaGap() const
Definition: GsfElectron.h:361
bool isEBEEGap() const
Definition: GsfElectron.h:359
bool isEERingGap() const
Definition: GsfElectron.h:365
float superClusterFbrem() const
Definition: GsfElectron.h:765
bool isEE() const
Definition: GsfElectron.h:357
bool isEB() const
Definition: GsfElectron.h:356
return((rh^lh)&mask)
float trackFbrem() const
Definition: GsfElectron.h:764
int numberOfBrems() const
Definition: GsfElectron.h:770
void classify(reco::GsfElectron &)
void setClassification(Classification myclass)
Definition: GsfElectron.h:777
void refineWithPflow(reco::GsfElectron &)
fixed size matrix