BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-48/MdcTrkRecon/mdcWrapWire.h
Go to the documentation of this file.
1// mdcWrapWire.h -- utility routine to handle wrap-around wire numbers
2
3#ifndef MDCWRAPWIRE_H
4#define MDCWRAPWIRE_H
5
6inline int mdcWrapWire(int wireIn, int nCell) {
7
8 int mdcWrapWire = wireIn % nCell;
9 if (mdcWrapWire < 0) mdcWrapWire += nCell;
10 return mdcWrapWire;
11}
12
13#endif
14
15
16
17
18
19
20