ATLAS Offline Software
Loading...
Searching...
No Matches
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
24public:
28 virtual ~SCT_MajorityCondData() = default;
29
31 void setMajorityState(const int& region, const bool& majorityState);
33 bool getMajorityState(const int& region) const;
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
49private:
51 std::map<int, bool> m_majorityState;
53 std::map<int, float> m_hvFraction;
56};
57
58// Class definition for StoreGate
60CLASS_DEF( SCT_MajorityCondData , 131714728 , 1 )
61
62// Condition container definition for CondInputLoader
63#include "AthenaKernel/CondCont.h"
65
66#endif // SCT_MAJORITYDATA_H
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Class for data object used in SCT_MajorityCondAlg and SCT_MajorityConditionsTool.
bool m_filled
Flag to check data are filled or not.
virtual ~SCT_MajorityCondData()=default
Destructor.
float getHVFraction(const int &region) const
Get HV fraction for a region.
void clearHVFractions()
Clear HV fractions.
void setHVFraction(const int &region, const float &hvFraction)
Set HV fraction for a region.
std::map< int, bool > m_majorityState
Map to store majority state.
bool getMajorityState(const int &region) const
Get majority state for a region.
bool isFilled() const
Get filled variable.
void setFilled(const bool &filled)
Set filled variable.
void setMajorityState(const int &region, const bool &majorityState)
Set majority state for a region.
std::map< int, float > m_hvFraction
Map to store HV fraction.
void clearMajorityStates()
Clear majority state.