ATLAS Offline Software
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 
11 namespace 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:
49  bool m_isValid;
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
beamspotman.r
def r
Definition: beamspotman.py:676
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
MuonCalib::RtData_t_r_reso::m_timeVec
DataVec m_timeVec
Definition: RtData_t_r_reso.h:54
MuonCalib::RtData_t_r_reso::write
std::ostream & write(std::ostream &os) const
Definition: RtData_t_r_reso.cxx:53
MuonCalib::RtData_t_r_reso::write_forDB
void write_forDB(FILE *frtt, FILE *frtr, FILE *frts) const
Definition: RtData_t_r_reso.cxx:67
MuonCalib::RtData_t_r_reso::regionId
unsigned int regionId() const
Definition: RtData_t_r_reso.h:26
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MuonCalib::RtData_t_r_reso::times
const DataVec & times() const
Definition: RtData_t_r_reso.h:28
MuonCalib::RtData_t_r_reso::isValid
void isValid(bool f)
Definition: RtData_t_r_reso.h:24
MuonCalib::RtData_t_r_reso::m_radiusVec
DataVec m_radiusVec
Definition: RtData_t_r_reso.h:55
MuonCalib::RtData_t_r_reso::m_resoVec
DataVec m_resoVec
Definition: RtData_t_r_reso.h:56
MuonCalib::operator<<
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)
Definition: RtFullInfo.cxx:13
MuonCalib::RtData_t_r_reso::isValid
bool isValid() const
Definition: RtData_t_r_reso.h:23
MuonCalib::RtData_t_r_reso::m_isValid
bool m_isValid
Definition: RtData_t_r_reso.h:49
MuonCalib::RtData_t_r_reso::radii
const DataVec & radii() const
Definition: RtData_t_r_reso.h:29
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
hist_file_dump.f
f
Definition: hist_file_dump.py:135
MuonCalib::RtData_t_r_reso::addEntry
bool addEntry(double t, double r, double reso)
returns falls if the current time is smaller then the previous one
Definition: RtData_t_r_reso.h:35
MuonCalib::operator>>
std::istream & operator>>(std::istream &is, RtFullInfo &data)
Definition: RtFullInfo.cxx:11
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
MuonCalib::RtData_t_r_reso::RtData_t_r_reso
RtData_t_r_reso()
Definition: RtData_t_r_reso.h:21
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
MuonCalib::RtData_t_r_reso::setRegionId
void setRegionId(int id)
Definition: RtData_t_r_reso.h:32
MuonCalib::RtData_t_r_reso::reset
void reset()
Definition: RtData_t_r_reso.cxx:90
MuonCalib::RtData_t_r_reso::resolution
const DataVec & resolution() const
Definition: RtData_t_r_reso.h:30
MuonCalib::RtData_t_r_reso::m_npars
unsigned int m_npars
Definition: RtData_t_r_reso.h:51
MuonCalib::RtData_t_r_reso::m_regionId
int m_regionId
Definition: RtData_t_r_reso.h:52
MuonCalib::RtData_t_r_reso
Represents an Rt relation in the form of a set of (time,radius,resolution) points.
Definition: RtData_t_r_reso.h:16
MuonCalib::RtData_t_r_reso::DataVec
std::vector< double > DataVec
Definition: RtData_t_r_reso.h:18
MuonCalib::RtData_t_r_reso::read
std::istream & read(std::istream &is)
Definition: RtData_t_r_reso.cxx:16