ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsData
SCT_ConditionsData
SCT_MajorityCondData.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5
*/
6
13
14
#ifndef SCT_MAJORITYCONDDATA_H
15
#define SCT_MAJORITYCONDDATA_H
16
17
#include <map>
18
23
class
SCT_MajorityCondData
{
24
public
:
26
SCT_MajorityCondData
();
28
virtual
~SCT_MajorityCondData
() =
default
;
29
31
void
setMajorityState
(
const
int
& region,
const
bool
& majorityState);
33
bool
getMajorityState
(
const
int
& region)
const
;
35
void
clearMajorityStates
();
36
38
void
setHVFraction
(
const
int
& region,
const
float
& hvFraction);
40
float
getHVFraction
(
const
int
& region)
const
;
42
void
clearHVFractions
();
43
45
void
setFilled
(
const
bool
& filled);
47
bool
isFilled
()
const
;
48
49
private
:
51
std::map<int, bool>
m_majorityState
;
53
std::map<int, float>
m_hvFraction
;
55
bool
m_filled
;
56
};
57
58
// Class definition for StoreGate
59
#include "
AthenaKernel/CLASS_DEF.h
"
60
CLASS_DEF
(
SCT_MajorityCondData
, 131714728 , 1 )
61
62
// Condition container definition for CondInputLoader
63
#include "AthenaKernel/CondCont.h"
64
CONDCONT_DEF
(
SCT_MajorityCondData
, 80083480 );
65
66
#endif
// SCT_MAJORITYDATA_H
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
SCT_MajorityCondData
Class for data object used in SCT_MajorityCondAlg and SCT_MajorityConditionsTool.
Definition
SCT_MajorityCondData.h:23
SCT_MajorityCondData::m_filled
bool m_filled
Flag to check data are filled or not.
Definition
SCT_MajorityCondData.h:55
SCT_MajorityCondData::~SCT_MajorityCondData
virtual ~SCT_MajorityCondData()=default
Destructor.
SCT_MajorityCondData::SCT_MajorityCondData
SCT_MajorityCondData()
Constructor.
Definition
SCT_MajorityCondData.cxx:13
SCT_MajorityCondData::getHVFraction
float getHVFraction(const int ®ion) const
Get HV fraction for a region.
Definition
SCT_MajorityCondData.cxx:52
SCT_MajorityCondData::clearHVFractions
void clearHVFractions()
Clear HV fractions.
Definition
SCT_MajorityCondData.cxx:61
SCT_MajorityCondData::setHVFraction
void setHVFraction(const int ®ion, const float &hvFraction)
Set HV fraction for a region.
Definition
SCT_MajorityCondData.cxx:45
SCT_MajorityCondData::m_majorityState
std::map< int, bool > m_majorityState
Map to store majority state.
Definition
SCT_MajorityCondData.h:51
SCT_MajorityCondData::getMajorityState
bool getMajorityState(const int ®ion) const
Get majority state for a region.
Definition
SCT_MajorityCondData.cxx:28
SCT_MajorityCondData::isFilled
bool isFilled() const
Get filled variable.
Definition
SCT_MajorityCondData.cxx:76
SCT_MajorityCondData::setFilled
void setFilled(const bool &filled)
Set filled variable.
Definition
SCT_MajorityCondData.cxx:69
SCT_MajorityCondData::setMajorityState
void setMajorityState(const int ®ion, const bool &majorityState)
Set majority state for a region.
Definition
SCT_MajorityCondData.cxx:21
SCT_MajorityCondData::m_hvFraction
std::map< int, float > m_hvFraction
Map to store HV fraction.
Definition
SCT_MajorityCondData.h:53
SCT_MajorityCondData::clearMajorityStates
void clearMajorityStates()
Clear majority state.
Definition
SCT_MajorityCondData.cxx:37
Generated on
for ATLAS Offline Software by
1.17.0