Belle II Software  release-05-01-25
TDCCountTranslatorBase.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Heck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef DRIFTTIMETRANSLATORBASE_H
12 #define DRIFTTIMETRANSLATORBASE_H
13 
14 #include <cdc/dataobjects/WireID.h>
15 
16 #include <TMath.h>
17 
18 namespace Belle2 {
23  namespace CDC {
28  class TDCCountTranslatorBase {
29  public:
32 
34  virtual ~TDCCountTranslatorBase() {}
35 
53  virtual double getDriftLength(unsigned short tdcCount = 0,
54  const WireID& wireID = WireID(),
55  double timeOfFlightEstimator = 0.,
56  bool ambiguityDiscrimiator = false,
57  double z = 0,
58  double alpha = 0,
59  double theta = static_cast<double>(TMath::Pi() / 2.),
60  unsigned short adcCount = 0) = 0;
61 
71  virtual double getDriftTime(unsigned short tdcCount,
72  const WireID& wireID,
73  double timeOfFlightEstimator,
74  double z,
75  unsigned short adcCount) = 0;
76 
77 
86  virtual double getDriftLengthResolution(double driftLength = 0.,
87  const WireID& wireID = WireID(),
88  bool ambiguityDiscrimiator = false,
89  double z = 0,
90  double alpha = 0,
91  double theta = static_cast<double>(TMath::Pi() / 2.)) = 0;
92  };
93  }
95 }
96 #endif /* DRIFTTIMETRANSLATORBASE_H_ */
Belle2::CDC::TDCCountTranslatorBase::~TDCCountTranslatorBase
virtual ~TDCCountTranslatorBase()
Destructor.
Definition: TDCCountTranslatorBase.h:42
Belle2::CDC::TDCCountTranslatorBase::getDriftLength
virtual double getDriftLength(unsigned short tdcCount=0, const WireID &wireID=WireID(), double timeOfFlightEstimator=0., bool ambiguityDiscrimiator=false, double z=0, double alpha=0, double theta=static_cast< double >(TMath::Pi()/2.), unsigned short adcCount=0)=0
Function for getting a drift length estimation.
Belle2::CDC::TDCCountTranslatorBase::TDCCountTranslatorBase
TDCCountTranslatorBase()
Constructor.
Definition: TDCCountTranslatorBase.h:39
Belle2::CDC::TDCCountTranslatorBase::getDriftLengthResolution
virtual double getDriftLengthResolution(double driftLength=0., const WireID &wireID=WireID(), bool ambiguityDiscrimiator=false, double z=0, double alpha=0, double theta=static_cast< double >(TMath::Pi()/2.))=0
Uncertainty corresponding to drift length from getDriftLength of this class.
Belle2::CDC::TDCCountTranslatorBase::getDriftTime
virtual double getDriftTime(unsigned short tdcCount, const WireID &wireID, double timeOfFlightEstimator, double z, unsigned short adcCount)=0
Get Drift time.
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19