ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
RpcCondDbData Class Reference

#include <RpcCondDbData.h>

Collaboration diagram for RpcCondDbData:

Public Member Functions

 RpcCondDbData ()=default
 
 ~RpcCondDbData ()=default
 
void setEfficiency (Identifier, double)
 
void setFracClusterSize1 (Identifier, double)
 
void setFracClusterSize2 (Identifier, double)
 
void setFracDeadStrip (Identifier, double)
 
void setGapEfficiency (Identifier, double)
 
void setMeanClusterSize (Identifier, double)
 
void setProjectedTrack (Identifier, int)
 
void setStripTime (Identifier, const std::vector< double > &)
 
std::optional< double > getEfficiency (const Identifier &) const
 
std::optional< double > getFracClusterSize1 (const Identifier &) const
 
std::optional< double > getFracClusterSize2 (const Identifier &) const
 
std::optional< double > getFracClusterSize3 (const Identifier &) const
 
std::optional< double > getFracDeadStrip (const Identifier &) const
 
std::optional< double > getGapEfficiency (const Identifier &) const
 
std::optional< double > getMeanClusterSize (const Identifier &) const
 
std::optional< int > getProjectedTrack (const Identifier &) const
 
std::optional< double > getStripTime (const Identifier &) const
 

Private Attributes

std::unordered_map< Identifier, double > m_cachedEfficiency
 Used to describe the panel Efficiency. More...
 
std::unordered_map< Identifier, double > m_cachedFracClusterSize1
 Used for cluster size evaluation. More...
 
std::unordered_map< Identifier, double > m_cachedFracClusterSize2
 Used for cluster size evaluation. More...
 
std::unordered_map< Identifier, double > m_cachedFracDeadStrip
 Used in digitization for efficiency calculation. More...
 
std::unordered_map< Identifier, double > m_cachedGapEfficiency
 Used to describe the gap efficiency. More...
 
std::unordered_map< Identifier, double > m_cachedMeanClusterSize
 Used for cluster size evaluation. More...
 
std::unordered_map< Identifier, int > m_cachedProjectedTracks
 Used in digitization for efficiency / mean cluster evaluation. More...
 
std::unordered_map< Identifier, double > m_cachedStripTime
 Used in Rdo -> Prd conversion. More...
 

Friends

class RpcCondDbAlg
 

Detailed Description

Definition at line 24 of file RpcCondDbData.h.

Constructor & Destructor Documentation

◆ RpcCondDbData()

RpcCondDbData::RpcCondDbData ( )
default

◆ ~RpcCondDbData()

RpcCondDbData::~RpcCondDbData ( )
default

Member Function Documentation

◆ getEfficiency()

std::optional< double > RpcCondDbData::getEfficiency ( const Identifier Id) const

Definition at line 36 of file RpcCondDbData.cxx.

36  {
37  auto itr = m_cachedEfficiency.find(Id);
38  return itr==m_cachedEfficiency.end() ? std::nullopt : std::make_optional<double>(itr->second);
39 }

◆ getFracClusterSize1()

std::optional< double > RpcCondDbData::getFracClusterSize1 ( const Identifier Id) const

Definition at line 40 of file RpcCondDbData.cxx.

40  {
41  auto itr = m_cachedFracClusterSize1.find(Id);
42  return itr==m_cachedFracClusterSize1.end() ? std::nullopt : std::make_optional<double>(itr->second);
43 }

◆ getFracClusterSize2()

std::optional< double > RpcCondDbData::getFracClusterSize2 ( const Identifier Id) const

Definition at line 44 of file RpcCondDbData.cxx.

44  {
45  auto itr = m_cachedFracClusterSize2.find(Id);
46  return itr ==m_cachedFracClusterSize2.end() ? std::nullopt : std::make_optional<double>(itr->second);
47 }

◆ getFracClusterSize3()

std::optional<double> RpcCondDbData::getFracClusterSize3 ( const Identifier ) const

◆ getFracDeadStrip()

std::optional< double > RpcCondDbData::getFracDeadStrip ( const Identifier Id) const

