BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnDchHit.h
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------------------------------
2
#ifndef __BMN_DCH_HIT_H
3
#define __BMN_DCH_HIT_H 1
4
5
#include "BmnHit.h"
6
#include "
TArrayI.h
"
7
//------------------------------------------------------------------------------------------------------------------------
8
class
BmnDchHit
:
public
BmnHit
9
{
10
11
public
:
12
BmnDchHit
();
13
BmnDchHit
(
Int_t
detectorID,
14
TVector3
pos,
15
TVector3
dpos,
16
Int_t
refIndex,
17
Int_t
flag,
18
Int_t
trackIndex,
19
UChar_t
dchlayer);
20
BmnDchHit
(
Int_t
detectorID,
TVector3
pos,
TVector3
dpos,
Int_t
refIndex,
Int_t
flag);
21
BmnDchHit
(
Int_t
detectorID,
TVector3
pos,
TVector3
dpos,
Int_t
refIndex);
22
23
virtual
~BmnDchHit
();
24
25
void
Print
(
const
Option_t
* opt = 0)
const
;
26
27
/** Accessors **/
28
Int_t
GetTrackID
()
const
{
return
fTrackID
; }
// get track ID
29
Int_t
GetFlag
()
const
{
return
fFlag
; }
// get flag
30
Int_t
GetNofDim
()
const
{
return
fNofDim
; }
// get number of measurements per point
31
// Int_t Overlap() const { return fIndex.GetSize()-1; } //
32
// Int_t GetIndex(Int_t indx = 0) const { return fIndex[indx]; } //
33
UChar_t
GetLayer
()
const
{
return
fDchLayer
; }
//
34
UShort_t
GetLayerNumber
()
const
{
return
fDchLayerNumber
; }
//
35
TString
GetLayerType
()
const
{
return
fDchLayerType
; }
36
Int_t
GetWireNumber
() {
return
fWireNumber
; }
37
Double_t
GetDistanceToWire
() {
return
fDistanceToWire
; }
38
Int_t
GetDetectorID
()
const
{
return
fDetectorID
; }
//
39
Double_t
GetPhi
()
const
{
return
fPhi
; }
// get rotation angle
40
Double_t
GetMeas
(
Int_t
indx = 0)
const
{
return
fMeas
[indx]; }
// get measurement
41
Double_t
GetError
(
Int_t
indx = 0)
const
{
return
fError
[indx]; }
// get measurement error
42
// const TArrayI* Index() const { return &fIndex; } ///< Get index array of the hit
43
UChar_t
GetDchId
()
const
{
return
fDchId
; }
44
UShort_t
GetDchIdNumber
()
const
{
return
fDchIdNumber
; }
45
Int_t
GetHitId
()
const
{
return
fID
; }
46
Int_t
GetEventID
()
const
{
return
fEventID
; }
47
48
Double_t
GetDrift
(
void
)
const
{
return
fDriftLength
; };
49
void
SetDrift
(
Double_t
v
) {
fDriftLength
=
v
; };
50
Double_t
GetWirePosition
(
void
)
const
{
return
fWirePos
; };
51
void
SetWirePosition
(
Double_t
v
) {
fWirePos
=
v
; };
52
Double_t
GetWireDelay
(
void
)
const
{
return
fWireDelayLength
; };
53
void
SetWireDelay
(
Double_t
v
) {
fWireDelayLength
=
v
; };
54
Double_t
GetTShift
(
void
)
const
{
return
fTS
; };
55
void
SetTShift
(
Double_t
v
) {
fTS
=
v
; };
56
Double_t
GetDriftTime
(
void
)
const
{
return
fTS
; };
57
void
SetDriftTime
(
Double_t
v
) {
fTS
=
v
; };
58
59
/** Modifiers **/
60
// void SetTrackId(Int_t trackID) { fTrackID = trackID; }
61
void
SetFlag
(
Int_t
flag) {
fFlag
= flag; }
62
void
SetDchId
(
UChar_t
id
) {
fDchId
= id; }
63
void
SetDchIdNumber
(
UShort_t
id
) {
fDchIdNumber
= id; }
64
void
SetDchLayerNumber
(
UShort_t
id
) {
fDchLayerNumber
= id; }
65
void
SetDchLayerType
(
TString
layer_type) {
fDchLayerType
= layer_type; }
66
void
SetWireNumber
(
Int_t
wire_num) {
fWireNumber
= wire_num; }
67
void
SetDistanceToWire
(
Double_t
dist
) {
fDistanceToWire
=
dist
; }
68
void
SetNofDim
(
Int_t
dim
) {
fNofDim
=
dim
; }
// set number of measurements per point
69
void
SetPhi
(
Double_t
phi) {
fPhi
= phi; }
// set rotation angle
70
void
SetMeas
(
Double_t
meas,
Int_t
indx = 0) {
fMeas
[indx] = meas; }
// set measurement
71
void
SetError
(
Double_t
err,
Int_t
indx = 0) {
fError
[indx] = err; }
// set measurement
72
void
SetIndex
(
Int_t
indx);
///< Add index of detector hit
73
void
SetHitId
(
Int_t
idx) {
fID
= idx; }
74
void
SetEventID
(
Int_t
iev) {
fEventID
= iev; }
75
76
Bool_t
IsSortable
()
const
{
return
kTRUE
; }
77
Int_t
Compare
(
const
TObject
* hit)
const
;
///< sort in ascending order in abs(Z)
78
79
Bool_t
IsUsed
()
const
{
return
fUsing
; }
80
81
void
SetUsing
(
Bool_t
use) {
fUsing
= use; }
82
83
protected
:
84
Int_t
fEventID
;
// identifier of event
85
Int_t
fID
;
// identifier of hit in hits array
86
Int_t
fDetectorID
;
// Detector ID
87
UChar_t
fDchLayer
;
// Dch layer ID (0-7)
88
UShort_t
fDchLayerNumber
;
// Dch layer ID (0-7)
89
TString
fDchLayerType
;
// DCH layer type (x, y, v, u)
90
Int_t
fWireNumber
;
// Nearest wire to a MC-track
91
Double_t
fDistanceToWire
;
// Distance from a MC-point to the nearest wire
92
Int_t
fTrackID
;
// track ID
93
Int_t
fFlag
;
// Flag for general purposes [TDC, event tagging...]
94
Int_t
fNofDim
;
// number of measurements per point
95
Double32_t
fPhi
;
// track angle
96
Double32_t
fMeas
[2];
// measurements (coordinates)
97
Double32_t
fError
[2];
// measurement errors
98
// TArrayI fIndex; //! // array of indices of overlapped MC points
99
UChar_t
fDchId
;
// DCH Id (1, 2)
100
UShort_t
fDchIdNumber
;
// DCH Id (1, 2)
101
102
Double32_t
fDriftLength
,
fWirePos
,
fWireDelayLength
,
fTS
;
103
104
Bool_t
fUsing
;
105
106
ClassDef
(
BmnDchHit
, 1)
107
};
108
//------------------------------------------------------------------------------------------------------------------------
109
#endif
dist
vector< Double_t > dist(vector< Double_t > qp, Double_t mu)
Definition
BmnMath.cxx:869
v
__m128 v
Definition
P4_F32vec4.h:1
Bool_t
bool Bool_t
UShort_t
unsigned short UShort_t
Int_t
int Int_t
Double32_t
double Double32_t
UChar_t
unsigned char UChar_t
Double_t
double Double_t
kTRUE
constexpr Bool_t kTRUE
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TArrayI.h
BmnDchHit::fWireNumber
Int_t fWireNumber
Definition
BmnDchHit.h:90
BmnDchHit::GetTShift
Double_t GetTShift(void) const
Definition
BmnDchHit.h:54
BmnDchHit::SetDistanceToWire
void SetDistanceToWire(Double_t dist)
Definition
BmnDchHit.h:67
BmnDchHit::SetHitId
void SetHitId(Int_t idx)
Definition
BmnDchHit.h:73
BmnDchHit::SetWirePosition
void SetWirePosition(Double_t v)
Definition
BmnDchHit.h:51
BmnDchHit::SetIndex
void SetIndex(Int_t indx)
Add index of detector hit.
BmnDchHit::SetPhi
void SetPhi(Double_t phi)
Definition
BmnDchHit.h:69
BmnDchHit::GetLayerType
TString GetLayerType() const
Definition
BmnDchHit.h:35
BmnDchHit::GetDistanceToWire
Double_t GetDistanceToWire()
Definition
BmnDchHit.h:37
BmnDchHit::SetDchIdNumber
void SetDchIdNumber(UShort_t id)
Definition
BmnDchHit.h:63
BmnDchHit::GetDrift
Double_t GetDrift(void) const
Definition
BmnDchHit.h:48
BmnDchHit::GetDriftTime
Double_t GetDriftTime(void) const
Definition
BmnDchHit.h:56
BmnDchHit::fError
Double32_t fError[2]
Definition
BmnDchHit.h:97
BmnDchHit::fDchId
UChar_t fDchId
Definition
BmnDchHit.h:99
BmnDchHit::SetDchLayerNumber
void SetDchLayerNumber(UShort_t id)
Definition
BmnDchHit.h:64
BmnDchHit::fTrackID
Int_t fTrackID
Definition
BmnDchHit.h:92
BmnDchHit::fWirePos
Double32_t fWirePos
Definition
BmnDchHit.h:102
BmnDchHit::Print
void Print(const Option_t *opt=0) const
Definition
BmnDchHit.cxx:75
BmnDchHit::SetDchLayerType
void SetDchLayerType(TString layer_type)
Definition
BmnDchHit.h:65
BmnDchHit::fUsing
Bool_t fUsing
Definition
BmnDchHit.h:104
BmnDchHit::~BmnDchHit
virtual ~BmnDchHit()
Definition
BmnDchHit.cxx:73
BmnDchHit::SetDrift
void SetDrift(Double_t v)
Definition
BmnDchHit.h:49
BmnDchHit::SetFlag
void SetFlag(Int_t flag)
Modifiers.
Definition
BmnDchHit.h:61
BmnDchHit::BmnDchHit
BmnDchHit()
Definition
BmnDchHit.cxx:6
BmnDchHit::fDetectorID
Int_t fDetectorID
Definition
BmnDchHit.h:86
BmnDchHit::GetPhi
Double_t GetPhi() const
Definition
BmnDchHit.h:39
BmnDchHit::SetUsing
void SetUsing(Bool_t use)
Definition
BmnDchHit.h:81
BmnDchHit::fDchIdNumber
UShort_t fDchIdNumber
Definition
BmnDchHit.h:100
BmnDchHit::fID
Int_t fID
Definition
BmnDchHit.h:85
BmnDchHit::GetLayerNumber
UShort_t GetLayerNumber() const
Definition
BmnDchHit.h:34
BmnDchHit::IsUsed
Bool_t IsUsed() const
Definition
BmnDchHit.h:79
BmnDchHit::GetDetectorID
Int_t GetDetectorID() const
Definition
BmnDchHit.h:38
BmnDchHit::GetDchIdNumber
UShort_t GetDchIdNumber() const
Definition
BmnDchHit.h:44
BmnDchHit::fTS
Double32_t fTS
Definition
BmnDchHit.h:102
BmnDchHit::GetError
Double_t GetError(Int_t indx=0) const
Definition
BmnDchHit.h:41
BmnDchHit::GetWirePosition
Double_t GetWirePosition(void) const
Definition
BmnDchHit.h:50
BmnDchHit::SetDchId
void SetDchId(UChar_t id)
Definition
BmnDchHit.h:62
BmnDchHit::GetTrackID
Int_t GetTrackID() const
Accessors.
Definition
BmnDchHit.h:28
BmnDchHit::SetWireNumber
void SetWireNumber(Int_t wire_num)
Definition
BmnDchHit.h:66
BmnDchHit::SetEventID
void SetEventID(Int_t iev)
Definition
BmnDchHit.h:74
BmnDchHit::SetMeas
void SetMeas(Double_t meas, Int_t indx=0)
Definition
BmnDchHit.h:70
BmnDchHit::fFlag
Int_t fFlag
Definition
BmnDchHit.h:93
BmnDchHit::GetMeas
Double_t GetMeas(Int_t indx=0) const
Definition
BmnDchHit.h:40
BmnDchHit::GetWireDelay
Double_t GetWireDelay(void) const
Definition
BmnDchHit.h:52
BmnDchHit::fDistanceToWire
Double_t fDistanceToWire
Definition
BmnDchHit.h:91
BmnDchHit::fNofDim
Int_t fNofDim
Definition
BmnDchHit.h:94
BmnDchHit::SetTShift
void SetTShift(Double_t v)
Definition
BmnDchHit.h:55
BmnDchHit::GetNofDim
Int_t GetNofDim() const
Definition
BmnDchHit.h:30
BmnDchHit::SetNofDim
void SetNofDim(Int_t dim)
Definition
BmnDchHit.h:68
BmnDchHit::GetEventID
Int_t GetEventID() const
Definition
BmnDchHit.h:46
BmnDchHit::Compare
Int_t Compare(const TObject *hit) const
sort in ascending order in abs(Z)
Definition
BmnDchHit.cxx:93
BmnDchHit::SetDriftTime
void SetDriftTime(Double_t v)
Definition
BmnDchHit.h:57
BmnDchHit::fWireDelayLength
Double32_t fWireDelayLength
Definition
BmnDchHit.h:102
BmnDchHit::fDriftLength
Double32_t fDriftLength
Definition
BmnDchHit.h:102
BmnDchHit::SetError
void SetError(Double_t err, Int_t indx=0)
Definition
BmnDchHit.h:71
BmnDchHit::GetLayer
UChar_t GetLayer() const
Definition
BmnDchHit.h:33
BmnDchHit::fPhi
Double32_t fPhi
Definition
BmnDchHit.h:95
BmnDchHit::fEventID
Int_t fEventID
Definition
BmnDchHit.h:84
BmnDchHit::fDchLayerNumber
UShort_t fDchLayerNumber
Definition
BmnDchHit.h:88
BmnDchHit::fMeas
Double32_t fMeas[2]
Definition
BmnDchHit.h:96
BmnDchHit::GetFlag
Int_t GetFlag() const
Definition
BmnDchHit.h:29
BmnDchHit::fDchLayer
UChar_t fDchLayer
Definition
BmnDchHit.h:87
BmnDchHit::GetDchId
UChar_t GetDchId() const
Definition
BmnDchHit.h:43
BmnDchHit::IsSortable
Bool_t IsSortable() const
Definition
BmnDchHit.h:76
BmnDchHit::fDchLayerType
TString fDchLayerType
Definition
BmnDchHit.h:89
BmnDchHit::SetWireDelay
void SetWireDelay(Double_t v)
Definition
BmnDchHit.h:53
BmnDchHit::GetHitId
Int_t GetHitId() const
Definition
BmnDchHit.h:45
BmnDchHit::GetWireNumber
Int_t GetWireNumber()
Definition
BmnDchHit.h:36
BmnHit::BmnHit
BmnHit()
Default constructor.
Definition
BmnHit.cxx:12
TObject
TString
TVector3
dim
const UInt_t dim
Definition
MpdVHLLEGenerator.h:22
detectors
dch
BmnDchHit.h
Generated on
for BmnRoot by
1.17.0