Classes | Enumerations | Functions
nerd Namespace Reference

Defines an enumeration for nerd classification. More...

Classes

class  NERDEval
 
struct  NERDEvalParams
 
class  NERDProng
 
struct  NERDProngParams
 
class  PixelPIDMaps
 
class  ViewMatchAlg
 
struct  ViewMatchParams
 

Enumerations

enum  NType {
  kBackground, kElectron, kMuon, kProton,
  kPhoton, kPion, kOther
}
 

Functions

int GetPDGByNType (NType ntype)
 

Detailed Description

Defines an enumeration for nerd classification.

Enumeration Type Documentation

Enumerator
kBackground 
kElectron 
kMuon 
kProton 
kPhoton 
kPion 
kOther 

Definition at line 12 of file NERDType.h.

Function Documentation

int nerd::GetPDGByNType ( NType  ntype)

Definition at line 5 of file NERDType.cxx.

References kElectron, kMuon, kPhoton, kPion, and kProton.

6  {
7  switch (ntype) {
8  case kElectron:
9  return 11;
10 
11  case kMuon:
12  return 13;
13 
14  case kProton:
15  return 2212;
16 
17  case kPhoton:
18  return 22;
19 
20  case kPion:
21  return 211;
22 
23  default:
24  return 0;
25  }
26  }