Definition at line 48 of file RpcCondDbData.cxx.

48  {
49  auto itr = m_cachedFracDeadStrip.find(Id);
50  return itr == m_cachedFracDeadStrip.end() ? std::nullopt : std::make_optional<double>(itr->second);
51 }

◆ getGapEfficiency()

std::optional< double > RpcCondDbData::getGapEfficiency ( const Identifier Id) const

Definition at line 52 of file RpcCondDbData.cxx.

52  {
53  auto itr = m_cachedGapEfficiency.find(Id);
54  return itr == m_cachedGapEfficiency.end() ? std::nullopt : std::make_optional<double>(itr->second);
55 }

◆ getMeanClusterSize()

std::optional< double > RpcCondDbData::getMeanClusterSize ( const Identifier Id) const

Definition at line 56 of file RpcCondDbData.cxx.

56  {
57  auto itr = m_cachedMeanClusterSize.find(Id);
58  return itr==m_cachedMeanClusterSize.end() ? std::nullopt : std::make_optional<double>(itr->second);
59 }

◆ getProjectedTrack()

std::optional< int > RpcCondDbData::getProjectedTrack ( const Identifier Id) const

Definition at line 60 of file RpcCondDbData.cxx.

60  {
61  auto itr = m_cachedProjectedTracks.find(Id);
62  return itr ==m_cachedProjectedTracks.end() ? std::nullopt : std::make_optional<int>(itr->second);
63 }

◆ getStripTime()

std::optional< double > RpcCondDbData::getStripTime ( const Identifier Id) const

Definition at line 64 of file RpcCondDbData.cxx.

64  {
65  auto itr = m_cachedStripTime.find(Id);
66  return itr == m_cachedStripTime.find(Id) ? std::nullopt : std::make_optional<double>(itr->second);
67 }

◆ setEfficiency()

void RpcCondDbData::setEfficiency ( Identifier  chamberId,
double  efficiency 
)

Definition at line 8 of file RpcCondDbData.cxx.

8  {
9  m_cachedEfficiency.insert(std::make_pair(chamberId, efficiency));
10 }

◆ setFracClusterSize1()

void RpcCondDbData::setFracClusterSize1 ( Identifier  chamberId,
double  fcs 
)

Definition at line 11 of file RpcCondDbData.cxx.

11  {
12  m_cachedFracClusterSize1.insert(std::make_pair(chamberId, fcs));
13 }

◆ setFracClusterSize2()

void RpcCondDbData::setFracClusterSize2 ( Identifier  chamberId,
double  fcs 
)

Definition at line 14 of file RpcCondDbData.cxx.

14  {
15  m_cachedFracClusterSize2.insert(std::make_pair(chamberId, fcs));
16 }

◆ setFracDeadStrip()

void RpcCondDbData::setFracDeadStrip ( Identifier  chamberId,
double  fds 
)

Definition at line 17 of file RpcCondDbData.cxx.

17  {
18  m_cachedFracDeadStrip.insert(std::make_pair(chamberId, fds));
19 }

◆ setGapEfficiency()

void RpcCondDbData::setGapEfficiency ( Identifier  chamberId,
double  efficiency 
)

Definition at line 20 of file RpcCondDbData.cxx.

20  {
21  m_cachedGapEfficiency.insert(std::make_pair(chamberId, efficiency));
22 }

◆ setMeanClusterSize()

void RpcCondDbData::setMeanClusterSize ( Identifier  chamberId,
double  mcs 
)

Definition at line 23 of file RpcCondDbData.cxx.

23  {
24  m_cachedMeanClusterSize.insert(std::make_pair(chamberId, mcs));
25 }

◆ setProjectedTrack()

void RpcCondDbData::setProjectedTrack ( Identifier  chamberId,
int  projectedTracks 
)

Definition at line 26 of file RpcCondDbData.cxx.

26  {
27  m_cachedProjectedTracks.insert(std::make_pair(chamberId, projectedTracks));
28 }

◆ setStripTime()

void RpcCondDbData::setStripTime ( Identifier  stripId,
const std::vector< double > &  time 
)

