ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Analysis::SETrackInfo Class Reference

#include <SETrackInfo.h>

Collaboration diagram for Analysis::SETrackInfo:

Public Member Functions

 SETrackInfo ()
 
 SETrackInfo (const ElectronContainer *coll, const Electron *el, double d0val, double pTrel, const std::vector< double > &tagLikelihood)
 
 SETrackInfo (const PhotonContainer *coll, const Photon *el, double d0val, double pTrel, const std::vector< double > &tagLikelihood)
 
 SETrackInfo (const ElementLink< ElectronContainer > &eleLink, double d0val, double pTrel, std::vector< double > &&tagLikelihood)
 
 SETrackInfo (const ElementLink< PhotonContainer > &gamLink, double d0val, double pTrel, std::vector< double > &&tagLikelihood)
 
bool isPhoton () const
 
const egammaelectron () const
 
double d0Value () const
 
double pTrel () const
 
const std::vector< double > & tagLikelihood () const
 
const ElementLink< ElectronContainer > & electronLink () const
 
const ElementLink< PhotonContainer > & photonLink () const
 

Private Attributes

ElementLink< ElectronContainerm_electron
 
ElementLink< PhotonContainerm_photon
 
double m_valD0wrtPV
 
double m_pTrel
 
std::vector< double > m_tagLikelihood
 vector to hold the taglikelihood (signal plus N background) More...
 

Detailed Description

Definition at line 20 of file SETrackInfo.h.

Constructor & Destructor Documentation

◆ SETrackInfo() [1/5]

Analysis::SETrackInfo::SETrackInfo ( )

Definition at line 11 of file SETrackInfo.cxx.

◆ SETrackInfo() [2/5]

Analysis::SETrackInfo::SETrackInfo ( const ElectronContainer coll,
const Electron el,
double  d0val,
double  pTrel,
const std::vector< double > &  tagLikelihood 
)

Definition at line 18 of file SETrackInfo.cxx.

22  {
24  if( link.toContainedElement(*coll, const_cast<Electron*>(mu)) ) {
25  m_electron = link;
26  }
27  m_valD0wrtPV = d0val;
28  m_pTrel = pTrel;
30 }

◆ SETrackInfo() [3/5]

Analysis::SETrackInfo::SETrackInfo ( const PhotonContainer coll,
const Photon el,
double  d0val,
double  pTrel,
const std::vector< double > &  tagLikelihood 
)

Definition at line 32 of file SETrackInfo.cxx.

36  {
38  if( link.toContainedElement(*coll, const_cast<Photon*>(mu)) ) {
39  m_photon = link;
40  }
41  m_valD0wrtPV = d0val;
42  m_pTrel = pTrel;
44 }

◆ SETrackInfo() [4/5]

Analysis::SETrackInfo::SETrackInfo ( const ElementLink< ElectronContainer > &  eleLink,
double  d0val,
double  pTrel,
std::vector< double > &&  tagLikelihood 
)

Definition at line 46 of file SETrackInfo.cxx.

50  : m_electron (eleLink),
51  m_valD0wrtPV (d0val),
52  m_pTrel (pTrel),
53  m_tagLikelihood (std::move (tagLikelihood))
54  {
55 }

◆ SETrackInfo() [5/5]

Analysis::SETrackInfo::SETrackInfo ( const ElementLink< PhotonContainer > &  gamLink,
double  d0val,
double  pTrel,
std::vector< double > &&  tagLikelihood 
)

Definition at line 57 of file SETrackInfo.cxx.

61  : m_photon (gamLink),
62  m_valD0wrtPV (d0val),
63  m_pTrel (pTrel),
64  m_tagLikelihood (std::move (tagLikelihood))
65  {
66 }

Member Function Documentation

◆ d0Value()

double Analysis::SETrackInfo::d0Value ( ) const
inline

Definition at line 43 of file SETrackInfo.h.

43 { return m_valD0wrtPV; }

◆ electron()

const egamma * Analysis::SETrackInfo::electron ( ) const

Definition at line 68 of file SETrackInfo.cxx.

68  {
69  if( m_electron.isValid() ) {
70  return *(m_electron);
71  } else if ( m_photon.isValid() ) {
72  return *(m_photon);
73  } else {
74  return 0;
75  }
76 }

◆ electronLink()

const ElementLink<ElectronContainer>& Analysis::SETrackInfo::electronLink ( ) const
inline

Definition at line 46 of file SETrackInfo.h.

46 { return m_electron; }

◆ isPhoton()

bool Analysis::SETrackInfo::isPhoton ( ) const

Definition at line 78 of file SETrackInfo.cxx.

78  {
79  if ( m_photon.isValid() ) return true;
80  return false;
81 }

◆ photonLink()

const ElementLink<PhotonContainer>& Analysis::SETrackInfo::photonLink ( ) const
inline

Definition at line 47 of file SETrackInfo.h.

47 { return m_photon; }

◆ pTrel()

double Analysis::SETrackInfo::pTrel ( ) const
inline

Definition at line 44 of file SETrackInfo.h.

44 { return m_pTrel; }

◆ tagLikelihood()

const std::vector<double>& Analysis::SETrackInfo::tagLikelihood ( ) const
inline

Definition at line 45 of file SETrackInfo.h.

45 { return m_tagLikelihood; }

Member Data Documentation

◆ m_electron

ElementLink<ElectronContainer> Analysis::SETrackInfo::m_electron
private

Definition at line 49 of file SETrackInfo.h.

◆ m_photon

ElementLink<PhotonContainer> Analysis::SETrackInfo::m_photon
private

Definition at line 50 of file SETrackInfo.h.

◆ m_pTrel

double Analysis::SETrackInfo::m_pTrel
private

Definition at line 52 of file SETrackInfo.h.

◆ m_tagLikelihood

std::vector<double> Analysis::SETrackInfo::m_tagLikelihood
private

vector to hold the taglikelihood (signal plus N background)

Definition at line 53 of file SETrackInfo.h.

◆ m_valD0wrtPV

double Analysis::SETrackInfo::m_valD0wrtPV
private

Definition at line 51 of file SETrackInfo.h.


The documentation for this class was generated from the following files:
Analysis::SETrackInfo::m_pTrel
double m_pTrel
Definition: SETrackInfo.h:52
Analysis::SETrackInfo::m_photon
ElementLink< PhotonContainer > m_photon
Definition: SETrackInfo.h:50
Analysis::SETrackInfo::tagLikelihood
const std::vector< double > & tagLikelihood() const
Definition: SETrackInfo.h:45
Analysis::SETrackInfo::m_electron
ElementLink< ElectronContainer > m_electron
Definition: SETrackInfo.h:49
Analysis::SETrackInfo::pTrel
double pTrel() const
Definition: SETrackInfo.h:44
Photon
Class describing an photon
Analysis::SETrackInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition: SETrackInfo.h:53
Analysis::SETrackInfo::m_valD0wrtPV
double m_valD0wrtPV
Definition: SETrackInfo.h:51
Electron
Class describing an electron.
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53