BmnRoot
26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
Toggle main menu visibility
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.ru
7
8
BmnATestDetector class declaration
9
Set of detectors for alignment algorithm test
10
*/
11
12
#ifndef BMNATESTDETECTOR_H
13
#define BMNATESTDETECTOR_H
14
15
#include "
BmnATestDetectorPlane.h
"
16
#include "
BmnAlignDefines.h
"
17
#include "
BmnSimpleDetModel.h
"
18
19
class
BmnATestDetector
:
public
BmnSimpleDetModel
20
{
21
public
:
22
typedef
std::vector<BmnATestDetectorPlane>
DetectorSet
;
23
24
BmnATestDetector
(
Double_t
detectorStep,
const
char
* dumpPath =
nullptr
);
25
inline
BmnATestDetector
(
const
char
* jsonPath)
26
:
BmnSimpleDetModel
(
BMN_TEST_MODULE_COUNT
)
27
{
28
Load
(jsonPath);
29
}
30
31
const
BmnATestDetectorPlane
*
GetDetectors
()
const
{
return
fDetectors
; }
32
const
SVectGL
*
GetTestA
()
const
{
return
fMisalignments
; };
33
Double_t
GetMinZ
()
const
{
return
fNominalZ
[0]; }
34
Double_t
GetMaxZ
()
const
{
return
fNominalZ
[
BMN_TEST_MODULE_COUNT
- 1]; }
35
36
Bool_t
Save
(
const
char
* path)
const
;
37
Bool_t
Load
(
const
char
* path);
38
39
private
:
40
void
RebuildDetectors
();
41
42
Double_t
fNominalZ
[
BMN_TEST_MODULE_COUNT
];
// per-detector nominal Z positions
43
SVectGL
fMisalignments
[
BMN_TEST_MODULE_COUNT
];
// per-detector alignment shifts
44
BmnATestDetectorPlane
fDetectors
[
BMN_TEST_MODULE_COUNT
];
45
};
46
47
#endif
// BMNATESTDETECTOR_H
BmnATestDetectorPlane.h
BmnAlignDefines.h
BMN_TEST_MODULE_COUNT
#define BMN_TEST_MODULE_COUNT
Definition
BmnAlignDefines.h:55
SVectGL
ROOT::Math::SVector< Double_t, BMN_GLOBAL_PARAMS_PD > SVectGL
Definition
BmnAlignDefines.h:73
BmnSimpleDetModel.h
Bool_t
bool Bool_t
Double_t
double Double_t
BmnATestDetectorPlane
Definition
BmnATestDetectorPlane.h:27
BmnATestDetector::fMisalignments
SVectGL fMisalignments[BMN_TEST_MODULE_COUNT]
Definition
BmnATestDetector.h:43
BmnATestDetector::fDetectors
BmnATestDetectorPlane fDetectors[BMN_TEST_MODULE_COUNT]
Definition
BmnATestDetector.h:44
BmnATestDetector::DetectorSet
std::vector< BmnATestDetectorPlane > DetectorSet
Definition
BmnATestDetector.h:22
BmnATestDetector::BmnATestDetector
BmnATestDetector(Double_t detectorStep, const char *dumpPath=nullptr)
Definition
BmnATestDetector.cxx:18
BmnATestDetector::BmnATestDetector
BmnATestDetector(const char *jsonPath)
Definition
BmnATestDetector.h:25
BmnATestDetector::Save
Bool_t Save(const char *path) const
Definition
BmnATestDetector.cxx:40
BmnATestDetector::GetMaxZ
Double_t GetMaxZ() const
Definition
BmnATestDetector.h:34
BmnATestDetector::RebuildDetectors
void RebuildDetectors()
Definition
BmnATestDetector.cxx:90
BmnATestDetector::GetTestA
const SVectGL * GetTestA() const
Definition
BmnATestDetector.h:32
BmnATestDetector::GetDetectors
const BmnATestDetectorPlane * GetDetectors() const
Definition
BmnATestDetector.h:31
BmnATestDetector::GetMinZ
Double_t GetMinZ() const
Definition
BmnATestDetector.h:33
BmnATestDetector::Load
Bool_t Load(const char *path)
Definition
BmnATestDetector.cxx:60
BmnATestDetector::fNominalZ
Double_t fNominalZ[BMN_TEST_MODULE_COUNT]
Definition
BmnATestDetector.h:42
BmnSimpleDetModel::BmnSimpleDetModel
BmnSimpleDetModel()=delete
align_new
src
BmnATestDetector.h
Generated on
for BmnRoot by
1.17.0