2#ifndef __BMNTOF1POINT_H
3#define __BMNTOF1POINT_H 1
5#include "FairMCPoint.h"
35 virtual void Print(
const Option_t* opt)
const;
38 Int_t
GetStrip()
const {
return (fDetectorUID & 0x000000FF); };
39 Int_t
GetModule()
const {
return (fDetectorUID & 0x0000FF00) >> 8; };
40 Int_t
GetRegion()
const {
return (fDetectorUID & 0x00FF0000) >> 16; };
43 static Int_t
GetStrip(Int_t uid) {
return (uid & 0x000000FF); };
44 static Int_t
GetModule(Int_t uid) {
return (uid & 0x0000FF00) >> 8; };
45 static Int_t
GetRegion(Int_t uid) {
return (uid & 0x00FF0000) >> 16; };
49 Int_t uid = (regID << 16) | (modID << 8) | stripID;
51 Int_t
module = GetModule(uid);
53 assert(region == regID);
54 assert(module == modID);
55 assert(strip == stripID);
58 return (regID << 16) | (modID << 8) | stripID;
Int_t GetVolumeUID() const
static Int_t GetStrip(Int_t uid)
virtual void Print(const Option_t *opt) const
BmnTOF1Point(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t detUID)
static Int_t GetModule(Int_t uid)
static Int_t GetRegion(Int_t uid)
static Int_t GetVolumeUID(Int_t regID, Int_t modID, Int_t stripID)