ATLAS Offline Software
Loading...
Searching...
No Matches
IConditionsStorage.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MuonCalib__IConditionStorage_h
6#define MuonCalib__IConditionStorage_h
7
8// c - c++
9#include "map"
10#include "string"
11#include "vector"
12
13namespace coral {
14 class AttributeList;
15}
16
17namespace MuonCalib {
18
19 class SamplePoint;
20
22 public:
23 class TubeId {
24 public:
25 int ml, ly, tb;
26 TubeId(int id_num);
27 inline TubeId() : ml(0), ly(0), tb(0) {}
28 bool operator<(const TubeId &other) const;
29 bool operator>(const TubeId &other) const;
30 };
32 inline virtual ~IConditionsStorage() {}
33 // request rows from MDT_TUBE table
34 inline virtual const std::vector<std::string> &RowsFromMdtTubeTable() const { return m_empty; }
35 // request rows from MDT_TUBE_V table
36 inline virtual const std::vector<std::string> &RowsFromMdtTubeVTable() const { return m_empty; }
37 // request rows from MDT_TUBE_C table
38 inline virtual const std::vector<std::string> &RowsFromMdtTubeCTable() const { return m_empty; }
39
40 // call back function for every t0 chamber
41 virtual bool StoreT0Chamber(const int &chamber, const std::map<TubeId, coral::AttributeList> &rows) = 0;
42 // call back for rt
43 virtual bool StoreRtChamber(const int &chamber, const std::map<int, SamplePoint> &points) = 0;
44
45 private:
46 std::vector<std::string> m_empty;
47 };
48
49} // namespace MuonCalib
50
51#endif
bool operator>(const TubeId &other) const
bool operator<(const TubeId &other) const
virtual bool StoreT0Chamber(const int &chamber, const std::map< TubeId, coral::AttributeList > &rows)=0
virtual const std::vector< std::string > & RowsFromMdtTubeTable() const
virtual const std::vector< std::string > & RowsFromMdtTubeVTable() const
virtual const std::vector< std::string > & RowsFromMdtTubeCTable() const
std::vector< std::string > m_empty
virtual bool StoreRtChamber(const int &chamber, const std::map< int, SamplePoint > &points)=0
This class provides a sample point for the BaseFunctionFitter.
Definition SamplePoint.h:15
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.