ATLAS Offline Software
Loading...
Searching...
No Matches
RpcCondDbData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCONDDATA_RPCCONDDBDATA_H
6#define MUONCONDDATA_RPCCONDDBDATA_H
7
8//STL includes
9#include <string>
10#include <vector>
11#include <unordered_map>
12#include <optional>
13
14//Athena includes
15#include "Identifier/Identifier.h"
18
19
20//forward declarations
21class Identifier;
22
23
25
26 friend class RpcCondDbAlg;
27
28public:
29
30 RpcCondDbData() = default;
31 ~RpcCondDbData() = default;
32
33 void setEfficiency (Identifier, double );
34 void setFracClusterSize1(Identifier, double );
35 void setFracClusterSize2(Identifier, double );
36 void setFracDeadStrip (Identifier, double );
37 void setGapEfficiency (Identifier, double );
38 void setMeanClusterSize (Identifier, double );
39 void setProjectedTrack (Identifier, int );
40 void setStripTime (Identifier, const std::vector<double>&);
41
42 std::optional<double> getEfficiency (const Identifier& ) const;
43 std::optional<double> getFracClusterSize1(const Identifier& ) const;
44 std::optional<double> getFracClusterSize2(const Identifier& ) const;
45 std::optional<double> getFracClusterSize3(const Identifier& ) const;
46 std::optional<double> getFracDeadStrip (const Identifier& ) const;
47 std::optional<double> getGapEfficiency (const Identifier& ) const;
48 std::optional<double> getMeanClusterSize (const Identifier& ) const;
49 std::optional<int> getProjectedTrack (const Identifier& ) const;
50 std::optional<double> getStripTime(const Identifier& ) const;
51
52private:
54 std::unordered_map<Identifier, double> m_cachedEfficiency;
56 std::unordered_map<Identifier, double> m_cachedFracClusterSize1;
58 std::unordered_map<Identifier, double> m_cachedFracClusterSize2;
60 std::unordered_map<Identifier, double> m_cachedFracDeadStrip;
62 std::unordered_map<Identifier, double> m_cachedGapEfficiency;
64 std::unordered_map<Identifier, double> m_cachedMeanClusterSize;
66 std::unordered_map<Identifier, int> m_cachedProjectedTracks;
68 std::unordered_map<Identifier, double> m_cachedStripTime;
69
70};
71
72CLASS_DEF( RpcCondDbData, 25128902, 1)
73CLASS_DEF( CondCont<RpcCondDbData>, 178635428, 0)
74
75#endif
Hold mappings of ranges to condition objects.
Provide an interface for finding inheritance information at run time.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
std::unordered_map< Identifier, int > m_cachedProjectedTracks
Used in digitization for efficiency / mean cluster evaluation.
void setEfficiency(Identifier, double)
RpcCondDbData()=default
friend class RpcCondDbAlg
void setFracDeadStrip(Identifier, double)
std::optional< double > getFracClusterSize3(const Identifier &) const
std::unordered_map< Identifier, double > m_cachedFracClusterSize1
Used for cluster size evaluation.
void setFracClusterSize1(Identifier, double)
std::unordered_map< Identifier, double > m_cachedEfficiency
Used to describe the panel Efficiency.
std::optional< double > getFracClusterSize2(const Identifier &) const
void setProjectedTrack(Identifier, int)
std::unordered_map< Identifier, double > m_cachedStripTime
Used in Rdo -> Prd conversion.
std::unordered_map< Identifier, double > m_cachedGapEfficiency
Used to describe the gap efficiency.
std::unordered_map< Identifier, double > m_cachedFracDeadStrip
Used in digitization for efficiency calculation.
std::unordered_map< Identifier, double > m_cachedFracClusterSize2
Used for cluster size evaluation.
std::optional< int > getProjectedTrack(const Identifier &) const
std::optional< double > getFracDeadStrip(const Identifier &) const
void setGapEfficiency(Identifier, double)
~RpcCondDbData()=default
void setMeanClusterSize(Identifier, double)
std::unordered_map< Identifier, double > m_cachedMeanClusterSize
Used for cluster size evaluation.
void setFracClusterSize2(Identifier, double)
std::optional< double > getStripTime(const Identifier &) const
std::optional< double > getFracClusterSize1(const Identifier &) const
void setStripTime(Identifier, const std::vector< double > &)
std::optional< double > getGapEfficiency(const Identifier &) const
std::optional< double > getEfficiency(const Identifier &) const
std::optional< double > getMeanClusterSize(const Identifier &) const