Definition at line 30 of file RpcCondDbData.cxx.

30  {
31  if(m_cachedStripTime.count(stripId)) return;
32  m_cachedStripTime[stripId] = time[0];
33 }

Friends And Related Function Documentation

◆ RpcCondDbAlg

friend class RpcCondDbAlg
friend

Definition at line 26 of file RpcCondDbData.h.

Member Data Documentation

◆ m_cachedEfficiency

std::unordered_map<Identifier, double> RpcCondDbData::m_cachedEfficiency
private

Used to describe the panel Efficiency.

Definition at line 54 of file RpcCondDbData.h.

◆ m_cachedFracClusterSize1

std::unordered_map<Identifier, double> RpcCondDbData::m_cachedFracClusterSize1
private

Used for cluster size evaluation.

Definition at line 56 of file RpcCondDbData.h.

◆ m_cachedFracClusterSize2

std::unordered_map<Identifier, double> RpcCondDbData::m_cachedFracClusterSize2
private

Used for cluster size evaluation.

Definition at line 58 of file RpcCondDbData.h.

◆ m_cachedFracDeadStrip

std::unordered_map<Identifier, double> RpcCondDbData::m_cachedFracDeadStrip
private

Used in digitization for efficiency calculation.

Definition at line 60 of file RpcCondDbData.h.

◆ m_cachedGapEfficiency

std::unordered_map<Identifier, double> RpcCondDbData::m_cachedGapEfficiency
private

Used to describe the gap efficiency.

Definition at line 62 of file RpcCondDbData.h.

◆ m_cachedMeanClusterSize

std::unordered_map<Identifier, double> RpcCondDbData::m_cachedMeanClusterSize
private

Used for cluster size evaluation.

Definition at line 64 of file RpcCondDbData.h.

◆ m_cachedProjectedTracks

std::unordered_map<Identifier, int> RpcCondDbData::m_cachedProjectedTracks
private

Used in digitization for efficiency / mean cluster evaluation.

Definition at line 66 of file RpcCondDbData.h.

◆ m_cachedStripTime

std::unordered_map<Identifier, double> RpcCondDbData::m_cachedStripTime
private

Used in Rdo -> Prd conversion.

Definition at line 68 of file RpcCondDbData.h.


The documentation for this class was generated from the following files:
RpcCondDbData::m_cachedGapEfficiency
std::unordered_map< Identifier, double > m_cachedGapEfficiency
Used to describe the gap efficiency.
Definition: RpcCondDbData.h:62
RpcCondDbData::m_cachedFracClusterSize1
std::unordered_map< Identifier, double > m_cachedFracClusterSize1
Used for cluster size evaluation.
Definition: RpcCondDbData.h:56
RpcCondDbData::m_cachedMeanClusterSize
std::unordered_map< Identifier, double > m_cachedMeanClusterSize
Used for cluster size evaluation.
Definition: RpcCondDbData.h:64
RpcCondDbData::m_cachedFracDeadStrip
std::unordered_map< Identifier, double > m_cachedFracDeadStrip
Used in digitization for efficiency calculation.
Definition: RpcCondDbData.h:60
efficiency
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
Definition: dependence.cxx:128
RpcCondDbData::m_cachedProjectedTracks
std::unordered_map< Identifier, int > m_cachedProjectedTracks
Used in digitization for efficiency / mean cluster evaluation.
Definition: RpcCondDbData.h:66
RpcCondDbData::m_cachedStripTime
std::unordered_map< Identifier, double > m_cachedStripTime
Used in Rdo -> Prd conversion.
Definition: RpcCondDbData.h:68
RpcCondDbData::m_cachedFracClusterSize2
std::unordered_map< Identifier, double > m_cachedFracClusterSize2
Used for cluster size evaluation.
Definition: RpcCondDbData.h:58
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
RpcCondDbData::m_cachedEfficiency
std::unordered_map< Identifier, double > m_cachedEfficiency
Used to describe the panel Efficiency.
Definition: RpcCondDbData.h:54