Belle II Software development
TDCCountTranslatorBase.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <cdc/dataobjects/WireID.h>
12
13#include <TMath.h>
14
15namespace Belle2 {
20 namespace CDC {
26 public:
29
32
50 virtual double getDriftLength(unsigned short tdcCount = 0,
51 const WireID& wireID = WireID(),
52 double timeOfFlightEstimator = 0.,
53 bool ambiguityDiscriminator = false,
54 double z = 0,
55 double alpha = 0,
56 double theta = static_cast<double>(TMath::Pi() / 2.),
57 unsigned short adcCount = 0) = 0;
58
68 virtual double getDriftTime(unsigned short tdcCount,
69 const WireID& wireID,
70 double timeOfFlightEstimator,
71 double z,
72 unsigned short adcCount) = 0;
73
74
84 virtual double getDriftLengthResolution(double driftLength = 0.,
85 const WireID& wireID = WireID(),
86 bool ambiguityDiscriminator = false,
87 double z = 0,
88 double alpha = 0,
89 double theta = static_cast<double>(TMath::Pi() / 2.)) = 0;
90 };
91 }
93}
Base class for translation of Drift Time into Drift Length.
virtual double getDriftLength(unsigned short tdcCount=0, const WireID &wireID=WireID(), double timeOfFlightEstimator=0., bool ambiguityDiscriminator=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.
virtual double getDriftLengthResolution(double driftLength=0., const WireID &wireID=WireID(), bool ambiguityDiscriminator=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.
virtual double getDriftTime(unsigned short tdcCount, const WireID &wireID, double timeOfFlightEstimator, double z, unsigned short adcCount)=0
Get Drift time.
Class to identify a wire inside the CDC.
Definition: WireID.h:34
Abstract base class for different kinds of events.