BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
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
22class TrkRecoTrk;
24
26public:
27// only one constructor
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);}
38protected:
39 bool useHot(const TrkHitOnTrk& x) const { return _selector.useHot(x);}
40private:
41 const TrkHotSelector& _selector;
42// disallow
44 TrkTimeCalculator& operator = (const TrkTimeCalculator&);
45};
46#endif
Double_t x[10]
Double_t time
virtual bool useHot(const TrkHitOnTrk &hot) const =0
virtual bool trackTime(const TrkRecoTrk &trk, double &time, double &timeerr, int &nHotsUsed) const =0
bool useHot(const TrkHitOnTrk &x) const
bool trackTime(const TrkRecoTrk &trk, double &time, double &timeerr) const
TrkTimeCalculator(const TrkHotSelector &selector)