#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 37 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 91 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, gen::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 83 of file HcalPedestalAnalysis.cc.
References _meot, hbHists, hfHists, hoHists, and mps_fire::i.
|
private |
Definition at line 317 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 504 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().
Referenced by setTopology().
|
private |
Definition at line 352 of file HcalPedestalAnalysis.cc.
References _meot, HcalCondObjectContainer< Item >::addValues(), vertices_cff::chi2, fitflag, fRawPedestals, fRawPedestalWidths, mps_fire::i, m_endTS, m_hiSaveflag, m_nevtsample, m_pedsinADC, m_startTS, m_stat, HcalPedestalWidth::setSigma(), and mathSSE::sqrt().
Referenced by SampleAnalysis().
|
static |
Definition at line 751 of file HcalPedestalAnalysis.cc.
References HcalCondObjectContainer< Item >::addValues(), MessageLogger_cfi::cerr, HcalCondObjectContainer< Item >::getAllChannels(), HcalPedestalWidth::getSigma(), HcalPedestal::getValue(), HcalCondObjectContainer< Item >::getValues(), HcalForward, mps_fire::i, createfilelist::int, HcalPedestalWidth::setSigma(), mathSSE::sqrt(), and ApeEstimator_cff::width.
Referenced by done(), and setTopology().
|
private |
Definition at line 212 of file HcalPedestalAnalysis.cc.
References _meot, HcalQIESample::adc(), create_public_pileup_plots::bins, HcalQIESample::capid(), HcalQIECoder::charge(), HcalDetId::depth(), evt, RemoveAddSevLevel::flag, HcalDbService::getHcalCoder(), HcalDbService::getHcalShape(), hbHists, hfHists, hoHists, mps_fire::i, HcalDetId::ieta(), edm::eventsetup::heterocontainer::insert(), HcalDetId::iphi(), m_nevtsample, m_pedsinADC, dataset::name, and state.
Referenced by processEvent().
void HcalPedestalAnalysis::processEvent | ( | const HBHEDigiCollection & | hbhe, |
const HODigiCollection & | ho, | ||
const HFDigiCollection & | hf, | ||
const HcalDbService & | cond | ||
) |
Definition at line 123 of file HcalPedestalAnalysis.cc.
References AllChanHists(), edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::empty(), edm::SortedCollection< T, SORT >::end(), evt, evt_curr, RemoveAddSevLevel::flag, HcalDbService::getHcalCoder(), HcalDbService::getHcalShape(), hbHists, hfHists, hoHists, mps_fire::i, HFDataFrame::id(), HBHEDataFrame::id(), HODataFrame::id(), createfilelist::int, gen::k, m_coder, m_endTS, m_nevtsample, m_shape, m_startTS, per2CapsHists(), HFDataFrame::sample(), HODataFrame::sample(), HBHEDataFrame::sample(), sample, SampleAnalysis(), HFDataFrame::size(), HBHEDataFrame::size(), HODataFrame::size(), edm::SortedCollection< T, SORT >::size(), and state.
Referenced by setTopology().
void HcalPedestalAnalysis::SampleAnalysis | ( | ) |
Definition at line 329 of file HcalPedestalAnalysis.cc.
References GetPedConst(), hbHists, hfHists, hoHists, m_file, and sample.
Referenced by done(), and processEvent().
|
inline |
Definition at line 50 of file HcalPedestalAnalysis.h.
References done(), fRawPedestals, fRawPedestalWidths, fRefPedestals, fRefPedestalWidths, fTopology, fValPedestals, fValPedestalWidths, photonIsolationHIProducer_cfi::hbhe, HcalPedVal(), photonIsolationHIProducer_cfi::hf, photonIsolationHIProducer_cfi::ho, and processEvent().
void HcalPedestalAnalysis::setup | ( | const std::string & | m_outputFileROOT | ) |
Definition at line 111 of file HcalPedestalAnalysis.cc.
References m_file.
Referenced by o2olib.O2OTool::execute().
|
private |
Definition at line 596 of file HcalPedestalAnalysis.cc.
References _meot, begin, create_public_pileup_plots::bins, HcalDetId::depth(), objects.autophobj::float, mps_fire::i, HcalDetId::ieta(), HcalDetId::iphi(), m_nevtsample, dataset::name, sample, and findQualityFiles::size.
Referenced by done().
Definition at line 126 of file HcalPedestalAnalysis.h.
Referenced by AllChanHists(), GetPedConst(), per2CapsHists(), Trendings(), and ~HcalPedestalAnalysis().
TH1F* HcalPedestalAnalysis::ALLPEDS |
Definition at line 119 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CAPID_AVERAGE |
Definition at line 123 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CAPID_CHI2 |
Definition at line 124 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::CHI2 |
Definition at line 122 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 133 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), per2CapsHists(), and processEvent().
|
private |
Definition at line 135 of file HcalPedestalAnalysis.h.
Referenced by processEvent().
|
staticprivate |
Definition at line 140 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst().
|
private |
Definition at line 129 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and setTopology().
|
private |
Definition at line 130 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and setTopology().
|
private |
Definition at line 127 of file HcalPedestalAnalysis.h.
Referenced by done(), and setTopology().
|
private |
Definition at line 128 of file HcalPedestalAnalysis.h.
Referenced by done(), and setTopology().
|
private |
Definition at line 138 of file HcalPedestalAnalysis.h.
Referenced by done(), and setTopology().
|
private |
Definition at line 131 of file HcalPedestalAnalysis.h.
Referenced by done(), and setTopology().
|
private |
Definition at line 132 of file HcalPedestalAnalysis.h.
Referenced by done(), and setTopology().
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 113 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 116 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 108 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 101 of file HcalPedestalAnalysis.h.
Referenced by done(), HcalPedestalAnalysis(), SampleAnalysis(), and setup().
|
private |
Definition at line 111 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), and HcalPedestalAnalysis().
|
private |
Definition at line 106 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 109 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), and Trendings().
|
private |
Definition at line 104 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis().
|
private |
Definition at line 103 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 105 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis().
|
private |
Definition at line 110 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), HcalPedestalAnalysis(), and per2CapsHists().
|
private |
Definition at line 112 of file HcalPedestalAnalysis.h.
Referenced by done(), and HcalPedestalAnalysis().
|
private |
Definition at line 115 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 107 of file HcalPedestalAnalysis.h.
Referenced by GetPedConst(), HcalPedestalAnalysis(), and processEvent().
|
private |
Definition at line 136 of file HcalPedestalAnalysis.h.
Referenced by done(), GetPedConst(), and HcalPedestalAnalysis().
TH1F* HcalPedestalAnalysis::PEDMEAN |
Definition at line 121 of file HcalPedestalAnalysis.h.
TH1F* HcalPedestalAnalysis::PEDRMS |
Definition at line 120 of file HcalPedestalAnalysis.h.
Definition at line 118 of file HcalPedestalAnalysis.h.
|
private |
Definition at line 134 of file HcalPedestalAnalysis.h.
Referenced by HcalPedestalAnalysis(), svgfig.Curve::Path(), processEvent(), SampleAnalysis(), and Trendings().
|
private |
Definition at line 137 of file HcalPedestalAnalysis.h.
Referenced by crabFunctions.CrabTask::handleNoState(), HcalPedestalAnalysis(), per2CapsHists(), processEvent(), and crabFunctions.CrabTask::update().