ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloRxGain.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <sstream>
8#include <iostream>
9
10// AttributeList
11#include "CoralBase/AttributeListSpecification.h"
13
14#include "GaudiKernel/MsgStream.h"
15
16
17//L1CaloRxGain::L1CaloRxGain():
18// m_channelId(0),
19// m_identifier(0),
20// m_recCrate(""),
21// m_recSlot(0),
22// m_recChannel(0),
23// m_gain(0),
24// m_comment("")
25//
26//{
27//}
28//
29//L1CaloRxGain::L1CaloRxGain( const L1CaloRxCoolChannelId& channelId, unsigned int identifier, std::string crate, unsigned int slot, unsigned int channel, int gain, std::string comment ):
30// m_channelId(channelId),
31// m_identifier(identifier),
32// m_recCrate(crate),
33// m_recSlot(slot),
34// m_recChannel(channel),
35// m_gain(gain),
36// m_comment(comment)
37//{
38//}
39
40
47
48L1CaloRxGain::L1CaloRxGain( unsigned int channelId, int gain, const std::string& comment ):
50 m_gain(gain),
52{
53}
54
61
62std::ostream& operator<<(std::ostream& output, const L1CaloRxGain& r) {
63 //output << "channelID: " << r.m_channelId.id() << ", " << "identifier: " << r.m_identifier<< ", " << "crate: " << r.m_recCrate<< ", " << "slot: " << r.m_recSlot<< ", " << "channel: " << r.m_recChannel << ", " << "gain: " << r.m_gain << ", " << "comment: " << r.m_comment.c_str();
64 output << "channelID: " << r.m_channelId.id() << ", " << "gain: " << r.m_gain << ", " << "comment: " << r.m_comment;
65 return output;
66}
std::ostream & operator<<(std::ostream &output, const L1CaloRxGain &r)
Encapsulates the ID of one Rx channel of conditions data in COOL, ie the ID of a row in a table.
L1CaloRxCoolChannelId m_channelId
int gain(void) const
L1CaloRxCoolChannelId channelId(void) const
const std::string & comment(void) const
std::string m_comment
int r
Definition globals.cxx:22