#include <cassert>
#include "TClonesArray.h"
#include "FairRootManager.h"
#include "FairRunOnline.h"
#include "FairLogger.h"
#include "RPCUnpack.h"
#include "MuonTaggerHit.h"
#include "ShipOnlineDataFormat.h"
Go to the source code of this file.
|
int | GetId (int ncrate, int nboard, int channel) |
|
◆ Direction
◆ GetId()
int GetId |
( |
int |
ncrate, |
|
|
int |
nboard, |
|
|
int |
channel |
|
) |
| |
Definition at line 25 of file RPCUnpack.cxx.
26{
27 assert(ncrate == 16 || ncrate == 18);
28 assert(nboard > 0 && nboard < 16);
29 int station;
30 int nboardofstation;
31 switch (ncrate) {
32 case 16:
33 station = (nboard < 6) ? 1 : 2;
34 nboardofstation = nboard - (station - 1) * 5;
35 break;
36 case 18:
37 station = (nboard < 6) ? 3 : (nboard < 11) ? 4 : 5;
38 nboardofstation = nboard - (station - 3) * 5;
39 break;
40 }
47 LOG(DEBUG) << ncrate <<
'\t' << nboard <<
'\t' <<
channel <<
'\t' << station <<
'\t' << strip <<
'\t'
49 return 10000 * station + 1000 *
direction + strip;
50}
direction(event)
Event direction cut.