|
|
#include <HcalLedAnalysis.h>
|
typedef std::pair< TH1F *, std::pair< std::map< int, std::vector< double > >, std::vector< TH1F * > > > | LEDBUNCH |
|
|
float | BinsizeCorr (float time) |
|
void | GetLedConst (std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT) |
|
void | LedHBHEHists (const HcalDetId &detid, const HBHEDataFrame &ledDigi, std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT, const HcalDbService &cond) |
|
void | LedHFHists (const HcalDetId &detid, const HFDataFrame &ledDigi, std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT, const HcalDbService &cond) |
|
void | LedHOHists (const HcalDetId &detid, const HODataFrame &ledDigi, std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT, const HcalDbService &cond) |
|
void | LedTrendings (std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT) |
|
void | ProcessCalibEvent (int fiberChan, HcalCalibDetId calibId, const HcalCalibDataFrame &digi) |
|
void | SetupLEDHists (int id, const HcalDetId detid, std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT) |
|
|
std::map< HcalCalibDetId, CALIBBUNCH >::iterator | _meca |
|
std::map< HcalDetId, std::map< int, float > >::iterator | _meee |
|
std::map< HcalDetId, std::map< int, LEDBUNCH > >::iterator | _meol |
|
std::map< HcalCalibDetId, CALIBBUNCH > | calibHists |
|
int | evt |
|
int | evt_curr |
|
struct { |
TH1F * ALLLEDS |
|
TH1F * CHI2 |
|
TH1F * LEDMEAN |
|
TH1F * LEDRMS |
|
std::map< HcalDetId, std::map< int, LEDBUNCH > > LEDTRENDS |
|
} | hbHists |
|
struct { |
TH1F * ALLLEDS |
|
TH1F * CHI2 |
|
TH1F * LEDMEAN |
|
TH1F * LEDRMS |
|
std::map< HcalDetId, std::map< int, LEDBUNCH > > LEDTRENDS |
|
} | hfHists |
|
struct { |
TH1F * ALLLEDS |
|
TH1F * CHI2 |
|
TH1F * LEDMEAN |
|
TH1F * LEDRMS |
|
std::map< HcalDetId, std::map< int, LEDBUNCH > > LEDTRENDS |
|
} | hoHists |
|
std::map< HcalDetId, std::map< int, float > > | m_AllPedVals |
|
const HcalQIECoder * | m_coder |
|
int | m_endTS |
|
TFile * | m_file |
|
int | m_fitflag |
|
int | m_hiSaveflag |
|
std::ofstream | m_logFile |
|
int | m_nevtsample |
|
std::ofstream | m_outFile |
|
std::string | m_outputFileROOT |
|
std::string | m_outputFileText |
|
std::string | m_outputFileX |
|
std::ofstream | m_outputFileXML |
|
const HcalPedestal * | m_ped |
|
const HcalQIEShape * | m_shape |
|
int | m_startTS |
|
bool | m_usecalib |
|
int | sample |
|
std::vector< bool > | state |
|
Definition at line 30 of file HcalLedAnalysis.h.
◆ LEDBUNCH
◆ HcalLedAnalysis()
Constructor.
Definition at line 11 of file HcalLedAnalysis.cc.
21 for (
int k = 0;
k < 4;
k++)
22 state.push_back(
true);
57 hbHists.ALLLEDS =
new TH1F(
"HBHE All LEDs",
"HB/HE All Leds", 10, 0, 9);
58 hbHists.LEDRMS =
new TH1F(
"HBHE All LED RMS",
"HB/HE All LED RMS", 100, 0, 3);
59 hbHists.LEDMEAN =
new TH1F(
"HBHE All LED Means",
"HB/HE All LED Means", 100, 0, 9);
60 hbHists.CHI2 =
new TH1F(
"HBHE Chi2 by ndf for Landau fit",
"HB/HE Chi2/ndf Landau", 200, 0., 50.);
62 hoHists.ALLLEDS =
new TH1F(
"HO All LEDs",
"HO All Leds", 10, 0, 9);
63 hoHists.LEDRMS =
new TH1F(
"HO All LED RMS",
"HO All LED RMS", 100, 0, 3);
64 hoHists.LEDMEAN =
new TH1F(
"HO All LED Means",
"HO All LED Means", 100, 0, 9);
65 hoHists.CHI2 =
new TH1F(
"HO Chi2 by ndf for Landau fit",
"HO Chi2/ndf Landau", 200, 0., 50.);
67 hfHists.ALLLEDS =
new TH1F(
"HF All LEDs",
"HF All Leds", 10, 0, 9);
68 hfHists.LEDRMS =
new TH1F(
"HF All LED RMS",
"HF All LED RMS", 100, 0, 3);
69 hfHists.LEDMEAN =
new TH1F(
"HF All LED Means",
"HF All LED Means", 100, 0, 9);
70 hfHists.CHI2 =
new TH1F(
"HF Chi2 by ndf for Landau fit",
"HF Chi2/ndf Landau", 200, 0., 50.);
85 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_LED_TIMING</EXTENSION_TABLE_NAME>" << endl;
93 m_outputFileXML <<
" <RUN_TYPE>hcal-led-timing-test</RUN_TYPE>" << endl;
98 m_outputFileXML <<
" <RUN_BEGIN_TIMESTAMP>2007-07-09 00:00:00.0</RUN_BEGIN_TIMESTAMP>" << endl;
100 m_outputFileXML <<
" <COMMENT_DESCRIPTION></COMMENT_DESCRIPTION>" << endl;
114 m_outputFileXML <<
" <INTERVAL_OF_VALIDITY_BEGIN>2147483647</INTERVAL_OF_VALIDITY_BEGIN>" << endl;
116 m_outputFileXML <<
" <INTERVAL_OF_VALIDITY_END>0</INTERVAL_OF_VALIDITY_END>" << endl;
127 m_outputFileXML <<
" <COMMENT_DESCRIPTION></COMMENT_DESCRIPTION>" << endl;
References gather_cfg::cout, edm::ParameterSet::getUntrackedParameter(), dqmdumpme::k, convertSQLitetoXML_cfg::output, DeadROC_duringRun::runNum, and simplePhotonAnalyzer_cfi::sample.
◆ ~HcalLedAnalysis()
HcalLedAnalysis::~HcalLedAnalysis |
( |
| ) |
|
Destructor.
All done, clean up!!
Definition at line 149 of file HcalLedAnalysis.cc.
152 for (
int i = 0;
i < 15;
i++)
153 _meol->second[
i].first->Delete();
156 for (
int i = 0;
i < 15;
i++)
157 _meol->second[
i].first->Delete();
160 for (
int i = 0;
i < 15;
i++)
161 _meol->second[
i].first->Delete();
References mps_fire::i.
◆ BinsizeCorr()
float HcalLedAnalysis::BinsizeCorr |
( |
float |
time | ) |
|
|
private |
Definition at line 954 of file HcalLedAnalysis.cc.
960 static const float tstrue[32] = {0.003, 0.03425, 0.06548, 0.09675, 0.128, 0.15925, 0.1905, 0.22175,
961 0.253, 0.28425, 0.3155, 0.34675, 0.378, 0.40925, 0.4405, 0.47175,
962 0.503, 0.53425, 0.5655, 0.59675, 0.628, 0.65925, 0.6905, 0.72175,
963 0.753, 0.78425, 0.8155, 0.84675, 0.878, 0.90925, 0.9405, 0.97175};
964 static const float tsreco[32] = {-0.00422, 0.01815, 0.04409, 0.07346, 0.09799, 0.12192, 0.15072, 0.18158,
965 0.21397, 0.24865, 0.28448, 0.31973, 0.35449, 0.39208, 0.43282, 0.47244,
966 0.5105, 0.55008, 0.58827, 0.62828, 0.6717, 0.70966, 0.74086, 0.77496,
967 0.80843, 0.83472, 0.86044, 0.8843, 0.90674, 0.92982, 0.95072, 0.9726};
970 float restime =
time - inttime;
971 for (
int i = 0;
i <= 32;
i++) {
977 lolim = tsreco[
i - 1];
978 tsdown = tstrue[
i - 1];
980 tsdown = tstrue[31] - 1.;
985 tsup = tstrue[0] + 1.;
986 if (restime >= lolim && restime < uplim) {
987 corrtime = (tsdown * (uplim - restime) + tsup * (restime - lolim)) / (uplim - lolim);
References mps_fire::i, createfilelist::int, and ntuplemaker::time.
◆ GetLedConst()
void HcalLedAnalysis::GetLedConst |
( |
std::map< HcalDetId, std::map< int, LEDBUNCH > > & |
toolT | ) |
|
|
private |
Definition at line 215 of file HcalLedAnalysis.cc.
228 m_outFile <<
"Det Eta,Phi,D Mean Error" << std::endl;
230 m_outFile <<
"Det Eta,Phi,D Peak Error" << std::endl;
232 m_outFile <<
"Det Eta,Phi,D Mean Error Peak Error MeanEv Error PeakEv Error"
239 time1 =
_meol->second[10].first->GetMean();
244 for (
int j = 0;
j < 10;
j++)
248 _meol->second[10].first->Fit(
"landau",
"Q");
250 TF1*
fit =
_meol->second[10].first->GetFunction(
"landau");
252 time2 =
fit->GetParameter(1);
253 dtime2 =
fit->GetParError(1);
256 time3 =
_meol->second[12].first->GetMean();
257 dtime3 =
_meol->second[12].first->GetRMS() /
sqrt((
float)
_meol->second[12].first->GetEntries());
260 time4 =
_meol->second[13].first->GetMean();
261 dtime4 =
_meol->second[13].first->GetRMS() /
sqrt((
float)
_meol->second[13].first->GetEntries());
263 for (
int i = 0;
i < 10;
i++) {
264 _meol->second[
i].first->GetXaxis()->SetTitle(
"Pulse height (fC)");
265 _meol->second[
i].first->GetYaxis()->SetTitle(
"Counts");
268 _meol->second[10].first->GetXaxis()->SetTitle(
"Time slice");
269 _meol->second[10].first->GetYaxis()->SetTitle(
"Averaged pulse (fC)");
271 _meol->second[10].first->Write();
272 _meol->second[10].second.first[0].push_back(time1);
273 _meol->second[10].second.first[1].push_back(dtime1);
274 _meol->second[11].second.first[0].push_back(time2);
275 _meol->second[11].second.first[1].push_back(dtime2);
276 _meol->second[12].first->GetXaxis()->SetTitle(
"Mean TS");
277 _meol->second[12].first->GetYaxis()->SetTitle(
"Counts");
279 _meol->second[12].first->Write();
280 _meol->second[12].second.first[0].push_back(time3);
281 _meol->second[12].second.first[1].push_back(dtime3);
282 _meol->second[13].first->GetXaxis()->SetTitle(
"Peak TS");
283 _meol->second[13].first->GetYaxis()->SetTitle(
"Counts");
285 _meol->second[13].first->Write();
286 _meol->second[13].second.first[0].push_back(time4);
287 _meol->second[13].second.first[1].push_back(dtime4);
288 _meol->second[14].first->GetXaxis()->SetTitle(
"Peak TS error");
289 _meol->second[14].first->GetYaxis()->SetTitle(
"Counts");
291 _meol->second[14].first->Write();
292 _meol->second[15].first->GetXaxis()->SetTitle(
"Chi2/NDF");
293 _meol->second[15].first->GetYaxis()->SetTitle(
"Counts");
295 _meol->second[15].first->Write();
296 _meol->second[16].first->GetXaxis()->SetTitle(
"Integrated Signal");
297 _meol->second[16].first->Write();
304 m_outFile << detid <<
" " << time1 <<
" " << dtime1 << std::endl;
308 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
326 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
330 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time1);
333 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime1);
342 m_outFile << detid <<
" " << time2 <<
" " << dtime2 << std::endl;
346 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
363 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
367 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time2);
370 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime2);
380 m_outFile << detid <<
" " << time3 <<
" " << dtime3 << std::endl;
384 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
401 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
405 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time3);
408 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime3);
416 m_outFile << detid <<
" " << time4 <<
" " << dtime4 << std::endl;
420 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
437 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
441 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time4);
444 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime4);
454 m_outFile << detid <<
" " << time1 <<
" " << dtime1 <<
" " << time2 <<
" " << dtime2 <<
" " << time3
455 <<
" " << dtime3 <<
" " << time4 <<
" " << dtime4 << std::endl;
References HcalDetId::depth(), mps_fire::i, HcalDetId::ietaAbs(), HcalDetId::iphi(), dqmiolumiharvest::j, convertSQLitetoXML_cfg::output, DetId::rawId(), mathSSE::sqrt(), HcalDetId::subdet(), tools::TF1, and HcalDetId::zside().
◆ LedDone()
void HcalLedAnalysis::LedDone |
( |
| ) |
|
◆ LedHBHEHists()
Definition at line 734 of file HcalLedAnalysis.cc.
738 map<int, LEDBUNCH> _mei;
739 _meol = toolT.find(detid);
740 _mei =
_meol->second;
746 for (
int i = 0;
i < 16;
i++)
759 int capid = ledDigi[TS].capid();
760 int adc = ledDigi[TS].adc();
764 _mei[TS].first->Fill(ta);
765 _mei[10].first->AddBinContent(TS + 1, ta);
768 _mei[11].first->Reset();
769 _mei[11].first->SetBinContent(TS + 1, ta);
784 for (
int i = 0;
i < 10;
i++)
785 sum = sum + _mei[11].
first->GetBinContent(
i + 1);
788 float timmean = _mei[11].first->GetMean();
790 _mei[12].first->Fill(timmeancorr);
792 _mei[16].first->Fill(
793 _mei[11].
first->Integral());
795 _mei[11].first->Fit(
"landau",
"Q");
796 TF1*
fit = _mei[11].first->GetFunction(
"landau");
797 _mei[13].first->Fill(
fit->GetParameter(1));
798 _mei[14].first->Fill(
fit->GetParError(1));
799 _mei[15].first->Fill(
fit->GetChisquare() /
fit->GetNDF());
References ecalLiteDTU::adc(), dqmdumpme::first, mps_fire::i, createfilelist::int, dqmdumpme::k, HBHEDataFrame::size(), and tools::TF1.
◆ LedHFHists()
Definition at line 875 of file HcalLedAnalysis.cc.
879 map<int, LEDBUNCH> _mei;
880 _meol = toolT.find(detid);
881 _mei =
_meol->second;
886 for (
int i = 0;
i < 16;
i++)
901 int capid = ledDigi[TS].capid();
912 _mei[TS].first->Fill(ta);
913 _mei[10].first->AddBinContent(TS + 1, ta);
916 _mei[11].first->Reset();
917 _mei[11].first->SetBinContent(TS + 1, ta);
933 for (
int i = 0;
i < 10;
i++)
934 sum = sum + _mei[11].
first->GetBinContent(
i + 1);
937 float timmean = _mei[11].first->GetMean();
939 _mei[12].first->Fill(timmeancorr);
941 _mei[16].first->Fill(
942 _mei[11].
first->Integral());
944 _mei[11].first->Fit(
"landau",
"Q");
945 TF1*
fit = _mei[11].first->GetFunction(
"landau");
946 _mei[13].first->Fill(
fit->GetParameter(1));
947 _mei[14].first->Fill(
fit->GetParError(1));
948 _mei[15].first->Fill(
fit->GetChisquare() /
fit->GetNDF());
References ecalLiteDTU::adc(), dqmdumpme::first, mps_fire::i, createfilelist::int, dqmdumpme::k, HFDataFrame::size(), and tools::TF1.
◆ LedHOHists()
Definition at line 805 of file HcalLedAnalysis.cc.
809 map<int, LEDBUNCH> _mei;
810 _meol = toolT.find(detid);
811 _mei =
_meol->second;
816 for (
int i = 0;
i < 16;
i++)
830 int capid = ledDigi[TS].capid();
831 int adc = ledDigi[TS].adc();
834 _mei[TS].first->Fill(ta);
835 _mei[10].first->AddBinContent(TS + 1, ta);
838 _mei[11].first->Reset();
839 _mei[11].first->SetBinContent(TS + 1, ta);
854 for (
int i = 0;
i < 10;
i++)
855 sum = sum + _mei[11].
first->GetBinContent(
i + 1);
858 float timmean = _mei[11].first->GetMean();
860 _mei[12].first->Fill(timmeancorr);
862 _mei[16].first->Fill(
863 _mei[11].
first->Integral());
865 _mei[11].first->Fit(
"landau",
"Q");
866 TF1*
fit = _mei[11].first->GetFunction(
"landau");
867 _mei[13].first->Fill(
fit->GetParameter(1));
868 _mei[14].first->Fill(
fit->GetParError(1));
869 _mei[15].first->Fill(
fit->GetChisquare() /
fit->GetNDF());
References ecalLiteDTU::adc(), dqmdumpme::first, mps_fire::i, createfilelist::int, dqmdumpme::k, HODataFrame::size(), and tools::TF1.
◆ LedSampleAnalysis()
void HcalLedAnalysis::LedSampleAnalysis |
( |
| ) |
|
◆ LedSetup()
void HcalLedAnalysis::LedSetup |
( |
const std::string & |
m_outputFileROOT | ) |
|
◆ LedTrendings()
void HcalLedAnalysis::LedTrendings |
( |
std::map< HcalDetId, std::map< int, LEDBUNCH > > & |
toolT | ) |
|
|
private |
Definition at line 478 of file HcalLedAnalysis.cc.
482 snprintf(
name,
sizeof name,
"LED timing trend, eta=%d phi=%d depth=%d", detid.
ieta(), detid.
iphi(), detid.
depth());
488 std::vector<double>::iterator sample_it;
491 for (sample_it =
_meol->second[10 +
m_fitflag].second.first[0].begin();
494 _meol->second[10 +
m_fitflag].second.second[0]->SetBinContent(++
j, *sample_it);
497 for (sample_it =
_meol->second[10 +
m_fitflag].second.first[1].begin();
500 _meol->second[10 +
m_fitflag].second.second[0]->SetBinError(++
j, *sample_it);
504 _meol->second[10 +
m_fitflag].second.second[0]->GetYaxis()->SetTitle(
"Peak position");
References trigObjTnPSource_cfi::bins, HcalDetId::depth(), dqmMemoryStats::float, HcalDetId::ieta(), HcalDetId::iphi(), dqmiolumiharvest::j, and Skims_PA_cff::name.
◆ ProcessCalibEvent()
Definition at line 999 of file HcalLedAnalysis.cc.
1015 "%s %+d iphi=%d %s",
1023 snprintf(
name,
sizeof name,
"%s Pin Diode Mean",
prefix.c_str());
1025 snprintf(
name,
sizeof name,
"%s Pin Diode Current Pulse",
prefix.c_str());
1027 snprintf(
name,
sizeof name,
"%s Pin Diode Integrated Pulse",
prefix.c_str());
References HcalQIESample::adc(), HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, HcalCalibDetId::cboxChannelString(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalCalibDetId::hcalSubdet(), mps_fire::i, HcalCalibDetId::ieta(), HcalCalibDetId::iphi(), Skims_PA_cff::name, ZMuMuAnalysisNtupler_cff::prefix, HcalCalibDataFrame::sample(), HcalCalibDataFrame::size(), and AlCaHLTBitMon_QueryRunRegistry::string.
◆ processLedEvent()
Definition at line 562 of file HcalLedAnalysis.cc.
578 throw(
int)
calib.size();
596 throw(
int)
hbhe.size();
616 throw(
int)
ho.size();
632 throw(
int)
hf.size();
References HcalCalibDataFrame::elecId(), HcalElectronicsId::fiberChanId(), photonIsolationHIProducer_cfi::hbhe, photonIsolationHIProducer_cfi::hf, photonIsolationHIProducer_cfi::ho, mps_fire::i, HcalCalibDataFrame::id(), HFDataFrame::id(), HBHEDataFrame::id(), HODataFrame::id(), createfilelist::int, dqmiolumiharvest::j, dqmdumpme::k, and simplePhotonAnalyzer_cfi::sample.
◆ SetupLEDHists()
Definition at line 650 of file HcalLedAnalysis.cc.
651 string type =
"HBHE";
657 _meol = toolT.find(detid);
658 if (
_meol == toolT.end()) {
660 map<int, LEDBUNCH>
insert;
662 for (
int i = 0;
i < 10;
i++) {
665 "%s Pulse height, eta=%d phi=%d depth=%d TS=%d",
675 "%s LED Mean pulse, eta=%d phi=%d depth=%d",
683 "%s LED Pulse, eta=%d phi=%d depth=%d",
691 "%s Mean TS, eta=%d phi=%d depth=%d",
699 "%s Peak TS, eta=%d phi=%d depth=%d",
707 "%s Peak TS error, eta=%d phi=%d depth=%d",
715 "%s Fit chi2, eta=%d phi=%d depth=%d",
723 "%s Integrated Signal, eta=%d phi=%d depth=%d",
References HcalDetId::depth(), mps_fire::i, HcalDetId::ieta(), edm::eventsetup::heterocontainer::insert(), HcalDetId::iphi(), and Skims_PA_cff::name.
◆ _meca
◆ _meee
std::map<HcalDetId, std::map<int, float> >::iterator HcalLedAnalysis::_meee |
|
private |
◆ _meol
◆ ALLLEDS
TH1F* HcalLedAnalysis::ALLLEDS |
◆ calibHists
◆ CHI2
TH1F* HcalLedAnalysis::CHI2 |
◆ evt
◆ evt_curr
int HcalLedAnalysis::evt_curr |
|
private |
◆ hbHists
struct { ... } HcalLedAnalysis::hbHists |
◆ hfHists
struct { ... } HcalLedAnalysis::hfHists |
◆ hoHists
struct { ... } HcalLedAnalysis::hoHists |
◆ LEDMEAN
TH1F* HcalLedAnalysis::LEDMEAN |
◆ LEDRMS
TH1F* HcalLedAnalysis::LEDRMS |
◆ LEDTRENDS
◆ m_AllPedVals
std::map<HcalDetId, std::map<int, float> > HcalLedAnalysis::m_AllPedVals |
|
private |
◆ m_coder
◆ m_endTS
int HcalLedAnalysis::m_endTS |
|
private |
◆ m_file
TFile* HcalLedAnalysis::m_file |
|
private |
◆ m_fitflag
int HcalLedAnalysis::m_fitflag |
|
private |
◆ m_hiSaveflag
int HcalLedAnalysis::m_hiSaveflag |
|
private |
◆ m_logFile
std::ofstream HcalLedAnalysis::m_logFile |
|
private |
◆ m_nevtsample
int HcalLedAnalysis::m_nevtsample |
|
private |
◆ m_outFile
std::ofstream HcalLedAnalysis::m_outFile |
|
private |
◆ m_outputFileROOT
std::string HcalLedAnalysis::m_outputFileROOT |
|
private |
◆ m_outputFileText
std::string HcalLedAnalysis::m_outputFileText |
|
private |
◆ m_outputFileX
std::string HcalLedAnalysis::m_outputFileX |
|
private |
◆ m_outputFileXML
std::ofstream HcalLedAnalysis::m_outputFileXML |
|
private |
◆ m_ped
◆ m_shape
◆ m_startTS
int HcalLedAnalysis::m_startTS |
|
private |
◆ m_usecalib
bool HcalLedAnalysis::m_usecalib |
|
private |
◆ sample
int HcalLedAnalysis::sample |
|
private |
◆ state
std::vector<bool> HcalLedAnalysis::state |
|
private |
std::vector< bool > state
std::vector< T >::const_iterator const_iterator
constexpr HcalDetId const & id() const
struct HcalLedAnalysis::@56 hfHists
constexpr int iphi() const
get the cell iphi
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
constexpr int adc() const
get the ADC sample
const HcalQIECoder * m_coder
constexpr int depth() const
get the tower depth
T getUntrackedParameter(std::string const &, T const &) const
const HcalQIEShape * m_shape
std::map< HcalCalibDetId, CALIBBUNCH >::iterator _meca
const HcalElectronicsId & elecId() const
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
void ProcessCalibEvent(int fiberChan, HcalCalibDetId calibId, const HcalCalibDataFrame &digi)
std::string m_outputFileROOT
Readout chain identification for Hcal.
std::ofstream m_outputFileXML
struct HcalLedAnalysis::@56 hbHists
void GetLedConst(std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT)
constexpr int size() const
total number of samples in the digi
constexpr int ieta() const
get the cell ieta
std::map< HcalDetId, std::map< int, LEDBUNCH > >::iterator _meol
constexpr HcalSubdetector subdet() const
get the subdetector
void LedHFHists(const HcalDetId &detid, const HFDataFrame &ledDigi, std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT, const HcalDbService &cond)
int iphi() const
get the low-edge iphi (if relevant)
constexpr int size() const
total number of samples in the digi
HcalSubdetector hcalSubdet() const
get the HcalSubdetector (if relevant)
struct HcalLedAnalysis::@56 hoHists
CalibDetType calibFlavor() const
get the flavor of this calibration detid
std::map< HcalCalibDetId, CALIBBUNCH > calibHists
float BinsizeCorr(float time)
constexpr const HcalDetId & id() const
void SetupLEDHists(int id, const HcalDetId detid, std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT)
std::string m_outputFileText
constexpr int size() const
total number of samples in the digi
constexpr uint32_t rawId() const
get the raw id
std::string cboxChannelString() const
get the calibration box channel as a string (if relevant)
const HcalQIESample & sample(int i) const
access a sample
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
int size() const
total number of samples in the digi
const HcalPedestal * m_ped
constexpr int ietaAbs() const
get the absolute value of the cell ieta
constexpr int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
constexpr int zside() const
get the z-side of the cell (1/-1)
constexpr HcalDetId const & id() const
const HcalCalibDetId & id() const
void LedTrendings(std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT)
std::string m_outputFileX
void LedHBHEHists(const HcalDetId &detid, const HBHEDataFrame &ledDigi, std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT, const HcalDbService &cond)
float getValue(int fCapId) const
get value for capId = 0..3
void LedHOHists(const HcalDetId &detid, const HODataFrame &ledDigi, std::map< HcalDetId, std::map< int, LEDBUNCH > > &toolT, const HcalDbService &cond)