Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaVDCTimeToDistConv.h
Go to the documentation of this file.
1#ifndef Podd_VDC_TimeToDistConv_h_
2#define Podd_VDC_TimeToDistConv_h_
3
5// //
6// THaVDCTimeToDistConv //
7// //
8// Base class for algorithms for converting TDC time into perpendicular //
9// drift distance //
10// //
12
13#include "DataType.h"
14#include <vector>
15
16namespace VDC {
17
19
20 public:
21 virtual ~TimeToDistConv() = default;
22
24 Double_t* ddist = 0 ) const = 0;
26 virtual Double_t GetParameter( UInt_t ) const { return kBig; }
28 virtual Int_t SetParameters( const std::vector<double>& );
29
30protected:
31 explicit TimeToDistConv( UInt_t npar = 0 );
32
33 UInt_t fNparam; // Number of parameters
34 Double_t fDriftVel; // Drift velocity (m/s)
35 Bool_t fIsSet; // Flag to indicate that all parameters are set
36
37 ClassDef(TimeToDistConv,0) // VDC time-to-distance converter
38 };
39}
40
42
43#endif
int Int_t
unsigned int UInt_t
const Data_t kBig
Definition DataType.h:15
uint32_t time
bool Bool_t
double Double_t
#define ClassDef(name, id)
virtual ~TimeToDistConv()=default
virtual Double_t GetParameter(UInt_t) const
virtual Int_t SetParameters(const std::vector< double > &)
void SetDriftVel(Double_t v)
virtual Double_t ConvertTimeToDist(Double_t time, Double_t tanTheta, Double_t *ddist=0) const =0
TimeToDistConv(UInt_t npar=0)