BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkTypeUtil.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkTypeUtil.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// Class TrkTypeUtil
7//
8// Environment:
9// Software developed for BaBar expirment @ SLAC B-Factory
10//
11// Author List:
12// Eric A Charles
13//
14// Copyright Information:
15// Copyright (C) 1998 Univ. Wisconsin-Madison
16//
17//------------------------------------------------------------------------
18
19//----------------
20// BaBar header
21//----------------
22//#include "BaBar/BaBar.hh"
23
24//-----------------------
25// This Class's Header --
26//-----------------------
27#include "TrkBase/TrkTypeUtil.h"
28
29//-------------
30// C Headers --
31//-------------
32extern "C" {
33}
34
35//---------------
36// C++ Headers --
37//---------------
38
39//-------------------------------
40// Collaborating Class Headers --
41//-------------------------------
42
43#include "TrkBase/TrkRecoTrk.h"
44#include "TrkBase/TrkRep.h"
45#include "TrkBase/TrkFitTypeKey.h"
46#include "TrkBase/TrkHitList.h"
47
48//-----------------------------------------------------------------------
49// Local Macros, Typedefs, Structures, Unions and Forward Declarations --
50//-----------------------------------------------------------------------
51
52
53
54// -----------------------------------------------
55// -- Static Data & Function Member Definitions --
56// -----------------------------------------------
57
58const TrkRep*
60 const PdtPid::PidType& pid){
61 return pid != PdtPid::null ? aTrk.testRep(pid)
62 : aTrk.testRep(aTrk.defaultType());
63 }
64
65const TrkHitList*
67 const PdtPid::PidType& pid){
68 return pid != PdtPid::null ? aTrk.hits(pid)
69 : aTrk.hits(aTrk.defaultType());
70}
71
72const TrkRep*
74 const TrkFitTypeKey& key ){
75 return getRep( aTrk, key.pidType() );
76}
77
78const TrkHitList*
80 const TrkFitTypeKey& key ){
81 return getHits( aTrk, key.pidType() );
82}
83
86 const TrkFitTypeKey& key ){
87 return key.pidType() != PdtPid::null ? key.pidType()
88 : aTrk.defaultType();
89}
90
*************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
const TrkRep * testRep(PdtPid::PidType hypo) const
static PdtPid::PidType pidType(const TrkRecoTrk &aTrk, const TrkFitTypeKey &key)
Definition: TrkTypeUtil.cxx:85
static const TrkHitList * getHits(const TrkRecoTrk &aTrk, const PdtPid::PidType &pid)
Definition: TrkTypeUtil.cxx:66
static const TrkRep * getRep(const TrkRecoTrk &aTrk, const PdtPid::PidType &pid)
Definition: TrkTypeUtil.cxx:59