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
14
#include "
TimeCorrectionModule.h
"
15
#include "
TString.h
"
16
#include "
THaVar.h
"
17
18
class
THaDetector
;
19
class
THaCut
;
20
21
namespace
HallA
{
22
23
class
TwoarmVDCTimeCorrection
:
public
Podd::TimeCorrectionModule
{
24
public
:
25
TwoarmVDCTimeCorrection
(
const
char
*
name
,
const
char
* description,
26
const
char
* scint1,
const
char
* scint2,
27
const
char
* cond=
""
);
28
virtual
~TwoarmVDCTimeCorrection
();
29
30
virtual
EStatus
Init
(
const
TDatime
& run_time );
31
virtual
Int_t
Process
(
const
THaEvData
& );
32
33
protected
:
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
};
47
DetDef
fDet
[2];
48
49
TString
fTestBlockName
;
50
TString
fCondExpr
;
51
THaCut
*
fCond
;
52
Bool_t
fDidInitDefs
;
53
54
Int_t
InitDefs
();
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_t
int Int_t
Bool_t
bool Bool_t
ClassDef
#define ClassDef(name, id)
name
char name[80]
THaVar.h
TString.h
TimeCorrectionModule.h
HallA::TwoarmVDCTimeCorrection::DetDef
Definition
TwoarmVDCTimeCorrection.h:35
HallA::TwoarmVDCTimeCorrection::DetDef::fLT
THaVar * fLT
Definition
TwoarmVDCTimeCorrection.h:43
HallA::TwoarmVDCTimeCorrection::DetDef::fRT
THaVar * fRT
Definition
TwoarmVDCTimeCorrection.h:43
HallA::TwoarmVDCTimeCorrection::DetDef::fObj
THaDetector * fObj
Definition
TwoarmVDCTimeCorrection.h:42
HallA::TwoarmVDCTimeCorrection::DetDef::fNthit
THaVar * fNthit
Definition
TwoarmVDCTimeCorrection.h:43
HallA::TwoarmVDCTimeCorrection::DetDef::fName
TString fName
Definition
TwoarmVDCTimeCorrection.h:41
HallA::TwoarmVDCTimeCorrection::DetDef::fNelem
Int_t fNelem
Definition
TwoarmVDCTimeCorrection.h:45
HallA::TwoarmVDCTimeCorrection::DetDef::DetDef
DetDef(const char *name)
Definition
TwoarmVDCTimeCorrection.h:37
HallA::TwoarmVDCTimeCorrection::DetDef::fTpad
THaVar * fTpad
Definition
TwoarmVDCTimeCorrection.h:43
HallA::TwoarmVDCTimeCorrection
Definition
TwoarmVDCTimeCorrection.h:23
HallA::TwoarmVDCTimeCorrection::Process
virtual Int_t Process(const THaEvData &)
Definition
TwoarmVDCTimeCorrection.cxx:110
HallA::TwoarmVDCTimeCorrection::~TwoarmVDCTimeCorrection
virtual ~TwoarmVDCTimeCorrection()
Definition
TwoarmVDCTimeCorrection.cxx:39
HallA::TwoarmVDCTimeCorrection::InitDefs
Int_t InitDefs()
Definition
TwoarmVDCTimeCorrection.cxx:186
HallA::TwoarmVDCTimeCorrection::fDet
DetDef fDet[2]
Definition
TwoarmVDCTimeCorrection.h:47
HallA::TwoarmVDCTimeCorrection::ReadDatabase
virtual Int_t ReadDatabase(const TDatime &date)
Definition
TwoarmVDCTimeCorrection.cxx:154
HallA::TwoarmVDCTimeCorrection::fDidInitDefs
Bool_t fDidInitDefs
Definition
TwoarmVDCTimeCorrection.h:52
HallA::TwoarmVDCTimeCorrection::fCondExpr
TString fCondExpr
Definition
TwoarmVDCTimeCorrection.h:50
HallA::TwoarmVDCTimeCorrection::fTestBlockName
TString fTestBlockName
Definition
TwoarmVDCTimeCorrection.h:49
HallA::TwoarmVDCTimeCorrection::fCond
THaCut * fCond
Definition
TwoarmVDCTimeCorrection.h:51
HallA::TwoarmVDCTimeCorrection::MakeBlockName
void MakeBlockName()
Definition
TwoarmVDCTimeCorrection.cxx:211
Podd::TimeCorrectionModule
Definition
TimeCorrectionModule.h:20
TDatime
THaAnalysisObject::Init
EStatus Init()
Definition
THaAnalysisObject.cxx:397
THaAnalysisObject::EStatus
EStatus
Definition
THaAnalysisObject.h:34
THaCut
Definition
THaCut.h:12
THaDetector
Definition
THaDetector.h:20
THaEvData
Definition
THaEvData.h:27
THaVar
Definition
THaVar.h:20
HallA
Definition
FadcBPM.cxx:14
TString
HallA
TwoarmVDCTimeCorrection.h
Generated by
1.9.8