ATLAS Offline Software
L1CaloPprConditions.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <string>
8 #include <sstream>
9 #include <iostream>
10 #include <iomanip>
11 
13  m_extBcidThreshold(0),
14  m_satBcidThreshLow(0),
15  m_satBcidThreshHigh(0),
16  m_satBcidLevel(0),
17  m_bcidEnergyRangeLow(0),
18  m_bcidEnergyRangeHigh(0),
19  m_firStartBit(0),
20  m_lutStrategy(0),
21  m_lutOffset(0),
22  m_lutSlope(0),
23  m_lutNoiseCut(0),
24  m_pedValue(0),
25  m_pedMean(0.)
26 {}
27 
28 L1CaloPprConditions::L1CaloPprConditions( unsigned short extBcidThreshold,
29  unsigned short satBcidThreshLow, unsigned short satBcidThreshHigh, unsigned short satBcidLevel,
30  unsigned short bcidEnergyRangeLow, unsigned short bcidEnergyRangeHigh, unsigned short firStartBit,
31  short int firCoeff1, short int firCoeff2, short int firCoeff3, short int firCoeff4, short int firCoeff5,
32  unsigned short lutStrategy, unsigned short lutOffset, unsigned short lutSlope, unsigned short lutNoiseCut,
33  unsigned int pedValue, float pedMean):
34 
35  m_extBcidThreshold(extBcidThreshold),
36  m_satBcidThreshLow(satBcidThreshLow),
37  m_satBcidThreshHigh(satBcidThreshHigh),
38  m_satBcidLevel(satBcidLevel),
39  m_bcidEnergyRangeLow(bcidEnergyRangeLow),
40  m_bcidEnergyRangeHigh(bcidEnergyRangeHigh),
41  m_firStartBit(firStartBit),
42  m_lutStrategy(lutStrategy),
43  m_lutOffset(lutOffset),
44  m_lutSlope(lutSlope),
45  m_lutNoiseCut(lutNoiseCut),
46  m_pedValue(pedValue),
47  m_pedMean(pedMean)
48 {
49  m_vFirCoefficients.reserve(5);
50  m_vFirCoefficients.push_back(firCoeff1);
51  m_vFirCoefficients.push_back(firCoeff2);
52  m_vFirCoefficients.push_back(firCoeff3);
53  m_vFirCoefficients.push_back(firCoeff4);
54  m_vFirCoefficients.push_back(firCoeff5);
55 }
56 
57 std::ostream& operator<<(std::ostream& output, const L1CaloPprConditions& r) {
58  output << "extBcidThreshold: " << r.m_extBcidThreshold << ", "
59  << "satBcidThreshLow: " << r.m_satBcidThreshLow << ", "
60  << "satBcidThreshHigh: " << r.m_satBcidThreshHigh << ", "
61  << "bcidEnergyRangeLow: " << r.m_bcidEnergyRangeLow << ", "
62  << "bcidEnergyRangeHigh: " << r.m_bcidEnergyRangeHigh << std::endl
63  << "firStartBit: " << r.m_firStartBit << ", "
64  << "firCoeff1: " << r.m_vFirCoefficients.at(0) << ", "
65  << "firCoeff2: " << r.m_vFirCoefficients.at(1) << ", "
66  << "firCoeff3: " << r.m_vFirCoefficients.at(2) << ", "
67  << "firCoeff4: " << r.m_vFirCoefficients.at(3) << ", "
68  << "firCoeff5: " << r.m_vFirCoefficients.at(4) << std::endl
69  << "lutStrategy: " << r.m_lutStrategy << ", "
70  << "lutOffset: " << r.m_lutOffset << ", "
71  << "lutSlope: " << r.m_lutSlope << ", "
72  << "lutNoiseCut: " << r.m_lutNoiseCut << ", "
73  << "pedValue: " << r.m_pedValue << ", "
74  << "pedMean: " << r.m_pedMean << std::endl;
75  return output;
76 }
beamspotman.r
def r
Definition: beamspotman.py:676
L1CaloPprConditions::m_vFirCoefficients
std::vector< short int > m_vFirCoefficients
Definition: L1CaloPprConditions.h:62
L1CaloPprConditions.h
L1CaloPprConditions
Transient conditions class for objects defined by the online framework and retrieved from COOL.
Definition: L1CaloPprConditions.h:23
merge.output
output
Definition: merge.py:17
operator<<
std::ostream & operator<<(std::ostream &output, const L1CaloPprConditions &r)
Definition: L1CaloPprConditions.cxx:57
L1CaloPprConditions::L1CaloPprConditions
L1CaloPprConditions()
Definition: L1CaloPprConditions.cxx:12