ATLAS Offline Software
CscCondDataCollectionBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CSCCONDDATACOLLECTIONBASE_H
6 #define CSCCONDDATACOLLECTIONBASE_H
7 
20 
21 #include <sstream>
22 
23 namespace MuonCalib {
25  {
26  public:
28 
30 
31 
32  virtual void reset() = 0;
33 
34  //Set user defined parameters
35  virtual void setParName( const std::string & parName) {
37  }
38  virtual void setParCat( const std::string & parCat) {
39  m_parCat = parCat;
40  }
41  virtual void setParSGKey( const std::string & parSGKey) {
42  m_parSGKey = parSGKey;
43  }
44  /*virtual void setParDataType(const std::string & dataType) {
45  m_parDataType = dataType;
46  }*/
47  virtual void setParFolder( const std::string & parFolder) {
48  m_parFolder = parFolder;
49  }
50 
51  virtual void setParDefault(const std::string & ) = 0;
52 
53  //Set info derived from user parameters
54  virtual void setNumCoolChan(const int & nc) {
55  m_numCoolChan = nc;
56  }
57 
58  //Reinitializes internal DataVector to point to empty entries, but
59  //keeps size the same (if size was set with setSize())
60  virtual void setSize(const unsigned int & size) = 0;
61 
62  //Get user defined parameters
63  const inline std::string & getParName() const { return m_parName; }
64  const inline std::string & getParCat() const { return m_parCat; }
65  const inline std::string & getParSGKey() const { return m_parSGKey; }
66  //const std::string & getParDataType() const { return m_parDataType; }
67  virtual std::string getParDataType() const =0;
68  const inline std::string & getParFolder() const { return m_parFolder; }
69 
70 
71  //get info derived from user defined parameters
72  const inline unsigned int & getNumCoolChan() const { return m_numCoolChan; }
73 
74  //Get size
75  virtual size_t getSize() const = 0;
76 
77  //record an entry to the DataVector
78  virtual StatusCode recordFromSS(std::istringstream & ss, const unsigned int & index) = 0;
79 
80  //check that there is a non-null pointer at index
81  virtual int check(unsigned int & index) const =0;
82 
83 
84  int setBitInfo(int numBits = 0, int offset =0 );
85 
86  int getNumBits() { return m_numBits;}
87  int getBitOffset() { return m_bitOffset;}
88 
89  protected:
90 
91  std::string m_parName;
92  std::string m_parFolder;
93  std::string m_parSGKey;
94  std::string m_parCat;
95  std::string m_parDataType;
96 
97  unsigned int m_numCoolChan;
98  unsigned int m_size;//used in derived class
99 
102  };
103 
104 
105 }
106 
107 //CLASS_DEF(MuonCalib::CscCondDataCollection, 1173850174, 1)
108 
109 #endif
MuonCalib::CscCondDataCollectionBase::reset
virtual void reset()=0
MuonCalib::CscCondDataCollectionBase::setBitInfo
int setBitInfo(int numBits=0, int offset=0)
Definition: CscCondDataCollectionBase.cxx:30
MuonCalib::CscCondDataCollectionBase::m_parDataType
std::string m_parDataType
Definition: CscCondDataCollectionBase.h:95
MuonCalib::CscCondDataCollectionBase::m_parFolder
std::string m_parFolder
Definition: CscCondDataCollectionBase.h:92
MuonCalib::CscCondDataCollectionBase::getNumCoolChan
const unsigned int & getNumCoolChan() const
Definition: CscCondDataCollectionBase.h:72
MuonCalib::CscCondDataCollectionBase::m_parName
std::string m_parName
Definition: CscCondDataCollectionBase.h:91
MuonCalib::CscCondDataCollectionBase::m_size
unsigned int m_size
Definition: CscCondDataCollectionBase.h:98
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
MuonCalib::CscCondDataCollectionBase::getParCat
const std::string & getParCat() const
Definition: CscCondDataCollectionBase.h:64
MuonCalib::CscCondDataCollectionBase::getNumBits
int getNumBits()
Definition: CscCondDataCollectionBase.h:86
index
Definition: index.py:1
MuonCalib::CscCondDataCollectionBase::m_bitOffset
int m_bitOffset
Definition: CscCondDataCollectionBase.h:101
MuonCalib::CscCondDataCollectionBase
Definition: CscCondDataCollectionBase.h:25
MuonCalib::CscCondDataCollectionBase::check
virtual int check(unsigned int &index) const =0
MuonCalib::CscCondDataCollectionBase::CscCondDataCollectionBase
CscCondDataCollectionBase()
Definition: CscCondDataCollectionBase.cxx:17
MuonCalib::CscCondDataCollectionBase::getParFolder
const std::string & getParFolder() const
Definition: CscCondDataCollectionBase.h:68
CscCondData.h
MuonCalib::CscCondDataCollectionBase::m_parSGKey
std::string m_parSGKey
Definition: CscCondDataCollectionBase.h:93
MuonCalib::CscCondDataCollectionBase::getParSGKey
const std::string & getParSGKey() const
Definition: CscCondDataCollectionBase.h:65
MuonCalib::CscCondDataCollectionBase::m_numBits
int m_numBits
Definition: CscCondDataCollectionBase.h:100
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonCalib::CscCondDataCollectionBase::getSize
virtual size_t getSize() const =0
MuonCalib::CscCondDataCollectionBase::~CscCondDataCollectionBase
virtual ~CscCondDataCollectionBase()
Definition: CscCondDataCollectionBase.cxx:28
MuonCalib::CscCondDataCollectionBase::getParDataType
virtual std::string getParDataType() const =0
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
beamspotnt.parName
list parName
Definition: bin/beamspotnt.py:1287
MuonCalib::CscCondDataCollectionBase::m_numCoolChan
unsigned int m_numCoolChan
Definition: CscCondDataCollectionBase.h:97
MuonCalib::CscCondDataCollectionBase::m_parCat
std::string m_parCat
Definition: CscCondDataCollectionBase.h:94
MuonCalib::CscCondDataCollectionBase::setParSGKey
virtual void setParSGKey(const std::string &parSGKey)
Definition: CscCondDataCollectionBase.h:41
MuonCalib::CscCondDataCollectionBase::getParName
const std::string & getParName() const
Definition: CscCondDataCollectionBase.h:63
MuonCalib::CscCondDataCollectionBase::setNumCoolChan
virtual void setNumCoolChan(const int &nc)
Definition: CscCondDataCollectionBase.h:54
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
MuonCalib::CscCondDataCollectionBase::setParFolder
virtual void setParFolder(const std::string &parFolder)
Definition: CscCondDataCollectionBase.h:47
MuonCalib::CscCondDataCollectionBase::setParName
virtual void setParName(const std::string &parName)
Definition: CscCondDataCollectionBase.h:35
MuonCalib::CscCondDataCollectionBase::getBitOffset
int getBitOffset()
Definition: CscCondDataCollectionBase.h:87
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
MuonCalib::CscCondDataCollectionBase::setParDefault
virtual void setParDefault(const std::string &)=0
MuonCalib::CscCondDataCollectionBase::setSize
virtual void setSize(const unsigned int &size)=0
MuonCalib::CscCondDataCollectionBase::recordFromSS
virtual StatusCode recordFromSS(std::istringstream &ss, const unsigned int &index)=0
MuonCalib::CscCondDataCollectionBase::setParCat
virtual void setParCat(const std::string &parCat)
Definition: CscCondDataCollectionBase.h:38
plotBeamSpotMon.nc
int nc
Definition: plotBeamSpotMon.py:83