CbmRoot
CbmL1SttHit.cxx
Go to the documentation of this file.
1
2
#include "
CbmL1SttHit.h
"
3
#include "
CbmKF.h
"
4
#include "
CbmKFTrackInterface.h
"
5
#include "CbmSttHit.h"
6
#include "TMath.h"
7
8
ClassImp
(
CbmL1SttHit
);
9
10
void
CbmL1SttHit::Create
(CbmSttHit*
h
,
int
ind) {
11
static
const
Double_t angle = 10. * TMath::DegToRad();
12
13
Double_t phi = 0.;
// rotation angle
14
Int_t plane =
h
->GetPlaneID();
15
Int_t irot = (plane - 1) % 6;
16
irot = irot / 2;
17
//if (irot == 1) phi = angle;
18
//else if (irot == 2) phi = -angle;
19
if
(irot == 1)
20
phi = -angle;
21
else
if
(irot == 2)
22
phi = angle;
23
FitPoint
.
Set
(
h
->GetZ(),
h
->GetU(), phi,
h
->GetDx() *
h
->GetDx());
24
MaterialIndex
= 0;
25
time
= 0.;
26
iStation
=
h
->GetPlaneID() - 1;
27
28
/*
29
FitPoint.x = h->GetX();
30
FitPoint.y = h->GetY();
31
FitPoint.z = h->GetZ();
32
FitPoint.V[0] = h->GetDx()*h->GetDx();
33
FitPoint.V[1] = 0;
34
FitPoint.V[2] = h->GetDy()*h->GetDy();
35
36
CbmKF *KF = CbmKF::Instance();
37
iStation = h->GetStationNr()-1;
38
MaterialIndex = KF->GetMaterialIndex(KF->MuchStation2MCIDMap[iStation]);
39
time = h->GetTime(0);
40
*/
41
busy
= 0;
42
index
= ind;
43
}
44
45
Int_t
CbmL1SttHit::Filter
(
CbmKFTrackInterface
& track,
46
Bool_t downstream,
47
Double_t& QP0) {
48
Bool_t err = 0;
49
err = err || track.
Propagate
(
FitPoint
.
z
, QP0);
50
err = err ||
FitPoint
.
Filter
(track);
51
return
err;
52
}
CbmKF.h
CbmL1SttHit::busy
bool busy
Definition:
CbmL1SttHit.h:26
ClassImp
ClassImp(CbmL1SttHit)
CbmL1SttHit::time
Double_t time
Definition:
CbmL1SttHit.h:25
CbmL1SttHit::iStation
int iStation
Definition:
CbmL1SttHit.h:24
CbmKFTrackInterface.h
CbmKFUMeasurement::Set
void Set(Double_t z, Double_t u, Double_t phi, Double_t sigma2)
CbmL1SttHit
Definition:
CbmL1SttHit.h:11
CbmKFHit::MaterialIndex
Int_t MaterialIndex
Definition:
CbmKFHit.h:22
CbmKFUMeasurement::Filter
Int_t Filter(CbmKFTrackInterface &track)
Definition:
CbmKFUMeasurement.cxx:22
h
Data class with information on a STS local track.
CbmL1SttHit::FitPoint
CbmKFUMeasurement FitPoint
Definition:
CbmL1SttHit.h:21
CbmL1SttHit::Filter
Int_t Filter(CbmKFTrackInterface &track, Bool_t downstream, Double_t &QP0)
Definition:
CbmL1SttHit.cxx:45
CbmKFUMeasurement::z
Double_t z
Definition:
CbmKFUMeasurement.h:30
CbmKFTrackInterface
Definition:
CbmKFTrackInterface.h:26
CbmL1SttHit::Create
void Create(CbmSttHit *h, int index)
Definition:
CbmL1SttHit.cxx:10
CbmKFTrackInterface::Propagate
Int_t Propagate(Double_t z_out, Double_t QP0)
Definition:
CbmKFTrackInterface.cxx:449
CbmL1SttHit::index
int index
Definition:
CbmL1SttHit.h:23
CbmL1SttHit.h
reco
L1
OffLineInterface
CbmL1SttHit.cxx
Generated on Wed Oct 28 2020 15:11:39 for CbmRoot by
1.8.18