#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, edm::ParameterSet::getUntrackedParameter(), hbHists, hfHists, hoHists, i, gen::k, m_AllPedsOK, m_endTS, m_file, m_hiSaveflag, m_nevtsample, m_outputFileMean, m_outputFileROOT, m_outputFileWidth, m_pedsinADC, m_pedValflag, m_startTS, m_stat, sample, and state.
HcalPedestalAnalysis::~HcalPedestalAnalysis | ( | ) |
Destructor.
Definition at line 80 of file HcalPedestalAnalysis.cc.
References _meot, hbHists, hfHists, hoHists, and i.
|
private |
Definition at line 314 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 501 of file HcalPedestalAnalysis.cc.
References gather_cfg::cout, evt, fRawPedestals, fRawPedestalWidths, fRefPedestals, fRefPedestalWidths, fValPedestals, fValPedestalWidths, hbHists, HcalPedVal(), hfHists, hoHists, i, m_AllPedsOK, m_file, m_nevtsample, m_outputFileROOT, m_pedsinADC, m_pedValflag, m_stat, SampleAnalysis(), and Trendings().
Referenced by HcalPedestalAnalyzer::endJob().
|
private |
Definition at line 349 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 748 of file HcalPedestalAnalysis.cc.
References HcalCondObjectContainer< Item >::addValues(), dtNoiseDBValidation_cfg::cerr, cond::rpcobgas::detid, HcalCondObjectContainer< Item >::getAllChannels(), HcalPedestalWidth::getSigma(), HcalPedestal::getValue(), HcalCondObjectContainer< Item >::getValues(), HcalForward, i, HcalPedestalWidth::setSigma(), mathSSE::sqrt(), and tablePrinter::width.
Referenced by done(), and main().
|
private |
Definition at line 209 of file HcalPedestalAnalysis.cc.
References _meot, HcalQIESample::adc(), combineCards::bins, HcalQIESample::capid(), HcalQIECoder::charge(), HcalDetId::depth(), cond::rpcobgas::detid, evt, 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 120 of file HcalPedestalAnalysis.cc.
References AllChanHists(), edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), evt, evt_curr, HcalDbService::getHcalCoder(), HcalDbService::getHcalShape(), hbHists, hfHists, hoHists, i, HBHEDataFrame::id(), HFDataFrame::id(), HODataFrame::id(), j, gen::k, m_coder, m_endTS, m_nevtsample, m_shape, m_startTS, per2CapsHists(), HFDataFrame::sample(), HBHEDataFrame::sample(), HODataFrame::sample(), sample, SampleAnalysis(), HBHEDataFrame::size(), HFDataFrame::size(), HODataFrame::size(), edm::SortedCollection< T, SORT >::size(), and state.
Referenced by HcalPedestalAnalyzer::analyze().
void HcalPedestalAnalysis::SampleAnalysis | ( | ) |
Definition at line 326 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 108 of file HcalPedestalAnalysis.cc.
References m_file.
Referenced by HcalPedestalAnalyzer::HcalPedestalAnalyzer().
|
private |
Definition at line 593 of file HcalPedestalAnalysis.cc.
References _meot, begin, combineCards::bins, 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 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 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 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().