BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMeasureModel.h
Go to the documentation of this file.
1/*
2 BM@N alignment routine
3 BM@N experiment at NICA complex, JINR, 2025
4
5 Department: Math & Soft Group of HEP lab
6 Author: Igor Polev, polev@jinr.int
7
8 BmnMeasureModel abstract base class
9 Interface of a linearized measurement model
10*/
11
12#ifndef BMNMEASUREMODEL_H
13#define BMNMEASUREMODEL_H
14
15#include "BmnAlignDefines.h"
16#include "FairHit.h"
17
18/*
19 * Alignment parameters per detector:
20 * a = (dx, dy, dz, phi, theta, psi)^T -> SVectGL (size 6)
21 *
22 * Straight-track local parameters per track:
23 * alpha = (alpha_x, beta_x, alpha_y, beta_y)^T -> SVectLC (size 4)
24 *
25 * The derivatives of the measured position with respect to the local track
26 * parameters do not depend on the alignment model, so they are shared here.
27 *
28 * IMPORTANT: Alignment parameters are allways full 6D vectors. To use models
29 * with less DoFs one must add constraints to fix excluded coordinates.
30 */
31
33{
34 public:
35 virtual ~BmnMeasureModel() = default;
36
37 virtual const char* Description() const noexcept = 0;
38
39 virtual Double_t X(Double_t z0, const SVectGL& gl, const SVectLC& lc) const noexcept = 0;
40 virtual Double_t Y(Double_t z0, const SVectGL& gl, const SVectLC& lc) const noexcept = 0;
41 virtual SVectGL dXdA(Double_t z0, const SVectLC& lc) const noexcept = 0;
42 virtual SVectGL dYdA(Double_t z0, const SVectLC& lc) const noexcept = 0;
43
44 virtual Bool_t AlignHit(FairHit& hit, const SVectGL& a) const noexcept = 0;
45 virtual void AlignHitApproximately(SVect3& hit, const SVectGL& a) const noexcept = 0;
46
47 // model-independent: track model is linear in the local parameters
48 inline SVectLC dXdAlpha(Double_t z0) const noexcept { return SVectLC(1.0, z0, 0.0, 0.0); }
49 inline SVectLC dYdAlpha(Double_t z0) const noexcept { return SVectLC(0.0, 0.0, 1.0, z0); }
50};
51
52#endif // BMNMEASUREMODEL_H
RM::SVector< Double_t, 3 > SVect3
RM::SVector< Double_t, BMN_LOCAL_PARAMS_PT > SVectLC
RM::SVector< Double_t, BMN_GLOBAL_PARAMS_PD > SVectGL
bool Bool_t
double Double_t
virtual const char * Description() const noexcept=0
SVectLC dXdAlpha(Double_t z0) const noexcept
virtual Double_t Y(Double_t z0, const SVectGL &gl, const SVectLC &lc) const noexcept=0
virtual Bool_t AlignHit(FairHit &hit, const SVectGL &a) const noexcept=0
SVectLC dYdAlpha(Double_t z0) const noexcept
virtual void AlignHitApproximately(SVect3 &hit, const SVectGL &a) const noexcept=0
virtual Double_t X(Double_t z0, const SVectGL &gl, const SVectLC &lc) const noexcept=0
virtual SVectGL dXdA(Double_t z0, const SVectLC &lc) const noexcept=0
virtual SVectGL dYdA(Double_t z0, const SVectLC &lc) const noexcept=0
virtual ~BmnMeasureModel()=default