ATLAS Offline Software
CscCalibReportSlope.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 CSCCALIBDATA_CSCCALIBREPORTSLOPE_H
6 #define CSCCALIBDATA_CSCCALIBREPORTSLOPE_H
7 
8 /**************************************************************************
9 Package: MuonSpectrometer/MuonCalib/CscCalib/CscCalibData
10 Name: CscCalibReportSlope.h
11 Author: Caleb Parnell-Lampen
12 Date & Place: July 7, 2008, University of Arizona
13 
14 Holds info corresponding to the calibration process, such as applicable plots
15 and graphs. The monitoring system can pick out what graphs it wants.
16  ****************************************************************************/
19 
20 #include <map>
21 #include <set>
22 
23 class TProfile;
24 class TGraphErrors;
25 class TH1I;
26 
28 {
29 
30  public:
31 
32  /*class to record changed bit. As of 2008-09-08 is only used for changed
33  /dead chan status
34  struct bitChange
35  {
36  int hash;
37  bool newVal;
38  int pulserLevel;
39 
40  bitChange() {
41  hash = -9999;
42  newVal = true;
43  pulserLevel = -9999;
44  }
45 
46  };
47  */
48 
49  /* default constructor */
51 
52  /* full constructor */
53  CscCalibReportSlope(std::string label);
54 
56 
57  void setBitHists(DataVector<TH1I> * somePedAmpHists);
61  void setCalGraphs(DataVector<TGraphErrors> * someCalGraphs);
62 
63  /*setDeadChanges - set the changed dead channels
64  @param someDeadChanges - Pointer to map of changed channels and their new value
65 
66  void setDeadChanges(std::set<bitChange> * someDeadChannels);
67  */
68 
72  void setAmpProfs(std::map<int,TProfile*> * someAmpProfs);
73 
77  void setPulsedChambers(std::set<int> * somePulsedChambers);
78 
79  void setFitResults(std::vector<float> * fitResults);
80 
81 
83  const DataVector<TH1I> * getBitHists() const;
84 
86  const DataVector<TGraphErrors> * getCalGraphs() const;
87 
88  /*get the set of changes in dead channels*
89  const std::set<bitChange> * getDeadChanges() const;
90  */
91 
94  const std::map<int,TProfile*> * getAmpProfs() const;
95 
96 
98  const std::set<int> * getPulsedChambers() const;
99 
100 
102  const std::vector<float> * getFitResults() const;
103 
104 
105  private:
106 
107  //Pedestal amplitude histograms
109 
111  //status changes
112  //std::set<bitChange> * m_deadChanges;
113 
114  //Interesting TProfiles grouped by attenuation level
115  std::map<int,TProfile*> * m_ampProfs;
116 
117  std::set<int> * m_pulsedChambers;
118 
119  std::vector<float> * m_fitResults;
120 
121 
122 };
123 
124 #endif
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
CscCalibReportSlope::setPulsedChambers
void setPulsedChambers(std::set< int > *somePulsedChambers)
setPulsedChambers - set the pulsed chambers
Definition: CscCalibReportSlope.cxx:91
CscCalibReportSlope::getBitHists
const DataVector< TH1I > * getBitHists() const
Retrive bit histogram vector.
Definition: CscCalibReportSlope.cxx:53
CscCalibReportSlope::setFitResults
void setFitResults(std::vector< float > *fitResults)
Definition: CscCalibReportSlope.cxx:82
CscCalibReportSlope::getPulsedChambers
const std::set< int > * getPulsedChambers() const
getPulsedChambers - Contains the chambers that were pulsed.
Definition: CscCalibReportSlope.cxx:101
CscCalibReportSlope::m_fitResults
std::vector< float > * m_fitResults
Definition: CscCalibReportSlope.h:119
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
CscCalibReportSlope::CscCalibReportSlope
CscCalibReportSlope()
Definition: CscCalibReportSlope.cxx:19
DataVector< TH1I >
CscCalibReportSlope::getFitResults
const std::vector< float > * getFitResults() const
getFitReturns - Contains slope fit results.
Definition: CscCalibReportSlope.cxx:106
CscCalibReportSlope
Definition: CscCalibReportSlope.h:28
CscCalibReportSlope::setAmpProfs
void setAmpProfs(std::map< int, TProfile * > *someAmpProfs)
setAmpProfs - set the changed dead channels
Definition: CscCalibReportSlope.cxx:73
CscCalibReportSlope::m_calGraphs
DataVector< TGraphErrors > * m_calGraphs
Definition: CscCalibReportSlope.h:108
CscCalibReportSlope::m_ampProfs
std::map< int, TProfile * > * m_ampProfs
Definition: CscCalibReportSlope.h:115
CscCalibReportSlope::getAmpProfs
const std::map< int, TProfile * > * getAmpProfs() const
getAmpProfs - get the map of ampProfs stored.
Definition: CscCalibReportSlope.cxx:86
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
CscCalibReportSlope::setBitHists
void setBitHists(DataVector< TH1I > *somePedAmpHists)
Definition: CscCalibReportSlope.cxx:48
CscCalibReportBase.h
CscCalibReportSlope::~CscCalibReportSlope
~CscCalibReportSlope()
Definition: CscCalibReportSlope.cxx:37
CscCalibReportSlope::m_bitHists
DataVector< TH1I > * m_bitHists
Definition: CscCalibReportSlope.h:110
CscCalibReportBase
Definition: CscCalibReportBase.h:20
CscCalibReportSlope::setCalGraphs
void setCalGraphs(DataVector< TGraphErrors > *someCalGraphs)
setCalGraphs - Set the pedAmpHist vector.
Definition: CscCalibReportSlope.cxx:58
CscCalibReportSlope::m_pulsedChambers
std::set< int > * m_pulsedChambers
Definition: CscCalibReportSlope.h:117
CscCalibReportSlope::getCalGraphs
const DataVector< TGraphErrors > * getCalGraphs() const
Retrieve pedestal amplitude histogram vector.
Definition: CscCalibReportSlope.cxx:68