BOSS
7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkTimeCalculator.h
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: TrkTimeCalculator.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4
//
5
// Description:
6
// class TrkTimeCalculator. An abstract base class for computing a new
7
// track time based on the hots in the track.
8
//
9
// Environment:
10
// Software developed for the BaBar Detector at the SLAC B-Factory.
11
//
12
// Copyright Information:
13
// Copyright (C) 2001 Lawrence Berkeley Laboratory
14
//
15
// Author List:
16
// Dave Brown 7/17/01
17
//------------------------------------------------------------------------
18
19
#ifndef TRKTIMECALCULATOR_HH
20
#define TRKTIMECALCULATOR_HH
21
22
class
TrkRecoTrk
;
23
#include "TrkBase/TrkHotSelector.h"
24
25
class
TrkTimeCalculator
{
26
public
:
27
// only one constructor
28
TrkTimeCalculator
(
const
TrkHotSelector
& selector) :
29
_selector(selector){};
30
virtual
~TrkTimeCalculator
(){};
31
// The Function
32
virtual
bool
trackTime
(
const
TrkRecoTrk
& trk,
33
double
&
time
,
double
& timeerr,
34
int
& nHotsUsed)
const
= 0;
35
bool
trackTime
(
const
TrkRecoTrk
& trk,
36
double
&
time
,
double
& timeerr)
const
37
{
int
dummy;
return
trackTime
(trk,
time
,timeerr,dummy);}
38
protected
:
39
bool
useHot
(
const
TrkHitOnTrk
& x)
const
{
return
_selector.
useHot
(
x
);}
40
private
:
41
const
TrkHotSelector
& _selector;
42
// disallow
43
TrkTimeCalculator
(
const
TrkTimeCalculator
&);
44
TrkTimeCalculator
& operator = (
const
TrkTimeCalculator
&);
45
};
46
#endif
x
Double_t x[10]
Definition:
DataBase/tau_mode.c:57
time
Double_t time
Definition:
DataBase/tau_mode.c:7
TrkHitOnTrk
Definition:
InstallArea/include/TrkBase/TrkBase/TrkHitOnTrk.h:52
TrkHotSelector
Definition:
InstallArea/include/TrkBase/TrkBase/TrkHotSelector.h:24
TrkHotSelector::useHot
virtual bool useHot(const TrkHitOnTrk &hot) const =0
TrkRecoTrk
Definition:
InstallArea/include/TrkBase/TrkBase/TrkRecoTrk.h:71
TrkTimeCalculator
Definition:
InstallArea/include/TrkBase/TrkBase/TrkTimeCalculator.h:25
TrkTimeCalculator::trackTime
virtual bool trackTime(const TrkRecoTrk &trk, double &time, double &timeerr, int &nHotsUsed) const =0
TrkTimeCalculator::useHot
bool useHot(const TrkHitOnTrk &x) const
Definition:
Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkTimeCalculator.h:39
TrkTimeCalculator::trackTime
bool trackTime(const TrkRecoTrk &trk, double &time, double &timeerr) const
Definition:
Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkTimeCalculator.h:35
TrkTimeCalculator::TrkTimeCalculator
TrkTimeCalculator(const TrkHotSelector &selector)
Definition:
Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkTimeCalculator.h:28
TrkTimeCalculator::~TrkTimeCalculator
virtual ~TrkTimeCalculator()
Definition:
Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkTimeCalculator.h:30
source
Reconstruction
MdcPatRec
TrkBase
TrkBase-00-01-12
TrkBase
TrkTimeCalculator.h
Generated by
1.9.6