#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 31 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 82 of file HcalPedestalAnalysis.h.
HcalPedestalAnalysis::HcalPedestalAnalysis | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 17 of file HcalPedestalAnalysis.cc.
References evt, edm::ParameterSet::getUntrackedParameter(), hbHists, hfHists, hoHists, mps_fire::i, isotrackApplyRegressor::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 90 of file HcalPedestalAnalysis.cc.
References _meot, hbHists, hfHists, hoHists, and mps_fire::i.
|
private |
Definition at line 387 of file HcalPedestalAnalysis.cc.
References _meot, HcalQIESample::adc(), and ALCARECOPPSCalTrackBasedSel_cff::detid.
Referenced by processEvent().
int HcalPedestalAnalysis::done | ( | const HcalPedestals * | fInputPedestals, |
const HcalPedestalWidths * | fInputWidths, | ||
HcalPedestals * | fOutputPedestals, | ||
HcalPedestalWidths * | fOutputWidths | ||
) |
Definition at line 586 of file HcalPedestalAnalysis.cc.
References 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 428 of file HcalPedestalAnalysis.cc.
References _meot, HcalCondObjectContainer< Item >::addValues(), HcalTimeSlew_cff::cap, isoTrack_cff::chi2, ALCARECOPPSCalTrackBasedSel_cff::detid, 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(), and mathSSE::sqrt().
Referenced by SampleAnalysis().
|
static |
Definition at line 840 of file HcalPedestalAnalysis.cc.
References HcalCondObjectContainer< Item >::addValues(), DMR_cfg::cerr, ALCARECOPPSCalTrackBasedSel_cff::detid, 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 238 of file HcalPedestalAnalysis.cc.
References _meot, HcalQIESample::adc(), isotrackApplyRegressor::bins, HcalQIESample::capid(), HcalQIECoder::charge(), ALCARECOPPSCalTrackBasedSel_cff::detid, evt, RemoveAddSevLevel::flag, hbHists, hfHists, hoHists, mps_fire::i, edm::eventsetup::heterocontainer::insert(), m_nevtsample, m_pedsinADC, mergeVDriftHistosByStation::name, l1trig_cff::shape, and state.
Referenced by processEvent().
void HcalPedestalAnalysis::processEvent | ( | const HBHEDigiCollection & | hbhe, |
const HODigiCollection & | ho, | ||
const HFDigiCollection & | hf, | ||
const HcalDbService & | cond | ||
) |
Definition at line 132 of file HcalPedestalAnalysis.cc.
References AllChanHists(), evt, evt_curr, RemoveAddSevLevel::flag, photonIsolationHIProducer_cfi::hbhe, hbHists, Hcal_Conditions_forGlobalTag_cff::hf, hfHists, Hcal_Conditions_forGlobalTag_cff::ho, hoHists, mps_fire::i, HBHEDataFrame::id(), HODataFrame::id(), HFDataFrame::id(), createfilelist::int, dqmiolumiharvest::j, isotrackApplyRegressor::k, m_coder, m_endTS, m_nevtsample, m_shape, m_startTS, per2CapsHists(), HFDataFrame::sample(), HODataFrame::sample(), HBHEDataFrame::sample(), sample, SampleAnalysis(), HBHEDataFrame::size(), HFDataFrame::size(), HODataFrame::size(), and state.
void HcalPedestalAnalysis::SampleAnalysis | ( | ) |
Definition at line 405 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 120 of file HcalPedestalAnalysis.cc.
References m_file, and m_outputFileROOT.
Referenced by o2olib.O2OTool::execute().
|
private |
Definition at line 681 of file HcalPedestalAnalysis.cc.
References _meot, SplitLinear::begin, isotrackApplyRegressor::bins, ALCARECOPPSCalTrackBasedSel_cff::detid, ALCARECOEcalPhiSym_cff::float, mps_fire::i, dqmiolumiharvest::j, m_nevtsample, mergeVDriftHistosByStation::name, sample, and findQualityFiles::size.
Referenced by done().
Definition at line 130 of file HcalPedestalAnalysis.h.
Referenced by AllChanHists(), GetPedConst(), per2CapsHists(), Trendings(), and ~HcalPedestalAnalysis().
TH1F* HcalPedestalAnalysis::ALLPEDS |
Definition at line 123 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CAPID_AVERAGE |
Definition at line 127 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CAPID_CHI2 |
Definition at line 128 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CHI2 |
Definition at line 126 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 137 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), per2CapsHists(), and processEvent().
|
private |
Definition at line 139 of file HcalPedestalAnalysis.h.
Referenced by processEvent().
|
staticprivate |
Definition at line 144 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst().
|
private |
Definition at line 133 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and HcalPedVal().
|
private |
Definition at line 134 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and HcalPedVal().
|
private |
Definition at line 131 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedVal().
|
private |
Definition at line 132 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedVal().
|
private |
Definition at line 142 of file HcalPedestalAnalysis.h.
Referenced by done(), and setTopology().
|
private |
Definition at line 135 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedVal().
|
private |
Definition at line 136 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 117 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 120 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 112 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 105 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), SampleAnalysis(), and setup().
|
private |
Definition at line 115 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), and HcalPedestalAnalysis().
|
private |
Definition at line 113 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), and Trendings().
|
private |
Definition at line 108 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis().
|
private |
Definition at line 107 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), and setup().
|
private |
Definition at line 109 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis().
|
private |
Definition at line 114 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), HcalPedestalAnalysis(), and per2CapsHists().
|
private |
Definition at line 116 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 119 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 111 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 140 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and HcalPedestalAnalysis().
TH1F* HcalPedestalAnalysis::PEDMEAN |
Definition at line 125 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::PEDRMS |
Definition at line 124 of file HcalPedestalAnalysis.h.
Definition at line 122 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 138 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), svgfig.Curve::Path(), processEvent(), SampleAnalysis(), and Trendings().
|
private |
Definition at line 141 of file HcalPedestalAnalysis.h.
Referenced by crabFunctions.CrabTask::handleNoState(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), and crabFunctions.CrabTask::update().