#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 39 of file CastorPedestalAnalysis.h.
|
private |
Definition at line 89 of file CastorPedestalAnalysis.h.
CastorPedestalAnalysis::CastorPedestalAnalysis | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 15 of file CastorPedestalAnalysis.cc.
References castorHists, gather_cfg::cout, evt, edm::ParameterSet::getUntrackedParameter(), mps_fire::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.
CastorPedestalAnalysis::~CastorPedestalAnalysis | ( | ) |
Destructor.
Definition at line 69 of file CastorPedestalAnalysis.cc.
References _meot, castorHists, and mps_fire::i.
|
private |
Definition at line 239 of file CastorPedestalAnalysis.cc.
References _meot, and HcalQIESample::adc().
Referenced by processEvent().
|
static |
Definition at line 644 of file CastorPedestalAnalysis.cc.
References CastorCondObjectContainer< Item >::addValues(), MessageLogger_cfi::cerr, CastorCondObjectContainer< Item >::getAllChannels(), CastorPedestalWidth::getSigma(), CastorPedestal::getValue(), CastorCondObjectContainer< Item >::getValues(), HcalForward, mps_fire::i, createfilelist::int, 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 414 of file CastorPedestalAnalysis.cc.
References castorHists, CastorPedVal(), gather_cfg::cout, 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 264 of file CastorPedestalAnalysis.cc.
References _meot, CastorCondObjectContainer< Item >::addValues(), cap, HiEvtPlane_cfi::chi2, fitflag, fRawPedestals, fRawPedestalWidths, mps_fire::i, m_endTS, m_hiSaveflag, m_nevtsample, m_pedsinADC, m_startTS, m_stat, CastorPedestalWidth::setSigma(), and mathSSE::sqrt().
Referenced by SampleAnalysis().
|
private |
Definition at line 131 of file CastorPedestalAnalysis.cc.
References _meot, HcalQIESample::adc(), create_public_pileup_plots::bins, HcalQIESample::capid(), castorHists, CastorQIECoder::charge(), HcalDetId::depth(), evt, RemoveAddSevLevel::flag, CastorDbService::getCastorCoder(), CastorDbService::getCastorShape(), mps_fire::i, HcalDetId::ieta(), edm::eventsetup::heterocontainer::insert(), HcalDetId::iphi(), m_nevtsample, m_pedsinADC, dataset::name, and state.
Referenced by processEvent().
void CastorPedestalAnalysis::processEvent | ( | const CastorDigiCollection & | castor, |
const CastorDbService & | cond | ||
) |
Definition at line 90 of file CastorPedestalAnalysis.cc.
References AllChanHists(), edm::SortedCollection< T, SORT >::begin(), castorHists, edm::SortedCollection< T, SORT >::end(), evt, evt_curr, RemoveAddSevLevel::flag, CastorDbService::getCastorCoder(), CastorDbService::getCastorShape(), mps_fire::i, CastorDataFrame::id(), m_coder, m_endTS, m_nevtsample, m_shape, m_startTS, per2CapsHists(), CastorDataFrame::sample(), sample, SampleAnalysis(), CastorDataFrame::size(), and edm::SortedCollection< T, SORT >::size().
void CastorPedestalAnalysis::SampleAnalysis | ( | ) |
Definition at line 251 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 82 of file CastorPedestalAnalysis.cc.
References m_file.
Referenced by o2olib.O2OTool::execute().
|
private |
Definition at line 489 of file CastorPedestalAnalysis.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 124 of file CastorPedestalAnalysis.h.
Referenced by AllChanHists(), GetPedConst(), per2CapsHists(), Trendings(), and ~CastorPedestalAnalysis().
TH1F* CastorPedestalAnalysis::ALLPEDS |
Definition at line 117 of file CastorPedestalAnalysis.h.
TH1F* CastorPedestalAnalysis::CAPID_AVERAGE |
Definition at line 121 of file CastorPedestalAnalysis.h.
TH1F* CastorPedestalAnalysis::CAPID_CHI2 |
Definition at line 122 of file CastorPedestalAnalysis.h.
struct { ... } CastorPedestalAnalysis::castorHists |
Referenced by CastorPedestalAnalysis(), done(), per2CapsHists(), processEvent(), SampleAnalysis(), and ~CastorPedestalAnalysis().
TH1F* CastorPedestalAnalysis::CHI2 |
Definition at line 120 of file CastorPedestalAnalysis.h.
|
private |
Definition at line 131 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), per2CapsHists(), and processEvent().
|
private |
Definition at line 133 of file CastorPedestalAnalysis.h.
Referenced by processEvent().
|
staticprivate |
Definition at line 138 of file CastorPedestalAnalysis.h.
Referenced by GetPedConst().
|
private |
Definition at line 127 of file CastorPedestalAnalysis.h.
Referenced by done(), and GetPedConst().
|
private |
Definition at line 128 of file CastorPedestalAnalysis.h.
Referenced by done(), and GetPedConst().
|
private |
Definition at line 125 of file CastorPedestalAnalysis.h.
Referenced by done().
|
private |
Definition at line 126 of file CastorPedestalAnalysis.h.
Referenced by done().
|
private |
Definition at line 129 of file CastorPedestalAnalysis.h.
Referenced by done().
|
private |
Definition at line 130 of file CastorPedestalAnalysis.h.
Referenced by done().
|
private |
Definition at line 111 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), and done().
|
private |
Definition at line 114 of file CastorPedestalAnalysis.h.
Referenced by processEvent().
|
private |
Definition at line 106 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), GetPedConst(), and processEvent().
|
private |
Definition at line 99 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), SampleAnalysis(), and setup().
|
private |
Definition at line 109 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), and GetPedConst().
|
private |
Definition at line 104 of file CastorPedestalAnalysis.h.
|
private |
Definition at line 107 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), GetPedConst(), per2CapsHists(), processEvent(), and Trendings().
|
private |
Definition at line 102 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis().
|
private |
Definition at line 101 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), and done().
|
private |
Definition at line 103 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis().
|
private |
Definition at line 108 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), GetPedConst(), and per2CapsHists().
|
private |
Definition at line 110 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), and done().
|
private |
Definition at line 113 of file CastorPedestalAnalysis.h.
Referenced by processEvent().
|
private |
Definition at line 105 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), GetPedConst(), and processEvent().
|
private |
Definition at line 134 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), done(), and GetPedConst().
TH1F* CastorPedestalAnalysis::PEDMEAN |
Definition at line 119 of file CastorPedestalAnalysis.h.
TH1F* CastorPedestalAnalysis::PEDRMS |
Definition at line 118 of file CastorPedestalAnalysis.h.
Definition at line 116 of file CastorPedestalAnalysis.h.
|
private |
Definition at line 132 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), svgfig.Curve::Path(), processEvent(), SampleAnalysis(), and Trendings().
|
private |
Definition at line 135 of file CastorPedestalAnalysis.h.
Referenced by CastorPedestalAnalysis(), and per2CapsHists().