BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkFitTypeKey Class Reference

#include <TrkFitTypeKey.h>

Public Member Functions

 TrkFitTypeKey (const char *name=0, const PdtPid::PidType pid=PdtPid::null)
 
 TrkFitTypeKey (const TrkFitTypeKey &)
 
 TrkFitTypeKey (const int &)
 
virtual ~TrkFitTypeKey ()
 
bool operator== (const TrkFitTypeKey &rhs) const
 
bool operator< (const TrkFitTypeKey &rhs) const
 
TrkFitTypeKeyoperator= (const TrkFitTypeKey &rhs)
 
const int & value () const
 
const IfdKeyifdKey () const
 
PdtPid::PidType pidType () const
 
void printAll (std::ostream &os=std::cout) const
 
 TrkFitTypeKey (const char *name=0, const PdtPid::PidType pid=PdtPid::null)
 
 TrkFitTypeKey (const TrkFitTypeKey &)
 
 TrkFitTypeKey (const int &)
 
virtual ~TrkFitTypeKey ()
 
bool operator== (const TrkFitTypeKey &rhs) const
 
bool operator< (const TrkFitTypeKey &rhs) const
 
TrkFitTypeKeyoperator= (const TrkFitTypeKey &rhs)
 
const int & value () const
 
const IfdKeyifdKey () const
 
PdtPid::PidType pidType () const
 
void printAll (std::ostream &os=std::cout) const
 

Static Public Member Functions

static int currentKey ()
 
static void killFitType (const TrkFitTypeKey key)
 
static int currentKey ()
 
static void killFitType (const TrkFitTypeKey key)
 

Static Protected Member Functions

static int newFitType (const char *name=0)
 
static int newFitType (const char *name=0)
 

Detailed Description

Constructor & Destructor Documentation

◆ TrkFitTypeKey() [1/6]

TrkFitTypeKey::TrkFitTypeKey ( const char *  name = 0,
const PdtPid::PidType  pid = PdtPid::null 
)

Definition at line 86 of file TrkFitTypeKey.cxx.

88 :_value(newFitType(name))
89{
90 if ( _value >= 0 ) _pidTypes.push_back(pid);
91}
static int newFitType(const char *name=0)

◆ TrkFitTypeKey() [2/6]

TrkFitTypeKey::TrkFitTypeKey ( const TrkFitTypeKey rhs)

Definition at line 93 of file TrkFitTypeKey.cxx.

94 :_value(rhs.value())
95{
96}

◆ TrkFitTypeKey() [3/6]

TrkFitTypeKey::TrkFitTypeKey ( const int &  val)

Definition at line 98 of file TrkFitTypeKey.cxx.

99 :_value(val)
100{
101}

◆ ~TrkFitTypeKey() [1/2]

TrkFitTypeKey::~TrkFitTypeKey ( )
virtual

Definition at line 107 of file TrkFitTypeKey.cxx.

108{
109}

◆ TrkFitTypeKey() [4/6]

TrkFitTypeKey::TrkFitTypeKey ( const char *  name = 0,
const PdtPid::PidType  pid = PdtPid::null 
)

◆ TrkFitTypeKey() [5/6]

TrkFitTypeKey::TrkFitTypeKey ( const TrkFitTypeKey )

◆ TrkFitTypeKey() [6/6]

TrkFitTypeKey::TrkFitTypeKey ( const int &  )

◆ ~TrkFitTypeKey() [2/2]

virtual TrkFitTypeKey::~TrkFitTypeKey ( )
virtual

Member Function Documentation

◆ currentKey() [1/2]

static int TrkFitTypeKey::currentKey ( )
inlinestatic

Definition at line 39 of file InstallArea/include/TrkBase/TrkBase/TrkFitTypeKey.h.

39{ return _keys.size(); }

Referenced by ifdKey(), killFitType(), newFitType(), and pidType().

◆ currentKey() [2/2]

static int TrkFitTypeKey::currentKey ( )
inlinestatic

Definition at line 39 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitTypeKey.h.

39{ return _keys.size(); }

◆ ifdKey() [1/2]

const IfdKey * TrkFitTypeKey::ifdKey ( ) const
inline

Definition at line 85 of file InstallArea/include/TrkBase/TrkBase/TrkFitTypeKey.h.

85 {
86 if ( _value < 0 || _value >= currentKey() ) return 0;
87 return _keys[_value];
88 }

