BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
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
int mdcWrapWire(int wireIn, int nCell)
Definition: mdcWrapWire.h:6