BmnRoot
Loading...
Searching...
No Matches
BmnSimpleDetModel.cxx
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 BmnSimpleDetModel class implementation
9*/
10
11#include "BmnSimpleDetModel.h"
12
14{
15 return 1;
16}
17
18Int_t BmnSimpleDetModel::Alignables() const noexcept
19{
20 return fModuleCnt;
21};
22
24{
25 fIdx = -1; // must set iterator BEFORE first element
26 // according to base class definition
27}
28
30{
31 fIdx++;
32 if (0 < fIdx || fIdx >= fModuleCnt)
33 return fIdx = -2; // -1 is reserved for reset status
34 return fIdx;
35}
36
37// Dumb converter - not intended to be used
38Int_t BmnSimpleDetModel::IDfromHit(Int_t HitDetectorID) const noexcept
39{
40 return HitDetectorID;
41}
virtual Int_t MaxModulesInStation() const noexcept override
virtual void Reset() noexcept override
virtual Int_t Alignables() const noexcept override
virtual Int_t NextID() noexcept override
virtual Int_t IDfromHit(Int_t HitDetectorID) const noexcept override