Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
TwoarmVDCTimeCorrection.h
Go to the documentation of this file.
1#ifndef HallA_TwoarmVDCTimeCorrection_h_
2#define HallA_TwoarmVDCTimeCorrection_h_
3
5//
6// HallA::TwoarmVDCTimeCorrection
7//
8// Calculates a time correction for the VDC from the time difference
9// between two scintillators.
10// Runs after Decode.
11//
13
15#include "TString.h"
16#include "THaVar.h"
17
18class THaDetector;
19class THaCut;
20
21namespace HallA {
22
24public:
25 TwoarmVDCTimeCorrection( const char* name, const char* description,
26 const char* scint1, const char* scint2,
27 const char* cond="" );
29
30 virtual EStatus Init( const TDatime& run_time );
31 virtual Int_t Process( const THaEvData& );
32
33protected:
34 // Configuration
35 class DetDef {
36 public:
37 explicit DetDef( const char* name ) :
38 fName(name), fObj(nullptr),
39 fNthit(nullptr), fTpad(nullptr), fRT(nullptr), fLT(nullptr),
40 fNelem(0) {}
41 TString fName; // Detector name
42 THaDetector* fObj; // Pointer to detector object
43 THaVar *fNthit, *fTpad, *fRT, *fLT; // Required global variables
44 // from this detector
45 Int_t fNelem; // Number of configured elements (pads)
46 };
48
53
55 void MakeBlockName();
56 virtual Int_t ReadDatabase( const TDatime& date );
57
58 ClassDef(TwoarmVDCTimeCorrection, 0) //Two-arm VDC time correction
59};
60
61} // namespace HallA
62
63#endif
64
int Int_t
bool Bool_t
#define ClassDef(name, id)
char name[80]
virtual Int_t Process(const THaEvData &)
virtual Int_t ReadDatabase(const TDatime &date)