ATLAS Offline Software
IInDetConditionsSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 #ifndef IInDetConditionsSvc_h
10 #define IInDetConditionsSvc_h
11 //Gaudi Includes
12 #include "GaudiKernel/IInterface.h"
13 
14 //Local includes
16 
17 //forward declarations
18 class Identifier;
19 class IdentifierHash;
24 class IInDetConditionsSvc: virtual public IInterface{
25 public:
28 
30  //nop, needed for derived classes
31  }
32 
33  //@name isActive methods reveal whether the element should return data
35  virtual bool isActive(const Identifier & elementId, const InDetConditions::Hierarchy h=InDetConditions::DEFAULT)=0;
36  virtual bool isActive(const IdentifierHash & elementHash)=0;
37  virtual bool isActive(const IdentifierHash & elementHash, const Identifier & elementId)=0;
39  virtual double activeFraction(const IdentifierHash & elementHash, const Identifier & idStart, const Identifier & idEnd)=0;
42 
43  //@name isGood methods reveal whether the data are reliable
45  virtual bool isGood(const Identifier & elementId, const InDetConditions::Hierarchy h=InDetConditions::DEFAULT)=0;
46  virtual bool isGood(const IdentifierHash & elementHash)=0;
47  virtual bool isGood(const IdentifierHash & elementHash, const Identifier & elementId)=0;
49  virtual double goodFraction(const IdentifierHash & elementHash, const Identifier & idStart, const Identifier & idEnd)=0;
51 
52 };
53 
54 #endif
IInDetConditionsSvc
Definition: IInDetConditionsSvc.h:24
IInDetConditionsSvc::DeclareInterfaceID
DeclareInterfaceID(IInDetConditionsSvc, 1, 0)
Declare interface ID.
IInDetConditionsSvc::isActive
virtual bool isActive(const IdentifierHash &elementHash, const Identifier &elementId)=0
IInDetConditionsSvc::isActive
virtual bool isActive(const IdentifierHash &elementHash)=0
InDetConditions::Hierarchy
Hierarchy
Definition: InDetHierarchy.h:14
IInDetConditionsSvc::activeFraction
virtual double activeFraction(const IdentifierHash &elementHash, const Identifier &idStart, const Identifier &idEnd)=0
activeFraction method gives the fraction of active elements in the range of identifiers
IInDetConditionsSvc::goodFraction
virtual double goodFraction(const IdentifierHash &elementHash, const Identifier &idStart, const Identifier &idEnd)=0
goodFraction method gives the fraction of good elements in the range of identifiers
IInDetConditionsSvc::isGood
virtual bool isGood(const Identifier &elementId, const InDetConditions::Hierarchy h=InDetConditions::DEFAULT)=0
InDetHierarchy.h
IInDetConditionsSvc::isGood
virtual bool isGood(const IdentifierHash &elementHash, const Identifier &elementId)=0
IInDetConditionsSvc::~IInDetConditionsSvc
virtual ~IInDetConditionsSvc()
Definition: IInDetConditionsSvc.h:29
h
IInDetConditionsSvc::isGood
virtual bool isGood(const IdentifierHash &elementHash)=0
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
InDetConditions::DEFAULT
@ DEFAULT
Definition: InDetHierarchy.h:14
IInDetConditionsSvc::isActive
virtual bool isActive(const Identifier &elementId, const InDetConditions::Hierarchy h=InDetConditions::DEFAULT)=0
Identifier
Definition: IdentifierFieldParser.cxx:14