PlexPlaneId.h File Reference

#include <iosfwd>
#include "Conventions/Detector.h"
#include "Conventions/PlaneView.h"
#include "Conventions/PlaneCoverage.h"

Go to the source code of this file.

Classes

class  PlexPlaneId

Functions

std::ostream & operator<< (std::ostream &os, const PlexPlaneId &p)
Bool_t operator< (const PlexPlaneId &lhs, const PlexPlaneId &rhs)
Bool_t operator<= (const PlexPlaneId &lhs, const PlexPlaneId &rhs)
Bool_t operator== (const PlexPlaneId &lhs, const PlexPlaneId &rhs)
Bool_t operator!= (const PlexPlaneId &lhs, const PlexPlaneId &rhs)
Bool_t operator> (const PlexPlaneId &lhs, const PlexPlaneId &rhs)
Bool_t operator>= (const PlexPlaneId &lhs, const PlexPlaneId &rhs)

Variables

const UInt_t defaultPlexPlaneId = 0xffffffff
const UInt_t defaultPlexStripEndId = defaultPlexPlaneId
const UInt_t defaultPlexScintMdlId = defaultPlexPlaneId
const UInt_t maskPlexIdDetector = 0x70000000
const UInt_t shftPlexIdDetector = 28
const UInt_t maskPlexIdPlane = 0x0FFC0000
const UInt_t shftPlexIdPlane = 18
const UInt_t maskPlexIdIsSteel = 0x00020000
const UInt_t maskPlexIdView = 0x0001C000
const UInt_t shftPlexIdView = 14
const UInt_t bitsPlexIdView = 3
const UInt_t maskPlexIdCoverage = 0x00003000
const UInt_t shftPlexIdCoverage = 12
const UInt_t bitsPlexIdCoverage = 2
const UInt_t maskPlexIdStrip = 0x00000FF0
const UInt_t shftPlexIdStrip = 4
const UInt_t bitsPlexIdStrip = 8
const UInt_t maskPlexIdScintMdl = maskPlexIdStrip
const UInt_t shftPlexIdScintMdl = shftPlexIdStrip
const UInt_t maskPlexIdSubPart = 0x0000000C
const UInt_t shftPlexIdSubPart = 2
const UInt_t maskPlexIdEnd = 0x00000003
const UInt_t shftPlexIdEnd = 0
const UInt_t zeroPlexIdStripInfo
const UInt_t maskPlexIdIsVetoShield = (512 << shftPlexIdPlane)
const UInt_t shftPlexIdVetoSection = 6
const UInt_t maskPlexIdIsFar
const UInt_t setPlexIdVSView = (1 << bitsPlexIdView)
const UInt_t setPlexIdVSCoverage = (1 << bitsPlexIdCoverage)
const UInt_t setPlexIdVSCoverage2 = (setPlexIdVSCoverage << 1)
const UInt_t maskPlexIdVSCoverage2 = 0x80000000
const UInt_t maskPlexIdIsNear

Function Documentation

Bool_t operator!= ( const PlexPlaneId lhs,
const PlexPlaneId rhs 
) [inline]

Definition at line 221 of file PlexPlaneId.h.

References PlexPlaneId::fEncoded, and zeroPlexIdStripInfo.

00222 { return (lhs.fEncoded&zeroPlexIdStripInfo) != (rhs.fEncoded&zeroPlexIdStripInfo); }

Bool_t operator< ( const PlexPlaneId lhs,
const PlexPlaneId rhs 
) [inline]

Definition at line 212 of file PlexPlaneId.h.

References PlexPlaneId::fEncoded, and zeroPlexIdStripInfo.

00213 { return (lhs.fEncoded&zeroPlexIdStripInfo) <  (rhs.fEncoded&zeroPlexIdStripInfo); }

std::ostream& operator<< ( std::ostream &  os,
const PlexPlaneId p 
)
Bool_t operator<= ( const PlexPlaneId lhs,
const PlexPlaneId rhs 
) [inline]

Definition at line 215 of file PlexPlaneId.h.

References PlexPlaneId::fEncoded, and zeroPlexIdStripInfo.

00216 { return (lhs.fEncoded&zeroPlexIdStripInfo) <= (rhs.fEncoded&zeroPlexIdStripInfo); }

Bool_t operator== ( const PlexPlaneId lhs,
const PlexPlaneId rhs 
) [inline]

Definition at line 218 of file PlexPlaneId.h.

References PlexPlaneId::fEncoded, and zeroPlexIdStripInfo.

00219 { return (lhs.fEncoded&zeroPlexIdStripInfo) == (rhs.fEncoded&zeroPlexIdStripInfo); }

Bool_t operator> ( const PlexPlaneId lhs,
const PlexPlaneId rhs 
) [inline]

Definition at line 224 of file PlexPlaneId.h.

References PlexPlaneId::fEncoded, and zeroPlexIdStripInfo.

00225 { return (lhs.fEncoded&zeroPlexIdStripInfo) >  (rhs.fEncoded&zeroPlexIdStripInfo); }

Bool_t operator>= ( const PlexPlaneId lhs,
const PlexPlaneId rhs 
) [inline]

Definition at line 227 of file PlexPlaneId.h.

References PlexPlaneId::fEncoded, and zeroPlexIdStripInfo.

00228 { return (lhs.fEncoded&zeroPlexIdStripInfo) >= (rhs.fEncoded&zeroPlexIdStripInfo); }


Variable Documentation

const UInt_t bitsPlexIdCoverage = 2

Definition at line 176 of file PlexPlaneId.h.

const UInt_t bitsPlexIdStrip = 8
const UInt_t bitsPlexIdView = 3

Definition at line 173 of file PlexPlaneId.h.

const UInt_t defaultPlexPlaneId = 0xffffffff

Definition at line 162 of file PlexPlaneId.h.

Referenced by PlexPlaneId::SetPlane().

Definition at line 164 of file PlexPlaneId.h.

Referenced by PlexScintMdlId::PlexScintMdlId().

Definition at line 163 of file PlexPlaneId.h.

Referenced by PlexStripEndId::PlexStripEndId().

const UInt_t maskPlexIdCoverage = 0x00003000

Definition at line 174 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlaneCoverage(), and PlexPlaneId::SetPlaneCoverage().

const UInt_t maskPlexIdDetector = 0x70000000

Definition at line 166 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetDetector(), and PlexPlaneId::SetDetector().

const UInt_t maskPlexIdEnd = 0x00000003
const UInt_t maskPlexIdIsFar
Initial value:

Definition at line 195 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetSuperModule().

const UInt_t maskPlexIdIsNear
Initial value:

Definition at line 202 of file PlexPlaneId.h.

Referenced by PlexPlaneId::IsNearSpect().

const UInt_t maskPlexIdIsSteel = 0x00020000

Definition at line 170 of file PlexPlaneId.h.

Referenced by PlexPlaneId::IsSteel(), and PlexPlaneId::SetIsSteel().

const UInt_t maskPlexIdIsVetoShield = (512 << shftPlexIdPlane)

Definition at line 192 of file PlexPlaneId.h.

Referenced by PlexPlaneId::IsVetoShield().

const UInt_t maskPlexIdPlane = 0x0FFC0000

Definition at line 180 of file PlexPlaneId.h.

Referenced by PlexScintMdlId::GetModule(), and PlexScintMdlId::SetModule().

const UInt_t maskPlexIdStrip = 0x00000FF0
const UInt_t maskPlexIdSubPart = 0x0000000C
const UInt_t maskPlexIdView = 0x0001C000

Definition at line 171 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlaneView(), and PlexPlaneId::SetPlaneView().

const UInt_t maskPlexIdVSCoverage2 = 0x80000000

Definition at line 200 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlaneCoverage(), and PlexPlaneId::SetPlaneCoverage().

const UInt_t setPlexIdVSCoverage = (1 << bitsPlexIdCoverage)

Definition at line 198 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlaneCoverage().

Definition at line 199 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlaneCoverage().

const UInt_t setPlexIdVSView = (1 << bitsPlexIdView)

Definition at line 197 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlaneView().

const UInt_t shftPlexIdCoverage = 12

Definition at line 175 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlaneCoverage(), and PlexPlaneId::SetPlaneCoverage().

const UInt_t shftPlexIdDetector = 28

Definition at line 167 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetDetector(), and PlexPlaneId::SetDetector().

const UInt_t shftPlexIdEnd = 0
const UInt_t shftPlexIdPlane = 18

Definition at line 169 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlane(), and PlexPlaneId::SetPlane().

Definition at line 181 of file PlexPlaneId.h.

Referenced by PlexScintMdlId::GetModule(), and PlexScintMdlId::SetModule().

const UInt_t shftPlexIdStrip = 4
const UInt_t shftPlexIdSubPart = 2
const UInt_t shftPlexIdVetoSection = 6

Definition at line 194 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetVetoSection().

const UInt_t shftPlexIdView = 14

Definition at line 172 of file PlexPlaneId.h.

Referenced by PlexPlaneId::GetPlaneView(), and PlexPlaneId::SetPlaneView().

const UInt_t zeroPlexIdStripInfo

Generated on 8 Jul 2019 for loon by  doxygen 1.6.1