ATLAS Offline Software
MdtTubeInChamberIdFields.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  * Identifier hashes
7  * -----------------------------------------
8  *
9  * Author : Martin Woudstra
10  * Creation Date: 28 April 2004
11  * Last Update : 28 April 2005
12  ***************************************************************************/
13 
18 #ifndef MUONCALIBIDENTIFIER_MDTTUBEINCHAMBERFIELDS_H
19 # define MUONCALIBIDENTIFIER_MDTTUBEINCHAMBERFIELDS_H
20 // std
21 
22 // other packages
23 // this package
24 #include "MuonCalibIdentifier/MdtFixedIds.h"
27 
28 class MdtTubeInChamberIdFields : public IdHashTableHelper<3,MdtTubeId,MdtTubeHash> {
29 public:
33  enum { kTubeField = 0, kLayerField = 1, kMultilayerField = 2 };
35  void setAll( const MdtTubeId& id );
37  void setAll( int fields[3] );
38 private:
39 };
40 
44  BaseClass::setId( id );
45 }
46 
47 inline void MdtTubeInChamberIdFields::setAll( const MdtTubeId& id ) {
48  BaseClass::setId( id );
49  BaseClass::setField( kMultilayerField, id.multilayer() );
52 }
53 
54 
55 
56 #endif // MUONCALIBIDENTIFIER_MDTTUBEINCHAMBERFIELDS_H
MdtTubeInChamberIdFields::kMultilayerField
@ kMultilayerField
Definition: MdtTubeInChamberIdFields.h:40
IdHashTableHelper< 3, MdtTubeId, MdtTubeHash >::setField
void setField(int index, int value)
Set field at index to value.
Definition: IdHashTableHelper.h:128
IdHashTableHelper< 3, MdtTubeId, MdtTubeHash >::setFields
void setFields(int fields[N])
Set fields from array.
Definition: IdHashTableHelper.h:133
MdtTubeInChamberIdFields::setAll
void setAll(const MdtTubeId &id)
Set identifier and also the fields (using the internal helper).
Definition: MdtTubeInChamberIdFields.h:47
IdHashTableHelper.h
MdtTubeInChamberIdFields::kLayerField
@ kLayerField
Definition: MdtTubeInChamberIdFields.h:40
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
MdtTubeInChamberIdFields
Helper class implementation to instantiate the templated IdentifierHashTable class.
Definition: MdtTubeInChamberIdFields.h:28
MdtTubeInChamberIdFields::kTubeField
@ kTubeField
Definition: MdtTubeInChamberIdFields.h:40
MdtFixedHashes.h
MdtTubeInChamberIdFields::BaseClass
IdHashTableHelper< 3, MdtTubeId, MdtTubeHash > BaseClass
define type BaseClasse
Definition: MdtTubeInChamberIdFields.h:38
IdHashTableHelper
Helper base class for instantiation of templated class IdentifierHashTable.
Definition: IdHashTableHelper.h:24
CaloCondBlobAlgs_fillNoiseFromASCII.fields
fields
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:106
calibdata.tube
tube
Definition: calibdata.py:31
IdHashTableHelper< 3, MdtTubeId, MdtTubeHash >::setId
void setId(const IdentifierType &id)
Set (only) the identifier.
Definition: IdHashTableHelper.h:123