#include <HcalPedestalAnalysis.h>
Public Member Functions | |
int | done (const HcalPedestals *fInputPedestals, const HcalPedestalWidths *fInputWidths, HcalPedestals *fOutputPedestals, HcalPedestalWidths *fOutputWidths) |
HcalPedestalAnalysis (const edm::ParameterSet &ps) | |
Constructor. More... | |
void | processEvent (const HBHEDigiCollection &hbhe, const HODigiCollection &ho, const HFDigiCollection &hf, const HcalDbService &cond) |
void | SampleAnalysis () |
void | setup (const std::string &m_outputFileROOT) |
~HcalPedestalAnalysis () | |
Destructor. More... | |
Static Public Member Functions | |
static int | HcalPedVal (int nstat[4], const HcalPedestals *fRefPedestals, const HcalPedestalWidths *fRefPedestalWidths, HcalPedestals *fRawPedestals, HcalPedestalWidths *fRawPedestalWidths, HcalPedestals *fValPedestals, HcalPedestalWidths *fValPedestalWidths) |
Private Types | |
typedef std::pair< TH1F *, std::pair< std::map< int, std::vector< double > >, std::vector< TH1F * > > > | PEDBUNCH |
Private Member Functions | |
void | AllChanHists (const HcalDetId detid, const HcalQIESample &qie0, const HcalQIESample &qie1, const HcalQIESample &qie2, const HcalQIESample &qie3, const HcalQIESample &qie4, const HcalQIESample &qie5, std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT) |
void | GetPedConst (std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT, TH1F *PedMeans, TH1F *PedWidths) |
void | per2CapsHists (int flag, int id, const HcalDetId detid, const HcalQIESample &qie1, const HcalQIESample &qie2, std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT, const HcalDbService &cond) |
void | Trendings (std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT, TH1F *Chi2, TH1F *CapidAverage, TH1F *CapidChi2) |
Static Private Attributes | |
static const int | fitflag =0 |
Definition at line 37 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 89 of file HcalPedestalAnalysis.h.
HcalPedestalAnalysis::HcalPedestalAnalysis | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 16 of file HcalPedestalAnalysis.cc.
References gather_cfg::cout, evt, fTopology, edm::ParameterSet::getUntrackedParameter(), hbHists, hfHists, hoHists, i, relval_steps::k, HcalTopologyMode::LHC, m_AllPedsOK, m_coder, m_endTS, m_file, m_hiSaveflag, m_nevtsample, m_outputFileMean, m_outputFileROOT, m_outputFileWidth, m_pedsinADC, m_pedValflag, m_shape, m_startTS, m_stat, sample, and state.
HcalPedestalAnalysis::~HcalPedestalAnalysis | ( | ) |
Destructor.
Definition at line 85 of file HcalPedestalAnalysis.cc.
References _meot, hbHists, hfHists, hoHists, and i.
|
private |
Definition at line 319 of file HcalPedestalAnalysis.cc.
References _meot, and HcalQIESample::adc().
Referenced by processEvent().
int HcalPedestalAnalysis::done | ( | const HcalPedestals * | fInputPedestals, |
const HcalPedestalWidths * | fInputWidths, | ||
HcalPedestals * | fOutputPedestals, | ||
HcalPedestalWidths * | fOutputWidths | ||
) |
Definition at line 506 of file HcalPedestalAnalysis.cc.
References gather_cfg::cout, evt, fRawPedestals, fRawPedestalWidths, fRefPedestals, fRefPedestalWidths, fTopology, fValPedestals, fValPedestalWidths, hbHists, HcalPedVal(), hfHists, hoHists, i, m_AllPedsOK, m_file, m_nevtsample, m_outputFileROOT, m_pedsinADC, m_pedValflag, m_stat, SampleAnalysis(), and Trendings().
|
private |
Definition at line 354 of file HcalPedestalAnalysis.cc.
References _meot, HcalCondObjectContainer< Item >::addValues(), cond::rpcobgas::detid, fitflag, fRawPedestals, fRawPedestalWidths, i, j, m_endTS, m_hiSaveflag, m_nevtsample, m_pedsinADC, m_startTS, m_stat, HcalPedestalWidth::setSigma(), and mathSSE::sqrt().
Referenced by SampleAnalysis().
|
static |
Definition at line 753 of file HcalPedestalAnalysis.cc.
References HcalCondObjectContainer< Item >::addValues(), ecal_dqm_sourceclient-live_cfg::cerr, cond::rpcobgas::detid, HcalCondObjectContainer< Item >::getAllChannels(), HcalPedestalWidth::getSigma(), HcalPedestal::getValue(), HcalCondObjectContainer< Item >::getValues(), HcalForward, i, HcalPedestalWidth::setSigma(), mathSSE::sqrt(), and create_public_lumi_plots::width.
Referenced by done().
|
private |
Definition at line 214 of file HcalPedestalAnalysis.cc.
References _meot, HcalQIESample::adc(), HcalQIESample::capid(), HcalQIECoder::charge(), HcalDetId::depth(), cond::rpcobgas::detid, evt, archive::flag, HcalDbService::getHcalCoder(), HcalDbService::getHcalShape(), hbHists, hfHists, hoHists, i, HcalDetId::ieta(), edm::eventsetup::heterocontainer::insert(), HcalDetId::iphi(), m_nevtsample, m_pedsinADC, mergeVDriftHistosByStation::name, and state.
Referenced by processEvent().
void HcalPedestalAnalysis::processEvent | ( | const HBHEDigiCollection & | hbhe, |
const HODigiCollection & | ho, | ||
const HFDigiCollection & | hf, | ||
const HcalDbService & | cond | ||
) |
Definition at line 125 of file HcalPedestalAnalysis.cc.
References AllChanHists(), edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), evt, evt_curr, archive::flag, HcalDbService::getHcalCoder(), HcalDbService::getHcalShape(), hbHists, hfHists, hoHists, i, HBHEDataFrame::id(), HFDataFrame::id(), HODataFrame::id(), j, relval_steps::k, m_coder, m_endTS, m_nevtsample, m_shape, m_startTS, per2CapsHists(), HBHEDataFrame::sample(), HFDataFrame::sample(), HODataFrame::sample(), sample, SampleAnalysis(), HFDataFrame::size(), HBHEDataFrame::size(), HODataFrame::size(), edm::SortedCollection< T, SORT >::size(), and state.
void HcalPedestalAnalysis::SampleAnalysis | ( | ) |
Definition at line 331 of file HcalPedestalAnalysis.cc.
References GetPedConst(), hbHists, hfHists, hoHists, m_file, and sample.
Referenced by done(), and processEvent().
void HcalPedestalAnalysis::setup | ( | const std::string & | m_outputFileROOT | ) |
Definition at line 113 of file HcalPedestalAnalysis.cc.
References m_file.
|
private |
Definition at line 598 of file HcalPedestalAnalysis.cc.
References _meot, begin, HcalDetId::depth(), cond::rpcobgas::detid, i, HcalDetId::ieta(), HcalDetId::iphi(), j, m_nevtsample, mergeVDriftHistosByStation::name, sample, and findQualityFiles::size.
Referenced by done().
Definition at line 124 of file HcalPedestalAnalysis.h.
Referenced by AllChanHists(), GetPedConst(), per2CapsHists(), Trendings(), and ~HcalPedestalAnalysis().
TH1F* HcalPedestalAnalysis::ALLPEDS |
Definition at line 117 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CAPID_AVERAGE |
Definition at line 121 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CAPID_CHI2 |
Definition at line 122 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CHI2 |
Definition at line 120 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 131 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), per2CapsHists(), and processEvent().
|
private |
Definition at line 133 of file HcalPedestalAnalysis.h.
Referenced by processEvent().
|
staticprivate |
Definition at line 138 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst().
|
private |
Definition at line 127 of file HcalPedestalAnalysis.h.
Referenced by done(), and GetPedConst().
|
private |
Definition at line 128 of file HcalPedestalAnalysis.h.
Referenced by done(), and GetPedConst().
|
private |
Definition at line 125 of file HcalPedestalAnalysis.h.
Referenced by done().
|
private |
Definition at line 126 of file HcalPedestalAnalysis.h.
Referenced by done().
|
private |
Definition at line 136 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 129 of file HcalPedestalAnalysis.h.
Referenced by done().
|
private |
Definition at line 130 of file HcalPedestalAnalysis.h.
Referenced by done().
struct { ... } HcalPedestalAnalysis::hbHists |
Referenced by done(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), SampleAnalysis(), and ~HcalPedestalAnalysis().
struct { ... } HcalPedestalAnalysis::hfHists |
Referenced by done(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), SampleAnalysis(), and ~HcalPedestalAnalysis().
struct { ... } HcalPedestalAnalysis::hoHists |
Referenced by done(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), SampleAnalysis(), and ~HcalPedestalAnalysis().
|
private |
Definition at line 111 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 114 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 106 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 99 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), SampleAnalysis(), and setup().
|
private |
Definition at line 109 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), and HcalPedestalAnalysis().
|
private |
Definition at line 104 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 107 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), and Trendings().
|
private |
Definition at line 102 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis().
|
private |
Definition at line 101 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 103 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis().
|
private |
Definition at line 108 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), HcalPedestalAnalysis(), and per2CapsHists().
|
private |
Definition at line 110 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 113 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 105 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 134 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and HcalPedestalAnalysis().
TH1F* HcalPedestalAnalysis::PEDMEAN |
Definition at line 119 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::PEDRMS |
Definition at line 118 of file HcalPedestalAnalysis.h.
Definition at line 116 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 132 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), svgfig.Curve::Path(), processEvent(), SampleAnalysis(), and Trendings().
|
private |
Definition at line 135 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), per2CapsHists(), and processEvent().