#include <CastorPedestalAnalysis.h>
Public Member Functions | |
CastorPedestalAnalysis (const edm::ParameterSet &ps) | |
Constructor. More... | |
int | done (const CastorPedestals *fInputPedestals, const CastorPedestalWidths *fInputWidths, CastorPedestals *fOutputPedestals, CastorPedestalWidths *fOutputWidths) |
void | processEvent (const CastorDigiCollection &castor, const CastorDbService &cond) |
void | SampleAnalysis () |
void | setup (const std::string &m_outputFileROOT) |
~CastorPedestalAnalysis () | |
Destructor. More... | |
Static Public Member Functions | |
static int | CastorPedVal (int nstat[4], const CastorPedestals *fRefPedestals, const CastorPedestalWidths *fRefPedestalWidths, CastorPedestals *fRawPedestals, CastorPedestalWidths *fRawPedestalWidths, CastorPedestals *fValPedestals, CastorPedestalWidths *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 CastorDbService &cond) |
void | Trendings (std::map< HcalDetId, std::map< int, PEDBUNCH > > &toolT, TH1F *Chi2, TH1F *CapidAverage, TH1F *CapidChi2) |
Private Attributes | |
std::map< HcalDetId, std::map< int, PEDBUNCH > >::iterator | _meot |
struct { | |
TH1F * ALLPEDS | |
TH1F * CAPID_AVERAGE | |
TH1F * CAPID_CHI2 | |
TH1F * CHI2 | |
TH1F * PEDMEAN | |
TH1F * PEDRMS | |
std::map< HcalDetId, std::map< int, PEDBUNCH > > PEDTRENDS | |
} | castorHists |
int | evt |
int | evt_curr |
CastorPedestals * | fRawPedestals |
CastorPedestalWidths * | fRawPedestalWidths |
const CastorPedestals * | fRefPedestals |
const CastorPedestalWidths * | fRefPedestalWidths |
CastorPedestals * | fValPedestals |
CastorPedestalWidths * | fValPedestalWidths |
int | m_AllPedsOK |
const CastorQIECoder * | m_coder |
int | m_endTS |
TFile * | m_file |
int | m_hiSaveflag |
std::ofstream | m_logFile |
int | m_nevtsample |
std::string | m_outputFileMean |
std::string | m_outputFileROOT |
std::string | m_outputFileWidth |
int | m_pedsinADC |
int | m_pedValflag |
const CastorQIEShape * | m_shape |
int | m_startTS |
float | m_stat [4] |
int | sample |
std::vector< bool > | state |
Static Private Attributes | |
static const int | fitflag = 0 |
Definition at line 36 of file CastorPedestalAnalysis.h.
|
private |
Definition at line 82 of file CastorPedestalAnalysis.h.
CastorPedestalAnalysis::CastorPedestalAnalysis | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 14 of file CastorPedestalAnalysis.cc.
References castorHists, evt, edm::ParameterSet::getUntrackedParameter(), mps_fire::i, dqmdumpme::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, state, and AlCaHLTBitMon_QueryRunRegistry::string.
CastorPedestalAnalysis::~CastorPedestalAnalysis | ( | ) |
Destructor.
Definition at line 74 of file CastorPedestalAnalysis.cc.
References _meot, castorHists, and mps_fire::i.
|
private |
Definition at line 286 of file CastorPedestalAnalysis.cc.
References _meot, and HcalQIESample::adc().
Referenced by processEvent().
|
static |
Definition at line 715 of file CastorPedestalAnalysis.cc.
References CastorCondObjectContainer< Item >::addValues(), DMR_cfg::cerr, fRawPedestals, fRawPedestalWidths, fRefPedestals, fRefPedestalWidths, fValPedestals, fValPedestalWidths, CastorCondObjectContainer< Item >::getAllChannels(), CastorPedestalWidth::getSigma(), CastorPedestal::getValue(), CastorCondObjectContainer< Item >::getValues(), HcalForward, mps_fire::i, createfilelist::int, B2GTnPMonitor_cfi::item, CastorPedestalWidth::setSigma(), mathSSE::sqrt(), and ApeEstimator_cff::width.
Referenced by done().
int CastorPedestalAnalysis::done | ( | const CastorPedestals * | fInputPedestals, |
const CastorPedestalWidths * | fInputWidths, | ||
CastorPedestals * | fOutputPedestals, | ||
CastorPedestalWidths * | fOutputWidths | ||
) |
Definition at line 477 of file CastorPedestalAnalysis.cc.
References castorHists, CastorPedVal(), evt, fRawPedestals, fRawPedestalWidths, fRefPedestals, fRefPedestalWidths, fValPedestals, fValPedestalWidths, mps_fire::i, m_AllPedsOK, m_file, m_nevtsample, m_outputFileROOT, m_pedValflag, m_stat, SampleAnalysis(), and Trendings().
|
private |
Definition at line 317 of file CastorPedestalAnalysis.cc.
References _meot, CastorCondObjectContainer< Item >::addValues(), HLT_2024v14_cff::cap, nano_mu_local_reco_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, CastorPedestalWidth::setSigma(), and mathSSE::sqrt().
Referenced by SampleAnalysis().
|
private |
Definition at line 142 of file CastorPedestalAnalysis.cc.
References _meot, HcalQIESample::adc(), trigObjTnPSource_cfi::bins, HcalQIESample::capid(), castorHists, CastorQIECoder::charge(), HcalDetId::depth(), evt, RemoveAddSevLevel::flag, mps_fire::i, HcalDetId::ieta(), edm::eventsetup::heterocontainer::insert(), HcalDetId::iphi(), m_nevtsample, m_pedsinADC, Skims_PA_cff::name, l1trig_cff::shape, state, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by processEvent().
void CastorPedestalAnalysis::processEvent | ( | const CastorDigiCollection & | castor, |
const CastorDbService & | cond | ||
) |
Definition at line 95 of file CastorPedestalAnalysis.cc.
References AllChanHists(), castorDigitizer_cfi::castor, castorHists, evt, evt_curr, RemoveAddSevLevel::flag, mps_fire::i, CastorDataFrame::id(), createfilelist::int, dqmiolumiharvest::j, m_coder, m_endTS, m_nevtsample, m_shape, m_startTS, per2CapsHists(), CastorDataFrame::sample(), sample, SampleAnalysis(), and CastorDataFrame::size().
void CastorPedestalAnalysis::SampleAnalysis | ( | ) |
Definition at line 304 of file CastorPedestalAnalysis.cc.
References castorHists, GetPedConst(), m_file, and sample.
Referenced by done(), and processEvent().
void CastorPedestalAnalysis::setup | ( | const std::string & | m_outputFileROOT | ) |
Definition at line 87 of file CastorPedestalAnalysis.cc.
References m_file, and m_outputFileROOT.
Referenced by o2olib.O2OTool::execute().
|
private |
Definition at line 555 of file CastorPedestalAnalysis.cc.
References _meot, trigObjTnPSource_cfi::bins, HcalDetId::depth(), nano_mu_digi_cff::float, mps_fire::i, HcalDetId::ieta(), HcalDetId::iphi(), dqmiolumiharvest::j, m_nevtsample, Skims_PA_cff::name, sample, and findQualityFiles::size.
Referenced by done().
Definition at line 130 of file CastorPedestalAnalysis.h.
Referenced by AllChanHists(), GetPedConst(), per2CapsHists(), Trendings(), and ~CastorPedestalAnalysis().
TH1F* CastorPedestalAnalysis::ALLPEDS |
Definition at line 123 of file CastorPedestalAnalysis.h.
TH1F* CastorPedestalAnalysis::CAPID_AVERAGE |
Definition at line 127 of file CastorPedestalAnalysis.h.
TH1F* CastorPedestalAnalysis::CAPID_CHI2 |
Definition at line 128 of file CastorPedestalAnalysis.h.
struct { ... } CastorPedestalAnalysis::castorHists |
Referenced by CastorPedestalAnalysis(), done(), per2CapsHists(), processEvent(), SampleAnalysis(), and ~CastorPedestalAnalysis().
TH1F* CastorPedestalAnalysis::CHI2 |
Definition at line 126 of file CastorPedestalAnalysis.h.
|
private |
Definition at line 137 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), per2CapsHists(), and processEvent().
|
private |
Definition at line 139 of file CastorPedestalAnalysis.h.
Referenced by processEvent().
|
staticprivate |
Definition at line 144 of file CastorPedestalAnalysis.h.
Referenced by GetPedConst().
|
private |
Definition at line 133 of file CastorPedestalAnalysis.h.
Referenced by CastorPedVal(), done(), and GetPedConst().
|
private |
Definition at line 134 of file CastorPedestalAnalysis.h.
Referenced by CastorPedVal(), done(), and GetPedConst().
|
private |
Definition at line 131 of file CastorPedestalAnalysis.h.
Referenced by CastorPedVal(), and done().
|
private |
Definition at line 132 of file CastorPedestalAnalysis.h.
Referenced by CastorPedVal(), and done().
|
private |
Definition at line 135 of file CastorPedestalAnalysis.h.
Referenced by CastorPedVal(), and done().
|
private |
Definition at line 136 of file CastorPedestalAnalysis.h.
Referenced by CastorPedVal(), and done().
|
private |
Definition at line 117 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), and done().
|
private |
Definition at line 120 of file CastorPedestalAnalysis.h.
Referenced by processEvent().
|
private |
Definition at line 112 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), GetPedConst(), and processEvent().
|
private |
Definition at line 105 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), SampleAnalysis(), and setup().
|
private |
Definition at line 115 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), and GetPedConst().
|
private |
Definition at line 110 of file CastorPedestalAnalysis.h.
|
private |
Definition at line 113 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), GetPedConst(), per2CapsHists(), processEvent(), and Trendings().
|
private |
Definition at line 108 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis().
|
private |
Definition at line 107 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), and setup().
|
private |
Definition at line 109 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis().
|
private |
Definition at line 114 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), GetPedConst(), and per2CapsHists().
|
private |
Definition at line 116 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), and done().
|
private |
Definition at line 119 of file CastorPedestalAnalysis.h.
Referenced by processEvent().
|
private |
Definition at line 111 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), GetPedConst(), and processEvent().
|
private |
Definition at line 140 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), and GetPedConst().
TH1F* CastorPedestalAnalysis::PEDMEAN |
Definition at line 125 of file CastorPedestalAnalysis.h.
TH1F* CastorPedestalAnalysis::PEDRMS |
Definition at line 124 of file CastorPedestalAnalysis.h.
Definition at line 122 of file CastorPedestalAnalysis.h.
|
private |
Definition at line 138 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), svgfig.Curve::Path(), processEvent(), SampleAnalysis(), and Trendings().
|
private |
Definition at line 141 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), crabFunctions.CrabTask::handleNoState(), per2CapsHists(), and crabFunctions.CrabTask::update().