BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnATestDetector.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 BmnATestDetector class declaration
9 Set of detectors for alignment algorithm test
10*/
11
12/*
13 === DEPRECATION NOTICE =========================================
14 Due to complex changes in BmnAligner, this class requires rework
15 ================================================================
16*/
17
18#ifndef BMNATESTDETECTOR_H
19#define BMNATESTDETECTOR_H
20
22#include "BmnAlignDefines.h"
23#include "BmnSimpleDM.h"
24
26{
27 public:
28 typedef std::vector<BmnATestDetectorPlane> DetectorSet;
29
30 BmnATestDetector(Double_t detectorStep, const char* dumpPath = nullptr);
31 inline BmnATestDetector(const char* jsonPath)
32 : BmnSimpleDM(BMN_TEST_MODULE_COUNT)
33 {
34 Load(jsonPath);
35 }
36
38 const SVectGL* GetTestA() const { return fMisalignments; };
39 Double_t GetMinZ() const { return fNominalZ[0]; }
40 Double_t GetMaxZ() const { return fNominalZ[BMN_TEST_MODULE_COUNT - 1]; }
41
42 Bool_t Save(const char* path) const;
43 Bool_t Load(const char* path);
44
45 private:
46 void RebuildDetectors();
47
48 Double_t fNominalZ[BMN_TEST_MODULE_COUNT]; // per-detector nominal Z positions
49 SVectGL fMisalignments[BMN_TEST_MODULE_COUNT]; // per-detector alignment shifts
50 BmnATestDetectorPlane fDetectors[BMN_TEST_MODULE_COUNT];
51};
52
53#endif // BMNATESTDETECTOR_H
RM::SVector< Double_t, BMN_GLOBAL_PARAMS_PD > SVectGL
bool Bool_t
double Double_t
SVectGL fMisalignments[BMN_TEST_MODULE_COUNT]
BmnATestDetectorPlane fDetectors[BMN_TEST_MODULE_COUNT]
std::vector< BmnATestDetectorPlane > DetectorSet
BmnATestDetector(Double_t detectorStep, const char *dumpPath=nullptr)
BmnATestDetector(const char *jsonPath)
Bool_t Save(const char *path) const
Double_t GetMaxZ() const
const SVectGL * GetTestA() const
const BmnATestDetectorPlane * GetDetectors() const
Double_t GetMinZ() const
Bool_t Load(const char *path)
Double_t fNominalZ[BMN_TEST_MODULE_COUNT]
BmnSimpleDM()=delete