ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
CscCalibReportSlope Class Reference

#include <CscCalibReportSlope.h>

Inheritance diagram for CscCalibReportSlope:
Collaboration diagram for CscCalibReportSlope:

Public Member Functions

 CscCalibReportSlope ()
 
 CscCalibReportSlope (std::string label)
 
 ~CscCalibReportSlope ()
 
void setBitHists (DataVector< TH1I > *somePedAmpHists)
 
void setCalGraphs (DataVector< TGraphErrors > *someCalGraphs)
 setCalGraphs - Set the pedAmpHist vector. More...
 
void setAmpProfs (std::map< int, TProfile * > *someAmpProfs)
 setAmpProfs - set the changed dead channels More...
 
void setPulsedChambers (std::set< int > *somePulsedChambers)
 setPulsedChambers - set the pulsed chambers More...
 
void setFitResults (std::vector< float > *fitResults)
 
const DataVector< TH1I > * getBitHists () const
 Retrive bit histogram vector. More...
 
const DataVector< TGraphErrors > * getCalGraphs () const
 Retrieve pedestal amplitude histogram vector. More...
 
const std::map< int, TProfile * > * getAmpProfs () const
 getAmpProfs - get the map of ampProfs stored. More...
 
const std::set< int > * getPulsedChambers () const
 getPulsedChambers - Contains the chambers that were pulsed. More...
 
const std::vector< float > * getFitResults () const
 getFitReturns - Contains slope fit results. More...
 
void setLabel (const std::string &label)
 
const std::string & getLabel () const
 

Private Attributes

DataVector< TGraphErrors > * m_calGraphs
 
DataVector< TH1I > * m_bitHists
 
std::map< int, TProfile * > * m_ampProfs
 
std::set< int > * m_pulsedChambers
 
std::vector< float > * m_fitResults
 
std::string m_label
 

Detailed Description

Definition at line 27 of file CscCalibReportSlope.h.

Constructor & Destructor Documentation

◆ CscCalibReportSlope() [1/2]

CscCalibReportSlope::CscCalibReportSlope ( )

Definition at line 19 of file CscCalibReportSlope.cxx.

19  :
20  m_calGraphs(nullptr),
21  m_bitHists(nullptr),
22  m_ampProfs(nullptr),
23  m_pulsedChambers(nullptr),
24  m_fitResults(nullptr)
25 { }

◆ CscCalibReportSlope() [2/2]

CscCalibReportSlope::CscCalibReportSlope ( std::string  label)

Definition at line 28 of file CscCalibReportSlope.cxx.

28  :
30  m_calGraphs(nullptr),
31  m_bitHists(nullptr),
32  m_ampProfs(nullptr),
33  m_pulsedChambers(nullptr),
34  m_fitResults(nullptr)
35 { }

◆ ~CscCalibReportSlope()

CscCalibReportSlope::~CscCalibReportSlope ( )

Definition at line 37 of file CscCalibReportSlope.cxx.

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 }

Member Function Documentation

◆ getAmpProfs()

const std::map< int, TProfile * > * CscCalibReportSlope::getAmpProfs ( ) const

getAmpProfs - get the map of ampProfs stored.

These show the amplitudes each channel showed at a given pulserLevel

Definition at line 86 of file CscCalibReportSlope.cxx.

87 {
88  return m_ampProfs;
89 }

◆ getBitHists()

const DataVector< TH1I > * CscCalibReportSlope::getBitHists ( ) const

Retrive bit histogram vector.

Definition at line 53 of file CscCalibReportSlope.cxx.

54 {
55  return m_bitHists;
56 }

◆ getCalGraphs()

const DataVector< TGraphErrors > * CscCalibReportSlope::getCalGraphs ( ) const

Retrieve pedestal amplitude histogram vector.

Definition at line 68 of file CscCalibReportSlope.cxx.

69 {
70  return m_calGraphs;
71 }

◆ getFitResults()

const std::vector< float > * CscCalibReportSlope::getFitResults ( ) const

getFitReturns - Contains slope fit results.

Definition at line 106 of file CscCalibReportSlope.cxx.

106  {
107  return m_fitResults;
108 }

◆ getLabel()

const std::string & CscCalibReportBase::getLabel ( ) const
inherited

Definition at line 23 of file CscCalibReportBase.cxx.

24 {
25  return m_label;
26 }

