ATLAS Offline Software
Loading...
Searching...
No Matches
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
16
20
21#include <sstream>
22
23namespace 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) {
36 m_parName = 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
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
An STL vector of pointers that by default owns its pointed-to elements.
static Double_t ss
virtual void setParDefault(const std::string &)=0
virtual size_t getSize() const =0
virtual int check(unsigned int &index) const =0
virtual void setParFolder(const std::string &parFolder)
virtual std::string getParDataType() const =0
virtual void setParSGKey(const std::string &parSGKey)
int setBitInfo(int numBits=0, int offset=0)
virtual StatusCode recordFromSS(std::istringstream &ss, const unsigned int &index)=0
virtual void setParName(const std::string &parName)
virtual void setParCat(const std::string &parCat)
virtual void setSize(const unsigned int &size)=0
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition index.py:1