BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmL1SttHit.cxx
Go to the documentation of this file.
1
2#include "CbmL1SttHit.h"
3
4#include "CbmKF.h"
5#include "CbmKFTrackInterface.h"
6#include "CbmSttHit.h"
7#include "TMath.h"
8
9void CbmL1SttHit::Create(CbmSttHit* h, int ind)
10{
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
46{
47 Bool_t err = 0;
48 err = err || track.Propagate(FitPoint.z, QP0);
49 err = err || FitPoint.Filter(track);
50 return err;
51}
bool Bool_t
int Int_t
double Double_t
Int_t MaterialIndex
Definition CbmKFHit.h:24
Int_t Propagate(Double_t z_out, Double_t QP0, Bool_t line=false)
Double_t time
Definition CbmL1SttHit.h:30
CbmKFUMeasurement FitPoint
Definition CbmL1SttHit.h:26
void Create(CbmSttHit *h, int index)
Int_t Filter(CbmKFTrackInterface &track, Bool_t downstream, Double_t &QP0)
constexpr Double_t DegToRad()