◆ getPulsedChambers()

const std::set< int > * CscCalibReportSlope::getPulsedChambers ( ) const

getPulsedChambers - Contains the chambers that were pulsed.

Stored as hash Ids

Definition at line 101 of file CscCalibReportSlope.cxx.

102 {
103  return m_pulsedChambers;
104 }

◆ setAmpProfs()

void CscCalibReportSlope::setAmpProfs ( std::map< int, TProfile * > *  someAmpProfs)

setAmpProfs - set the changed dead channels

Parameters
someAmpProfs- Pointer to map of changed channels and their new value

Definition at line 73 of file CscCalibReportSlope.cxx.

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 }

◆ setBitHists()

void CscCalibReportSlope::setBitHists ( DataVector< TH1I > *  somePedAmpHists)

Definition at line 48 of file CscCalibReportSlope.cxx.

49 {
50  m_bitHists = someBitHists;
51 }

◆ setCalGraphs()

void CscCalibReportSlope::setCalGraphs ( DataVector< TGraphErrors > *  someCalGraphs)

setCalGraphs - Set the pedAmpHist vector.


Parameters
someCalGraphs- Pointer to DataVector of calibration graphs. Takes ownership.

Definition at line 58 of file CscCalibReportSlope.cxx.

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 }

◆ setFitResults()

void CscCalibReportSlope::setFitResults ( std::vector< float > *  fitResults)

Definition at line 82 of file CscCalibReportSlope.cxx.

82  {
83  m_fitResults = someFitResults;
84 }

◆ setLabel()

void CscCalibReportBase::setLabel ( const std::string &  label)
inherited

Definition at line 18 of file CscCalibReportBase.cxx.

19 {
20  m_label = aLabel;
21 }

◆ setPulsedChambers()

void CscCalibReportSlope::setPulsedChambers ( std::set< int > *  somePulsedChambers)

setPulsedChambers - set the pulsed chambers

Parameters
somePulsedChambers- Pointer to set of pulsed chambers. Takes ownership.

Definition at line 91 of file CscCalibReportSlope.cxx.

92 {
93  if(m_pulsedChambers) {
94  MsgStream log(Athena::getMessageSvc(),"CscCalibReportSlope");
95  log<<MSG::WARNING<<"Writing over previously existing pulsed chambers!"<<endmsg;
96  }
97  m_pulsedChambers = somePulsedChambers;
98 }

Member Data Documentation

◆ m_ampProfs

std::map<int,TProfile*>* CscCalibReportSlope::m_ampProfs
private

Definition at line 115 of file CscCalibReportSlope.h.

◆ m_bitHists

DataVector<TH1I>* CscCalibReportSlope::m_bitHists
private

Definition at line 110 of file CscCalibReportSlope.h.

◆ m_calGraphs

DataVector<TGraphErrors>* CscCalibReportSlope::m_calGraphs
private

Definition at line 108 of file CscCalibReportSlope.h.

◆ m_fitResults

std::vector<float>* CscCalibReportSlope::m_fitResults
private

Definition at line 119 of file CscCalibReportSlope.h.

◆ m_label

std::string CscCalibReportBase::m_label
privateinherited

Definition at line 49 of file CscCalibReportBase.h.

◆ m_pulsedChambers

std::set<int>* CscCalibReportSlope::m_pulsedChambers
private

Definition at line 117 of file CscCalibReportSlope.h.


The documentation for this class was generated from the following files:
CscCalibReportBase::CscCalibReportBase
CscCalibReportBase()
Definition: CscCalibReportBase.cxx:9
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
CscCalibReportBase::m_label
std::string m_label
Definition: CscCalibReportBase.h:49
CscCalibReportSlope::m_fitResults
std::vector< float > * m_fitResults
Definition: CscCalibReportSlope.h:119
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CscCalibReportSlope::m_calGraphs
DataVector< TGraphErrors > * m_calGraphs
Definition: CscCalibReportSlope.h:108
CscCalibReportSlope::m_ampProfs
std::map< int, TProfile * > * m_ampProfs
Definition: CscCalibReportSlope.h:115
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CscCalibReportSlope::m_bitHists
DataVector< TH1I > * m_bitHists
Definition: CscCalibReportSlope.h:110
CscCalibReportSlope::m_pulsedChambers
std::set< int > * m_pulsedChambers
Definition: CscCalibReportSlope.h:117