◆ ifdKey() [2/2]

const IfdKey * TrkFitTypeKey::ifdKey ( ) const
inline

Definition at line 85 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitTypeKey.h.

85 {
86 if ( _value < 0 || _value >= currentKey() ) return 0;
87 return _keys[_value];
88 }

◆ killFitType() [1/2]

void TrkFitTypeKey::killFitType ( const TrkFitTypeKey  key)
static

Definition at line 72 of file TrkFitTypeKey.cxx.

73{
74 const int i = key.value();
75 if ( i < 0 || i >= currentKey() ) return;
76 IfdKey* theKey = _keys[i];
77 assert(theKey != 0 );
78 delete theKey;
79 theKey = 0;
80}
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
Definition: Taupair.h:42

◆ killFitType() [2/2]

static void TrkFitTypeKey::killFitType ( const TrkFitTypeKey  key)
static

◆ newFitType() [1/2]

int TrkFitTypeKey::newFitType ( const char *  name = 0)
staticprotected

Definition at line 64 of file TrkFitTypeKey.cxx.

65{
66 if ( name == 0 ) return _defaultValue;
67 _keys.push_back( new IfdStrKey(name) );
68 return (currentKey()-1);
69}

◆ newFitType() [2/2]

static int TrkFitTypeKey::newFitType ( const char *  name = 0)
staticprotected

◆ operator<() [1/2]

bool TrkFitTypeKey::operator< ( const TrkFitTypeKey rhs) const
inline

Definition at line 74 of file InstallArea/include/TrkBase/TrkBase/TrkFitTypeKey.h.

74 {
75 return _value < rhs.value();
76 }

◆ operator<() [2/2]

bool TrkFitTypeKey::operator< ( const TrkFitTypeKey rhs) const
inline

Definition at line 74 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitTypeKey.h.

74 {
75 return _value < rhs.value();
76 }

◆ operator=() [1/2]

TrkFitTypeKey & TrkFitTypeKey::operator= ( const TrkFitTypeKey rhs)
inline

Definition at line 77 of file InstallArea/include/TrkBase/TrkBase/TrkFitTypeKey.h.

77 {
78 _value = rhs.value();
79 return *this;
80 }

◆ operator=() [2/2]

TrkFitTypeKey & TrkFitTypeKey::operator= ( const TrkFitTypeKey rhs)
inline

Definition at line 77 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitTypeKey.h.

77 {
78 _value = rhs.value();
79 return *this;
80 }

◆ operator==() [1/2]

bool TrkFitTypeKey::operator== ( const TrkFitTypeKey rhs) const
inline

Definition at line 71 of file InstallArea/include/TrkBase/TrkBase/TrkFitTypeKey.h.

71 {
72 return _value == rhs.value();
73 }

◆ operator==() [2/2]

bool TrkFitTypeKey::operator== ( const TrkFitTypeKey rhs) const
inline

Definition at line 71 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitTypeKey.h.

71 {
72 return _value == rhs.value();
73 }

◆ pidType() [1/2]

PdtPid::PidType TrkFitTypeKey::pidType ( ) const
inline

Definition at line 90 of file InstallArea/include/TrkBase/TrkBase/TrkFitTypeKey.h.

90 {
91 if ( _value < 0 || _value >= currentKey() ) return PdtPid::null;
92 return _pidTypes[_value];
93 }

◆ pidType() [2/2]

PdtPid::PidType TrkFitTypeKey::pidType ( ) const
inline

Definition at line 90 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitTypeKey.h.

90 {
91 if ( _value < 0 || _value >= currentKey() ) return PdtPid::null;
92 return _pidTypes[_value];
93 }

◆ printAll() [1/2]

void TrkFitTypeKey::printAll ( std::ostream &  os = std::cout) const

◆ printAll() [2/2]

void TrkFitTypeKey::printAll ( std::ostream &  os = std::cout) const

◆ value() [1/2]

const int & TrkFitTypeKey::value ( ) const
inline

Definition at line 83 of file InstallArea/include/TrkBase/TrkBase/TrkFitTypeKey.h.

83{ return _value; }

Referenced by operator<(), operator=(), and operator==().

◆ value() [2/2]

const int & TrkFitTypeKey::value ( ) const
inline

Definition at line 83 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitTypeKey.h.

83{ return _value; }

The documentation for this class was generated from the following files: