|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #ifndef MUONCALIBIDENTIFIER_MUONFIXEDLONGID_H
18 #define MUONCALIBIDENTIFIER_MUONFIXEDLONGID_H
164 std::ostream&
dump(std::ostream&
os)
const;
1016 if (Ieta < 0 ) Ieta = -Ieta*10 ;
1017 int ImezzTubes = 8 ;
1019 || Ichamber==StationName::BIM || Ichamber==
StationName::BEE || Ichamber==StationName::EIL
1020 || Ichamber==StationName::EIS) {
1025 int Imezz = ((Itube-1)/ImezzTubes)*2+(Iml-1) ;
1026 Imezz = 9*100000000 + Ichamber*1000000 + Ieta*10000 + Iphi*100 + Imezz ;
1578 return id.dump(
os );
1589 #endif // MUONCALIBIDENTIFIER_MUONFIXEDLONGID_H
bool operator!=(const MuonFixedLongId &rhs) const
comparison operator
static const unsigned int kCscMeasuresPhiShift
bool setStgChannelTypeIndex(uint64_t idx)
Stg specific: set index for channel_type to idx.
unsigned int rpcStripIndex() const
Rpc specific:
unsigned int mmgStripIndex() const
Mmg specific:
static const uint64_t kStgMultilayerMask
static const int kStgChannelTypeMin
static const int kTgcGasGapMin
unsigned int rpcDoubletPhiIndex() const
Rpc specific:
unsigned int rpcDoubletRIndex() const
Rpc specific:
static const int kMdtTubeLayerMin
unsigned int tgcGasGapIndex() const
Tgc specific:
int mmgMultilayer() const
Mmg specific:
static const int kStationEtaMin
static const uint64_t kMdtMultilayerMask
bool setStationPhiIndex(uint64_t idx)
set station phi index in the fixed identifier
static int stationNameMax()
bool setStgChannel(int num)
Stg specific: set channel to num.
unsigned int mmgGasGapIndex() const
Mmg specific:
static const unsigned int kStationPhiShift
int mmgStrip() const
Mmg specific:
void initFromFixedId(MuonFixedId other)
for backward compatibility
bool setRpcDoubletZIndex(uint64_t idx)
Rpc specific: set index for doublet_Z to idx.
bool setTgcIsStrip(int num)
Tgc specific: set is_strip to num.
unsigned int technologyIndex() const
bool setStgChannelIndex(uint64_t idx)
Stg specific: set index for channel to idx.
unsigned int rpcDoubletZIndex() const
Rpc specific:
static const int kNumberOfTechnologies
unsigned int tgcChannelIndex() const
Tgc specific:
std::string_view technologyString() const
static int mdtMultilayerMin()
Mdt specific:
static const int kRpcDoubletZMin
unsigned int cscMeasuresPhiIndex() const
Csc specific:
void set_csc()
set identifier to CSC technology type
bool setStationName(StationName num)
set station name to num in the fixed identifier
static int mdtTubeMin()
Mdt specific:
StationName
an enum with the station names
bool setStationNameIndex(uint64_t idx)
set station name index in the fixed identifier
bool setRpcDoubletZ(int num)
Rpc specific: set doublet_Z to num.
@ BEE
BEE measurement point.
bool setTgcGasGapIndex(uint64_t idx)
Tgc specific: set index for gas_gap to idx.
bool setStgMultilayer(int num)
Stg specific: set multilayer to num.
bool setRpcDoubletRIndex(uint64_t idx)
Rpc specific: set index for doublet_R to idx.
bool setMmgGasGapIndex(uint64_t idx)
Mmg specific: set index for gas_gap to idx.
static int cscChamberLayerMax()
Csc specific:
int mdtTubeLayer() const
Mdt specific:
bool isValid() const
check validity of the identifier.
static const unsigned int kTechnologyShift
int rpcMeasuresPhi() const
Rpc specific:
bool setStationPhi(int num)
set station phi to num in the fixed identifier
static const unsigned int kStgMultilayerShift
bool setStgMultilayerIndex(uint64_t idx)
Stg specific: set index idx for multilayer.
static const uint64_t kTgcChannelMask
static const int kRpcMeasuresPhiMin
bool mmgIsStereo() const
Mmg specific: check if layer is stereo.
static const uint64_t kCscWireLayerMask
static const uint64_t kStationMask
static const unsigned int kStationEtaShift
uint64_t getIdLong() const
static int cscChamberLayerMin()
Csc specific:
static const int kCscWireLayerMin
int mmgGasGap() const
Mmg specific:
unsigned int tgcIsStripIndex() const
Tgc specific:
bool setStationEtaIndex(uint64_t idx)
set station eta index in the fixed identifier
bool setStgGasGapIndex(uint64_t idx)
Stg specific: set index for gas_gap to idx.
int tgcGasGap() const
Tgc specific:
static const int kCscMeasuresPhiMin
bool setStationEta(int num)
set station eta to num in the fixed identifier
static const int kRpcGasGapMin
bool setMmgMultilayer(int num)
Mmg specific: set multilayer to num.
StgChannelType
an enum with the STGC channel types
bool setCscChamberLayerIndex(uint64_t idx)
Csc specific: set chamber layer index to idx.
int rpcGasGap() const
Rpc specific:
int mdtTube() const
Mdt specific:
static const unsigned int kTgcGasGapShift
bool setTgcChannelIndex(uint64_t idx)
Tgc specific: set index for channel to idx.
static const uint64_t kTgcIsStripMask
static const uint64_t kStgChannelTypeMask
MuonFixedLongId mdtChamberId() const
Mdt specific: convert channel ID into MDT Chamber ID.
static const uint64_t kRpcDoubletPhiMask
static const int kStationPhiMin
unsigned int rpcGasGapIndex() const
Rpc specific:
bool setCscStripIndex(uint64_t idx)
Csc specific: set strip index to idx.
bool setMdtTube(int num)
Mdt specific: set tube to num.
int tgcChannel() const
Tgc specific:
static const uint64_t kRpcStripMask
bool setMdtMultilayer(int num)
Mdt specific: set multilayer to num.
bool operator==(const MuonFixedLongId &rhs) const
comparison operator
bool setTechnologyIndex(uint64_t idx)
set technology index in the fixed identifier
bool setMdtTubeLayer(int num)
Mdt specific: set layer to num.
static const int kMdtMultilayerMin
int stgMultilayer() const
Stg specific:
void set_mmg()
set identifier to MMG technology type
void set_tgc()
set identifier to TGC technology type
static const uint64_t kStationNameMask
unsigned int stgChannelIndex() const
Stg specific:
bool setTechnology(Technology num)
set technology to num in the fixed identifier
unsigned int stgChannelTypeIndex() const
Stg specific:
bool setCscMeasuresPhi(int num)
Csc specific: set measures_phi to num.
static const uint64_t kStationEtaMask
std::string_view stationNameString() const
static const uint64_t kMmgMultilayerMask
bool operator<(const MuonFixedLongId &rhs) const
comparison operator
static int stationNameMin()
static const int kMmgGasGapMin
bool setRpcMeasuresPhiIndex(uint64_t idx)
Rpc specific: set index for measures_phi to idx.
Technology
constants for technology numbers
static const uint64_t kRpcMeasuresPhiMask
int cscWireLayer() const
Csc specific:
static std::string_view stationNumberToFixedStationString(StationName station)
static const uint64_t kMmgGasGapMask
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)
static const int kStgChannelMin
StgChannelType stgChannelType() const
Stg specific:
bool setMdtTubeLayerIndex(uint64_t idx)
Mdt specific: set index idx for layer.
bool setStgChannelType(StgChannelType num)
Stg specific: set channel_type to num.
unsigned int etaIndex() const
static const int kMmgMultilayerMin
static const int kTgcIsStripMin
static const unsigned int kStationNameShift
void clear()
clear the identifier (=set to invalid)
bool setStgGasGap(int num)
Stg specific: set gas_gap to num.
unsigned int mdtTubeLayerIndex() const
Mdt specific:
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
bool setCscMeasuresPhiIndex(uint64_t idx)
Csc specific: set measures_phi index to idx.
static const unsigned int kRpcDoubletRShift
unsigned int stgGasGapIndex() const
Stg specific:
unsigned int cscStripIndex() const
Csc specific:
unsigned int cscWireLayerIndex() const
Csc specific:
unsigned int cscChamberLayerIndex() const
Csc specific:
bool setMdtMultilayerIndex(uint64_t idx)
Mdt specific: set index idx for multilayer.
static const unsigned int kMmgMultilayerShift
static int technologyMin()
static const unsigned int kStationShift
static const int kTgcChannelMin
static const unsigned int kCscStripShift
static int mdtTubeLayerMin()
Mdt specific:
static const unsigned int kRpcMeasuresPhiShift
static const char kStationNameStrings[kNumberOfStationNames][4]
unsigned int mmgMultilayerIndex() const
Mmg specific:
static int cscMeasuresPhiMax()
Csc specific:
static const int kCscStripMin
static const unsigned int kMdtTubeShift
static int cscMeasuresPhiMin()
Csc specific:
static const uint64_t kMdtTubeMask
unsigned int mdtMultilayerIndex() const
Mdt specific:
static const unsigned int kStgChannelShift
static const unsigned int kTgcIsStripShift
static int mdtTubeLayerMax()
Mdt specific:
static const int kRpcStripMin
static const uint64_t kRpcDoubletRMask
int cscStrip() const
Csc specific:
bool setMmgMultilayerIndex(uint64_t idx)
Mmg specific: set index idx for multilayer.
static const unsigned int kCscWireLayerShift
static const uint64_t kCscMeasuresPhiMask
static const unsigned int kMdtMultilayerShift
Technology technology() const
int stgChannel() const
Stg specific:
static int cscWireLayerMax()
Csc specific:
static const unsigned int kMmgStripShift
static const uint64_t kRpcDoubletZMask
int rpcDoubletZ() const
Rpc specific:
bool setMdtTubeIndex(uint64_t idx)
Mdt specific: set index idx for tube.
static const int kRpcDoubletRMin
bool setRpcDoubletPhiIndex(uint64_t idx)
Rpc specific: set index for doublet_Phi to idx.
static const unsigned int kRpcGasGapShift
static const unsigned int kMmgGasGapShift
bool setMmgGasGap(int num)
Mmg specific: set gas_gap to num.
static const unsigned int kStgChannelTypeShift
bool setTgcIsStripIndex(uint64_t idx)
Tgc specific: set index for is_strip to idx.
static const int kCscChamberLayerMin
static const unsigned int kMdtTubeLayerShift
static const int kTechnologyMin
bool setCscWireLayerIndex(uint64_t idx)
Csc specific: set wire layer index to idx.
static const uint64_t kCscChamberLayerMask
static const uint64_t kCscStripMask
int rpcDoubletPhi() const
Rpc specific:
int rpcDoubletR() const
Rpc specific:
int stgGasGap() const
Stg specific:
static const unsigned int kRpcDoubletZShift
MuonFixedLongId()
default constructor
static int cscStripMax()
Csc specific:
static int mdtMultilayerMax()
Mdt specific:
static const int kRpcDoubletPhiMin
static const int kStgMultilayerMin
void set_rpc()
set identifier to RPC technology type
bool setRpcMeasuresPhi(int num)
Rpc specific: set measures_phi to num.
static StationName stationStringToFixedStationNumber(std::string_view station)
StationName stationName() const
static const uint64_t kMmgStripMask
static int mdtTubeMax()
Mdt specific:
static int technologyMax()
static const int kStationNameMin
bool setMmgStripIndex(uint64_t idx)
Mmg specific: set strip index to idx.
int mdtMultilayer() const
Mdt specific:
int cscMeasuresPhi() const
Csc specific:
bool setRpcGasGapIndex(uint64_t idx)
Rpc specific: set index for gas_gap to idx.
static const uint64_t kTgcGasGapMask
static const uint64_t kMdtTubeLayerMask
void set_stg()
set identifier to sTGC technology type
bool setTgcChannel(int num)
Tgc specific: set channel to num.
bool setCscWireLayer(int num)
Csc specific: set wire layer to num.
static const unsigned int kRpcStripShift
bool setCscChamberLayer(int num)
Csc specific: set chamber layer to num.
int rpcStrip() const
Rpc specific:
int mdtMezzanine() const
Mdt specific: compute the mezzanine number.
static const uint64_t kInvalidData
std::ostream & dump(std::ostream &os) const
dump all the information corresponding to the identifier
int tgcIsStrip() const
Tgc specific:
static const int kMdtTubeMin
static const int kStgGasGapMin
bool setRpcGasGap(int num)
Rpc specific: set gas_gap to num.
unsigned int stgMultilayerIndex() const
Stg specific:
unsigned int mdtTubeIndex() const
Mdt specific:
bool setRpcStripIndex(uint64_t idx)
Rpc specific: set index for strip to idx.
static const unsigned int kCscChamberLayerShift
static int cscWireLayerMin()
Csc specific:
MuonFixedLongId mdtMultilayerId() const
Mdt specific: convert channel ID into MDT Multilayer ID.
void set_mdt()
set identifier to MDT technology type
static const int kNumberOfStationNames
unsigned int rpcMeasuresPhiIndex() const
Rpc specific:
static const uint64_t kTechnologyMask
bool setCscStrip(int num)
Csc specific: set strip to num.
static const uint64_t kStationPhiMask
static const uint64_t kStgGasGapMask
static const uint64_t kRpcGasGapMask
bool setRpcDoubletR(int num)
Rpc specific: set doublet_R to num.
bool setRpcStrip(int num)
Rpc specific: set strip to num.
bool setRpcDoubletPhi(int num)
Rpc specific: set doublet_Phi to num.
static const unsigned int kRpcDoubletPhiShift
bool setTgcGasGap(int num)
Tgc specific: set gas_gap to num.
bool setMmgStrip(int num)
Mmg specific: set strip to num.
static const unsigned int kTgcChannelShift
static const char kTechnologyStrings[kNumberOfTechnologies][4]
static const uint64_t kStgChannelMask
static const unsigned int kStgGasGapShift
unsigned int stationNameIndex() const
int cscChamberLayer() const
Csc specific:
static int cscStripMin()
Csc specific:
static const int kMmgStripMin
unsigned int phiIndex() const