ATLAS Offline Software
Loading...
Searching...
No Matches
RtData_t_r_reso.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCALIB_RTDATA_T_R_RESO_H
6#define MUONCALIB_RTDATA_T_R_RESO_H
7
8#include <iostream>
9#include <vector>
10
11namespace MuonCalib {
12
17 public:
18 typedef std::vector<double> DataVec;
19
20 public:
22
23 bool isValid() const { return m_isValid; }
24 void isValid(bool f) { m_isValid = f; }
25
26 unsigned int regionId() const { return m_regionId; }
27
28 const DataVec& times() const { return m_timeVec; }
29 const DataVec& radii() const { return m_radiusVec; }
30 const DataVec& resolution() const { return m_resoVec; }
31
32 void setRegionId(int id) { m_regionId = id; }
33
35 bool addEntry(double t, double r, double reso) {
36 m_timeVec.push_back(t);
37 m_radiusVec.push_back(r);
38 m_resoVec.push_back(reso);
39 m_npars = m_timeVec.size();
40 return true;
41 }
42
43 void reset();
44 std::istream& read(std::istream& is);
45 std::ostream& write(std::ostream& os) const;
46 void write_forDB(FILE* frtt, FILE* frtr, FILE* frts) const;
47
48 private:
50
51 unsigned int m_npars;
53
57 };
58
59 std::istream& operator>>(std::istream& is, RtData_t_r_reso& data);
60 std::ostream& operator<<(std::ostream& os, const RtData_t_r_reso& data);
61
62} // namespace MuonCalib
63
64#endif
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
Represents an Rt relation in the form of a set of (time,radius,resolution) points.
std::ostream & write(std::ostream &os) const
const DataVec & radii() const
void write_forDB(FILE *frtt, FILE *frtr, FILE *frts) const
std::vector< double > DataVec
bool addEntry(double t, double r, double reso)
returns falls if the current time is smaller then the previous one
const DataVec & times() const
unsigned int regionId() const
const DataVec & resolution() const
std::istream & read(std::istream &is)
int r
Definition globals.cxx:22
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
std::istream & operator>>(std::istream &is, RtFullInfo &data)
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)