ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
TRT_ConditionsServices
src
TRT_ConditionsSummarySvc.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TRT_CONDITIONSSERVICES_TRT_CONDITIONSSUMMARYSVC_H
5
#define TRT_CONDITIONSSERVICES_TRT_CONDITIONSSUMMARYSVC_H
6
11
12
//STL includes
13
#include <vector>
14
#include <string>
15
//Gaudi Includes
16
#include "
AthenaBaseComps/AthService.h
"
17
#include "GaudiKernel/ServiceHandle.h"
18
19
//interface includes
20
#include "
InDetConditionsSummaryService/IInDetConditionsSvc.h
"
21
#include "
TRT_ConditionsServices/ITRT_ConditionsSvc.h
"
22
23
//forward declarations
24
class
ISvcLocator;
25
class
Identifier
;
26
class
IdentifierHash
;
27
class
StatusCode
;
28
class
TRT_ID
;
29
namespace
InDetDD
{
30
class
TRT_DetectorManager
;
31
}
32
38
class
TRT_ConditionsSummarySvc
:
39
public
extends<AthService, IInDetConditionsSvc>
40
{
41
public
:
42
TRT_ConditionsSummarySvc
(
const
std::string& name, ISvcLocator* svc );
43
virtual
~TRT_ConditionsSummarySvc
();
44
//@name Gaudi Service Implementation
46
virtual
StatusCode
initialize
()
override
;
48
49
//@name reimplemented from IInDetConditionsSvc
51
virtual
bool
isActive
(
const
Identifier
& elementId,
const
InDetConditions::Hierarchy
h
=
InDetConditions::DEFAULT
)
override
;
52
virtual
bool
isActive
(
const
IdentifierHash
& elementHash)
override
;
53
virtual
bool
isActive
(
const
IdentifierHash
& elementHash,
const
Identifier
& elementId)
override
;
54
virtual
double
activeFraction
(
const
IdentifierHash
& elementHash,
const
Identifier
& idStart,
const
Identifier
& idEnd)
override
;
55
virtual
bool
isGood
(
const
Identifier
& elementId,
const
InDetConditions::Hierarchy
h
=
InDetConditions::DEFAULT
)
override
;
56
virtual
bool
isGood
(
const
IdentifierHash
& elementHash)
override
;
57
virtual
bool
isGood
(
const
IdentifierHash
& elementHash,
const
Identifier
& elementId)
override
;
58
virtual
double
goodFraction
(
const
IdentifierHash
& elementHash,
const
Identifier
& idStart,
const
Identifier
& idEnd)
override
;
60
61
private
:
62
ServiceHandleArray<ITRT_ConditionsSvc>
m_svcCollection
;
63
InDet::TRT_CondFlag
condSummaryStatus
(
const
Identifier
& ident);
64
65
const
InDetDD::TRT_DetectorManager
*
m_manager
{
nullptr
};
66
const
TRT_ID
*
m_trtid
{
nullptr
};
67
68
};
69
70
#endif
// TRT_ConditionsSummarySvc_h
AthService.h
IInDetConditionsSvc.h
ITRT_ConditionsSvc.h
h
Header file for AthHistogramAlgorithm.
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDetDD::TRT_DetectorManager
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition
TRT_DetectorManager.h:63
TRT_ConditionsSummarySvc::condSummaryStatus
InDet::TRT_CondFlag condSummaryStatus(const Identifier &ident)
Definition
TRT_ConditionsSummarySvc.cxx:223
TRT_ConditionsSummarySvc::m_manager
const InDetDD::TRT_DetectorManager * m_manager
Definition
TRT_ConditionsSummarySvc.h:65
TRT_ConditionsSummarySvc::initialize
virtual StatusCode initialize() override
Service init.
Definition
TRT_ConditionsSummarySvc.cxx:34
TRT_ConditionsSummarySvc::m_trtid
const TRT_ID * m_trtid
Definition
TRT_ConditionsSummarySvc.h:66
TRT_ConditionsSummarySvc::goodFraction
virtual double goodFraction(const IdentifierHash &elementHash, const Identifier &idStart, const Identifier &idEnd) override
Definition
TRT_ConditionsSummarySvc.cxx:201
TRT_ConditionsSummarySvc::TRT_ConditionsSummarySvc
TRT_ConditionsSummarySvc(const std::string &name, ISvcLocator *svc)
Service constructor.
Definition
TRT_ConditionsSummarySvc.cxx:21
TRT_ConditionsSummarySvc::isActive
virtual bool isActive(const Identifier &elementId, const InDetConditions::Hierarchy h=InDetConditions::DEFAULT) override
Definition
TRT_ConditionsSummarySvc.cxx:59
TRT_ConditionsSummarySvc::~TRT_ConditionsSummarySvc
virtual ~TRT_ConditionsSummarySvc()
TRT_ConditionsSummarySvc::isGood
virtual bool isGood(const Identifier &elementId, const InDetConditions::Hierarchy h=InDetConditions::DEFAULT) override
Definition
TRT_ConditionsSummarySvc.cxx:141
TRT_ConditionsSummarySvc::m_svcCollection
ServiceHandleArray< ITRT_ConditionsSvc > m_svcCollection
Definition
TRT_ConditionsSummarySvc.h:62
TRT_ConditionsSummarySvc::activeFraction
virtual double activeFraction(const IdentifierHash &elementHash, const Identifier &idStart, const Identifier &idEnd) override
Definition
TRT_ConditionsSummarySvc.cxx:119
TRT_ID
This is an Identifier helper class for the TRT subdetector.
Definition
TRT_ID.h:84
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetConditions::Hierarchy
Hierarchy
Definition
InDetHierarchy.h:14
InDetConditions::DEFAULT
@ DEFAULT
Definition
InDetHierarchy.h:14
InDetDD
Message Stream Member.
Definition
FakeTrackBuilder.h:8
Generated on
for ATLAS Offline Software by
1.17.0