#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 | setTopology (const HcalTopology *htopo) |
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 36 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 87 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, mps_fire::i, dqmdumpme::k, 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 89 of file HcalPedestalAnalysis.cc.
References _meot, hbHists, hfHists, hoHists, and mps_fire::i.
|
private |
Definition at line 392 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 591 of file HcalPedestalAnalysis.cc.
References gather_cfg::cout, evt, fRawPedestals, fRawPedestalWidths, fRefPedestals, fRefPedestalWidths, fTopology, fValPedestals, fValPedestalWidths, hbHists, HcalPedVal(), hfHists, hoHists, mps_fire::i, m_AllPedsOK, m_file, m_nevtsample, m_outputFileROOT, m_pedsinADC, m_pedValflag, m_stat, SampleAnalysis(), and Trendings().
|
private |
Definition at line 433 of file HcalPedestalAnalysis.cc.
References _meot, HcalCondObjectContainer< Item >::addValues(), HLT_2018_cff::cap, hltPixelTracks_cff::chi2, fitflag, fRawPedestals, fRawPedestalWidths, mps_fire::i, B2GTnPMonitor_cfi::item, dqmiolumiharvest::j, m_endTS, m_hiSaveflag, m_nevtsample, m_pedsinADC, m_startTS, m_stat, HcalPedestalWidth::setSigma(), mathSSE::sqrt(), and tools::TF1.
Referenced by SampleAnalysis().
|
static |
Definition at line 846 of file HcalPedestalAnalysis.cc.
References HcalCondObjectContainer< Item >::addValues(), beam_dqm_sourceclient-live_cfg::cerr, fRawPedestals, fRawPedestalWidths, fRefPedestals, fRefPedestalWidths, fValPedestals, fValPedestalWidths, HcalCondObjectContainer< Item >::getAllChannels(), HcalPedestalWidth::getSigma(), HcalPedestal::getValue(), HcalCondObjectContainer< Item >::getValues(), HcalForward, mps_fire::i, createfilelist::int, B2GTnPMonitor_cfi::item, HcalPedestalWidth::setSigma(), mathSSE::sqrt(), and ApeEstimator_cff::width.
Referenced by done().
|
private |
Definition at line 243 of file HcalPedestalAnalysis.cc.
References _meot, HcalQIESample::adc(), trigObjTnPSource_cfi::bins, HcalQIESample::capid(), HcalQIECoder::charge(), HcalDetId::depth(), evt, RemoveAddSevLevel::flag, hbHists, hfHists, hoHists, mps_fire::i, HcalDetId::ieta(), edm::eventsetup::heterocontainer::insert(), HcalDetId::iphi(), m_nevtsample, m_pedsinADC, Skims_PA_cff::name, and state.
Referenced by processEvent().
void HcalPedestalAnalysis::processEvent | ( | const HBHEDigiCollection & | hbhe, |
const HODigiCollection & | ho, | ||
const HFDigiCollection & | hf, | ||
const HcalDbService & | cond | ||
) |
Definition at line 131 of file HcalPedestalAnalysis.cc.
References AllChanHists(), evt, evt_curr, RemoveAddSevLevel::flag, photonIsolationHIProducer_cfi::hbhe, hbHists, es_hardcode_cfi::hf, hfHists, es_hardcode_cfi::ho, hoHists, mps_fire::i, HBHEDataFrame::id(), HODataFrame::id(), HFDataFrame::id(), createfilelist::int, dqmiolumiharvest::j, dqmdumpme::k, m_coder, m_endTS, m_nevtsample, m_shape, m_startTS, per2CapsHists(), HFDataFrame::sample(), HBHEDataFrame::sample(), HODataFrame::sample(), sample, SampleAnalysis(), HODataFrame::size(), HBHEDataFrame::size(), HFDataFrame::size(), and state.
void HcalPedestalAnalysis::SampleAnalysis | ( | ) |
Definition at line 410 of file HcalPedestalAnalysis.cc.
References GetPedConst(), hbHists, hfHists, hoHists, m_file, and sample.
Referenced by done(), and processEvent().
|
inline |
void HcalPedestalAnalysis::setup | ( | const std::string & | m_outputFileROOT | ) |
Definition at line 119 of file HcalPedestalAnalysis.cc.
References m_file, and m_outputFileROOT.
Referenced by o2olib.O2OTool::execute().
|
private |
Definition at line 686 of file HcalPedestalAnalysis.cc.
References _meot, begin, trigObjTnPSource_cfi::bins, HcalDetId::depth(), dqmMemoryStats::float, mps_fire::i, HcalDetId::ieta(), HcalDetId::iphi(), dqmiolumiharvest::j, m_nevtsample, Skims_PA_cff::name, sample, findQualityFiles::size, and tools::TF1.
Referenced by done().
Definition at line 135 of file HcalPedestalAnalysis.h.
Referenced by AllChanHists(), GetPedConst(), per2CapsHists(), Trendings(), and ~HcalPedestalAnalysis().
TH1F* HcalPedestalAnalysis::ALLPEDS |
Definition at line 128 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CAPID_AVERAGE |
Definition at line 132 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CAPID_CHI2 |
Definition at line 133 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CHI2 |
Definition at line 131 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 142 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), per2CapsHists(), and processEvent().
|
private |
Definition at line 144 of file HcalPedestalAnalysis.h.
Referenced by processEvent().
|
staticprivate |
Definition at line 149 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst().
|
private |
Definition at line 138 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and HcalPedVal().
|
private |
Definition at line 139 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and HcalPedVal().
|
private |
Definition at line 136 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedVal().
|
private |
Definition at line 137 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedVal().
|
private |
Definition at line 147 of file HcalPedestalAnalysis.h.
Referenced by done(), and setTopology().
|
private |
Definition at line 140 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedVal().
|
private |
Definition at line 141 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedVal().
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 122 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 125 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 117 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 110 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), SampleAnalysis(), and setup().
|
private |
Definition at line 120 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), and HcalPedestalAnalysis().
|
private |
Definition at line 115 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 118 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), and Trendings().
|
private |
Definition at line 113 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis().
|
private |
Definition at line 112 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), and setup().
|
private |
Definition at line 114 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis().
|
private |
Definition at line 119 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), HcalPedestalAnalysis(), and per2CapsHists().
|
private |
Definition at line 121 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 124 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 116 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 145 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and HcalPedestalAnalysis().
TH1F* HcalPedestalAnalysis::PEDMEAN |
Definition at line 130 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::PEDRMS |
Definition at line 129 of file HcalPedestalAnalysis.h.
Definition at line 127 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 143 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), svgfig.Curve::Path(), processEvent(), SampleAnalysis(), and Trendings().
|
private |
Definition at line 146 of file HcalPedestalAnalysis.h.
Referenced by crabFunctions.CrabTask::handleNoState(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), and crabFunctions.CrabTask::update().