ATLAS Offline Software
ITRT_StrawNeighbourSvc.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 #ifndef ITRT_STRAWNEIGHBOURSVC_H
6 #define ITRT_STRAWNEIGHBOURSVC_H
7 
13 #include <vector>
14 #include "GaudiKernel/IService.h"
15 
16 class Identifier;
17 namespace TRTCond {
18 class ExpandedIdentifier;
19 }
20 
21 
22 class ITRT_StrawNeighbourSvc: virtual public IService
23 {
24  public:
25 
26  static const InterfaceID& interfaceID();
27  virtual void getPad(Identifier , int& ) = 0;
28 
29  virtual void getChip(Identifier , int& ) = 0;
30 
31  virtual void getPin(Identifier , int& ) = 0; // Only for barrel
32 
33  virtual void getSocket(Identifier , int& ) =0;
34 
35  //Disclaimers: getStrawFrom*** functions tested thouroughly for barrel only
36  // : getStrawsFromPad works only for barrel
37 
38  virtual void getStrawsFromPad(Identifier , std::vector<Identifier>& ) = 0;
39  virtual void getStrawsFromChip(Identifier , std::vector<Identifier>& ) = 0;
40 
42 
43  virtual int getRunningNumbering(Identifier) = 0;
44 
45  virtual int strawNumber( Identifier) = 0;
46 
47  virtual int strawLayerNumber(Identifier) = 0;
48 
49  virtual void getAtlasIdentifier(int , Identifier&, Identifier ) = 0;
50 
51  // chip to board conversion. Works for barrel only!
52  virtual int chipToBoardBarrel(int , int ) =0;
53 
54  virtual int getRing( const Identifier &id ) = 0;
55 
56 };
57 
58 
59 
61 // inline methods
63 
65 
66 inline const InterfaceID& ITRT_StrawNeighbourSvc::interfaceID() {
67  static const InterfaceID IID("ITRT_StrawNeighbourSvc",1,0);
68  return IID;
69 }
70 
71 #endif
ITRT_StrawNeighbourSvc::chipToBoardBarrel
virtual int chipToBoardBarrel(int, int)=0
ITRT_StrawNeighbourSvc::getPad
virtual void getPad(Identifier, int &)=0
ExpandedIdentifier
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:108
ITRT_StrawNeighbourSvc::getChip
virtual void getChip(Identifier, int &)=0
ITRT_StrawNeighbourSvc::getRunningNumbering
virtual int getRunningNumbering(Identifier)=0
ITRT_StrawNeighbourSvc::getSocket
virtual void getSocket(Identifier, int &)=0
ITRT_StrawNeighbourSvc::interfaceID
static const InterfaceID & interfaceID()
interfaces
Definition: ITRT_StrawNeighbourSvc.h:66
ITRT_StrawNeighbourSvc::getRing
virtual int getRing(const Identifier &id)=0
ITRT_StrawNeighbourSvc::getStrawsFromPad
virtual void getStrawsFromPad(Identifier, std::vector< Identifier > &)=0
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
ITRT_StrawNeighbourSvc::getStrawsFromChip
virtual void getStrawsFromChip(Identifier, std::vector< Identifier > &)=0
ITRT_StrawNeighbourSvc::strawLayerNumber
virtual int strawLayerNumber(Identifier)=0
ITRT_StrawNeighbourSvc::strawNumber
virtual int strawNumber(Identifier)=0
TRTCond
Definition: BasicRtRelation.cxx:8
ITRT_StrawNeighbourSvc
Definition: ITRT_StrawNeighbourSvc.h:23
ITRT_StrawNeighbourSvc::getFirstStrawFromChip
virtual TRTCond::ExpandedIdentifier getFirstStrawFromChip(Identifier)=0
ITRT_StrawNeighbourSvc::getPin
virtual void getPin(Identifier, int &)=0
ITRT_StrawNeighbourSvc::getAtlasIdentifier
virtual void getAtlasIdentifier(int, Identifier &, Identifier)=0
TRTCond::ExpandedIdentifier
Identifier for TRT detector elements in the conditions code.
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:30