|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MUONCALIB_RTDATAFROMFILE_H
6 #define MUONCALIB_RTDATAFROMFILE_H
12 #include "GaudiKernel/MsgStream.h"
35 if (regionId >= (
unsigned int)
m_rts) {
37 log << MSG::WARNING <<
"getRt() <regionId out of range> " << regionId <<
" size " <<
m_rts <<
endmsg;
52 if (regionId < 0 || regionId >= (
int)
m_rts) {
54 log << MSG::WARNING <<
"addRt() <regionId out of range> " << regionId <<
" size " <<
m_rts <<
endmsg;
59 log << MSG::WARNING <<
"addRt() <rt already set>" <<
endmsg;
72 std::istream&
read(std::istream& is);
73 std::ostream&
write(std::ostream&
os,
int region)
const;
74 std::ostream&
write(std::ostream&
os)
const;
75 void write_forDB(FILE* frt, FILE* frtt, FILE* frtr, FILE* frts,
int region)
const;
76 void write_forDB(FILE* frt, FILE* frtt, FILE* frtr, FILE* frts)
const;
char data[hepevt_bytes_allocation_ATLAS]
singleton-like access to IMessageSvc via open function and helper
RtData_t_r_reso RtRelation
std::ostream & write(std::ostream &os, int region) const
Manages the I/O of the Rt realtions from/to file.
int m_major_version
format version
unsigned int nRts() const
return number of rt relations
RtRelation * getRt(unsigned int regionId) const
retrieve rt-relation for a give regionId
IMessageSvc * getMessageSvc(bool quiet=false)
std::vector< RtRelation * > RtRelations
std::istream & operator>>(std::istream &is, MuonCalib::RtDataFromFile &data)
std::ostream & operator<<(std::ostream &os, const MuonCalib::RtDataFromFile &data)
bool addRt(int regionId, RtRelation *rt, const RtFullInfo *info)
RtRelations m_rtRelations
rt relations
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
bool addRt(int regionId, RtRelation *rt)
RtDataFromFile takes ownership of rt.
addiitonal information used in validation of a rt-relation
unsigned int m_rts
total number of regions
void setNRts(unsigned int nrts)
set total number of regions
~RtDataFromFile()=default
void write_forDB(FILE *frt, FILE *frtt, FILE *frtr, FILE *frts, int region) const
void setVersion(int major, int minor)
std::istream & read(std::istream &is)
std::vector< const RtFullInfo * > m_fullInfo
Represents an Rt relation in the form of a set of (time,radius,resolution) points.