ATLAS Offline Software
Loading...
Searching...
No Matches
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)

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.

11 : m_electron(ElementLink<ElectronContainer>()),
12 m_photon(ElementLink<PhotonContainer>()),
13 m_valD0wrtPV(0),
14 m_pTrel(0)
15{
16}
ElementLink< PhotonContainer > m_photon
Definition SETrackInfo.h:50
ElementLink< ElectronContainer > m_electron
Definition SETrackInfo.h:49

◆ 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 {
23 ElementLink<ElectronContainer> link;
24 if( link.toContainedElement(*coll, const_cast<Electron*>(mu)) ) {
25 m_electron = link;
26 }
27 m_valD0wrtPV = d0val;
28 m_pTrel = pTrel;
30}
const std::vector< double > & tagLikelihood() const
Definition SETrackInfo.h:45
double pTrel() const
Definition SETrackInfo.h:44
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition SETrackInfo.h:53
Electron_v1 Electron
Definition of the current "egamma version".

◆ 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 {
37 ElementLink<PhotonContainer> link;
38 if( link.toContainedElement(*coll, const_cast<Photon*>(mu)) ) {
39 m_photon = link;
40 }
41 m_valD0wrtPV = d0val;
42 m_pTrel = pTrel;
44}
Photon_v1 Photon
Definition of the current "egamma version".

◆ 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: