ATLAS Offline Software
Loading...
Searching...
No Matches
CscCalibReportSlope.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include "GaudiKernel/MsgStream.h"
9
10#include "TGraphErrors.h"
11#include "TH1I.h"
12#include "TProfile.h"
13#include <map>
14#include <set>
15#include <string>
16#include <utility>
17
18/* default constructor */
20 m_calGraphs(nullptr),
21 m_bitHists(nullptr),
22 m_ampProfs(nullptr),
23 m_pulsedChambers(nullptr),
24 m_fitResults(nullptr)
25{ }
26
27/* full constructor */
30 m_calGraphs(nullptr),
31 m_bitHists(nullptr),
32 m_ampProfs(nullptr),
33 m_pulsedChambers(nullptr),
34 m_fitResults(nullptr)
35{ }
36
38{
39 //Datavector, so it will delete its own contents
40 delete m_calGraphs;
41 delete m_bitHists;
42 delete m_ampProfs;
43 delete m_pulsedChambers;
44 delete m_fitResults;
45}
46
47
49{
50 m_bitHists = someBitHists;
51}
52
57
59{
60 if(m_calGraphs) {
61 MsgStream log(Athena::getMessageSvc(),"CscCalibReportSlope");
62 log<<MSG::WARNING<<"Writing over already existing calGraphs in report!"<<endmsg;
63 }
64
65 m_calGraphs = someCalGraphs;
66}
67
72
73void CscCalibReportSlope::setAmpProfs( std::map<int,TProfile *> * someAmpProfs )
74{
75 if(m_ampProfs) {
76 MsgStream log(Athena::getMessageSvc(),"CscCalibReportSlope");
77 log<<MSG::WARNING<<"writing over already existing dead changes in report!"<<endmsg;
78 }
79 m_ampProfs = someAmpProfs;
80}
81
82void CscCalibReportSlope::setFitResults( std::vector<float> * someFitResults){
83 m_fitResults = someFitResults;
84}
85
86const std::map<int,TProfile*> * CscCalibReportSlope::getAmpProfs() const
87{
88 return m_ampProfs;
89}
90
91void CscCalibReportSlope::setPulsedChambers( std::set<int> * somePulsedChambers)
92{
94 MsgStream log(Athena::getMessageSvc(),"CscCalibReportSlope");
95 log<<MSG::WARNING<<"Writing over previously existing pulsed chambers!"<<endmsg;
96 }
97 m_pulsedChambers = somePulsedChambers;
98}
99
100
101const std::set<int> * CscCalibReportSlope::getPulsedChambers() const
102{
103 return m_pulsedChambers;
104}
105
106const std::vector<float> * CscCalibReportSlope::getFitResults() const{
107 return m_fitResults;
108}
109
#define endmsg
An STL vector of pointers that by default owns its pointed-to elements.
void setBitHists(DataVector< TH1I > *somePedAmpHists)
std::vector< float > * m_fitResults
std::set< int > * m_pulsedChambers
const DataVector< TH1I > * getBitHists() const
Retrieve bit histogram vector.
void setFitResults(std::vector< float > *fitResults)
DataVector< TH1I > * m_bitHists
std::map< int, TProfile * > * m_ampProfs
void setAmpProfs(std::map< int, TProfile * > *someAmpProfs)
setAmpProfs - set the changed dead channels
const std::set< int > * getPulsedChambers() const
getPulsedChambers - Contains the chambers that were pulsed.
const std::map< int, TProfile * > * getAmpProfs() const
getAmpProfs - get the map of ampProfs stored.
void setCalGraphs(DataVector< TGraphErrors > *someCalGraphs)
setCalGraphs - Set the pedAmpHist vector.
DataVector< TGraphErrors > * m_calGraphs
const std::vector< float > * getFitResults() const
getFitReturns - Contains slope fit results.
const DataVector< TGraphErrors > * getCalGraphs() const
Retrieve pedestal amplitude histogram vector.
void setPulsedChambers(std::set< int > *somePulsedChambers)
setPulsedChambers - set the pulsed chambers
Derived DataVector<T>.
Definition DataVector.h:795
singleton-like access to IMessageSvc via open function and helper
std::string label(const std::string &format, int i)
Definition label.h:19
IMessageSvc * getMessageSvc(bool quiet=false)
STL namespace.