283 for(
unsigned int i=0;i<
fNofAPA;i++)
301 fStuckCodeOffFrac.push_back(tfs->make<TH1F>(Form(
"fStuckCodeOffFrac%d",j),Form(
"Stuck-Off Code Fraction APA%d",j),100,0,1));
302 fStuckCodeOnFrac.push_back(tfs->make<TH1F>(Form(
"fStuckCodeOnFrac%d",j),Form(
"Stuck-On Code Fraction APA%d",j),100,0,1));
305 fChanRMSU_pfx.push_back(tfs->make<TProfile>(Form(
"fChanRMSU%d_pfx", j),Form(
"Profiled raw-ped RMS vs Channel(Plane U, APA%d)", j), UChMax - UChMin + 1, UChMin-0.5, UChMax+0.5,
"s"));
306 fChanMeanU_pfx.push_back(tfs->make<TProfile>(Form(
"fChanMeanU%d_pfx",j),Form(
"Profiled raw-ped MEAN vs Channel(Plane U, APA%d)",j), UChMax - UChMin + 1, UChMin-0.5, UChMax+0.5,
"s"));
307 fChanFFTU.push_back(tfs->make<TH2F>(Form(
"fChanFFTU%d", j),Form(
"fChanFFT (Plane U, APA%d)", j), UChMax - UChMin + 1, UChMin-0.5, UChMax+0.5,
fNticks/2,0,
fNticks/2*
fBinWidth));
308 fChanMeanDistU.push_back(tfs->make<TH1F>(Form(
"fChanMeanDistU%d",j),Form(
"Means of Channels in (Plane U, APA%d)",j), 4096, -0.5, 4095.5));
309 fChanRMSDistU.push_back(tfs->make<TH1F>(Form(
"fChanRMSDistU%d",j),Form(
"RMSs of Channels in (Plane U, APA%d)",j), 100, 0, 50));
310 fChanStuckCodeOffFracU.push_back(tfs->make<TProfile>(Form(
"fChanStuckCodeOffFracU%d",j),Form(
"Stuck-Off Code Fraction (Plane U, APA%d)",j), UChMax - UChMin + 1, UChMin-0.5, UChMax+0.5,
"s"));
311 fChanStuckCodeOnFracU.push_back(tfs->make<TProfile>(Form(
"fChanStuckCodeOnFracU%d",j),Form(
"Stuck-On Code Fraction (Plane U, APA%d)",j), UChMax - UChMin + 1, UChMin-0.5, UChMax+0.5,
"s"));
314 fChanRMSV_pfx.push_back(tfs->make<TProfile>(Form(
"fChanRMSV%d_pfx",j),Form(
"Profiled raw-ped RMS vs Channel(Plane V, APA%d)",j), VChMax - VChMin + 1, VChMin-0.5, VChMax+0.5,
"s"));
315 fChanMeanV_pfx.push_back(tfs->make<TProfile>(Form(
"fChanMeanV%d_pfx",j),Form(
"Profiled raw-ped Mean vs Channel(Plane V, APA%d)",j), VChMax - VChMin + 1, VChMin-0.5, VChMax+0.5,
"s"));
316 fChanFFTV.push_back(tfs->make<TH2F>(Form(
"fChanFFTV%d", j),Form(
"fChanFFT (Plane V, APA%d)", j), VChMax - VChMin + 1, VChMin-0.5, VChMax+0.5,
fNticks/2,0,
fNticks/2*
fBinWidth));
317 fChanMeanDistV.push_back(tfs->make<TH1F>(Form(
"fChanMeanDistV%d",j),Form(
"Means of Channels in (Plane V, APA%d)",j), 4096, -0.5, 4095.5));
318 fChanRMSDistV.push_back(tfs->make<TH1F>(Form(
"fChanRMSDistV%d",j),Form(
"RMSs of Channels in (Plane V, APA%d)",j), 100, 0, 50));
319 fChanStuckCodeOffFracV.push_back(tfs->make<TProfile>(Form(
"fChanStuckCodeOffFracV%d",j),Form(
"Stuck-Off Code Fraction (Plane V, APA%d)",j), VChMax - VChMin + 1, VChMin-0.5, VChMax+0.5,
"s"));
320 fChanStuckCodeOnFracV.push_back(tfs->make<TProfile>(Form(
"fChanStuckCodeOnFracV%d",j),Form(
"Stuck-On Code Fraction (Plane V, APA%d)",j), VChMax - VChMin + 1, VChMin-0.5, VChMax+0.5,
"s"));
323 fChanRMSZ_pfx.push_back(tfs->make<TProfile>(Form(
"fChanRMSZ%d_pfx",j),Form(
"Profiled raw-ped RMS vs Channel(Plane Z, APA%d)",j), ZChMax - ZChMin + 1, ZChMin-0.5, ZChMax+0.5,
"s"));
324 fChanMeanZ_pfx.push_back(tfs->make<TProfile>(Form(
"fChanMeanZ%d_pfx",j),Form(
"Profiled raw-ped Mean vs Channel(Plane Z, APA%d)",j), ZChMax - ZChMin + 1, ZChMin-0.5, ZChMax+0.5,
"s"));
325 fChanFFTZ.push_back(tfs->make<TH2F>(Form(
"fChanFFTZ%d", j),Form(
"fChanFFT (Plane Z, APA%d)", j), ZChMax - ZChMin + 1, ZChMin-0.5, ZChMax+0.5,
fNticks/2,0,
fNticks/2*
fBinWidth));
326 fChanMeanDistZ.push_back(tfs->make<TH1F>(Form(
"fChanMeanDistZ%d",j),Form(
"Means of Channels in (Plane Z, APA%d)",j), 4096, -0.5, 4095.5));
327 fChanRMSDistZ.push_back(tfs->make<TH1F>(Form(
"fChanRMSDistZ%d",j),Form(
"RMSs of Channels in (Plane Z, APA%d)",j), 100, 0, 50));
328 fChanStuckCodeOffFracZ.push_back(tfs->make<TProfile>(Form(
"fChanStuckCodeOffFracZ%d",j),Form(
"Stuck-Off Code Fraction (Plane Z, APA%d)",j), ZChMax - ZChMin + 1, ZChMin-0.5, ZChMax+0.5,
"s"));
329 fChanStuckCodeOnFracZ.push_back(tfs->make<TProfile>(Form(
"fChanStuckCodeOnFracZ%d",j),Form(
"Stuck-On Code Fraction (Plane Z, APA%d)",j), ZChMax - ZChMin + 1, ZChMin-0.5, ZChMax+0.5,
"s"));
338 fChanFFTU[i]->GetXaxis()->SetTitle(
"Chan");
fChanFFTU[i]->GetYaxis()->SetTitle(
"kHz");
339 fChanFFTV[i]->GetXaxis()->SetTitle(
"Chan");
fChanFFTV[i]->GetYaxis()->SetTitle(
"kHz");
340 fChanFFTZ[i]->GetXaxis()->SetTitle(
"Chan");
fChanFFTZ[i]->GetYaxis()->SetTitle(
"kHz");
364 fAllChanMean = tfs->make<TProfile2D>(
"fAllChanMean",
"Means for all channels", 240, -0.5, 239.5, 64, -0.5, 63.5);
365 fAllChanRMS = tfs->make<TProfile2D>(
"fAllChanRMS",
"RMS for all channels", 240, -0.5, 239.5, 64, -0.5, 63.5);
378 for(
int i=0;i<12;i++)
380 fBitValue.push_back(tfs->make<TProfile2D>(Form(
"fBitValue%d",i),Form(
"Values for bit %d",i),240,-0.5,239.5,64,-0.5,63.5,0,1));
382 fBitValue[i]->GetXaxis()->SetTitle(
"APA Number (online)");
fBitValue[i]->GetYaxis()->SetTitle(
"Plane");
fBitValue[i]->GetZaxis()->SetTitle(
"Bit Fraction On");
383 fBitValue[i]->GetXaxis()->SetLabelSize(.075);
fBitValue[i]->GetYaxis()->SetLabelSize(.05);
384 fBitValue[i]->GetXaxis()->SetBinLabel(40,
"3");
fBitValue[i]->GetXaxis()->SetBinLabel(120,
"2");
fBitValue[i]->GetXaxis()->SetBinLabel(200,
"1");
385 fBitValue[i]->GetYaxis()->SetBinLabel(5,
"U");
fBitValue[i]->GetYaxis()->SetBinLabel(15,
"V");
fBitValue[i]->GetYaxis()->SetBinLabel(26,
"Z");
386 fBitValue[i]->GetYaxis()->SetBinLabel(37,
"U");
fBitValue[i]->GetYaxis()->SetBinLabel(47,
"V");
fBitValue[i]->GetYaxis()->SetBinLabel(58,
"Z");
390 for(
int i=0;i<30;i++) {
394 fSlotChanMean_pfx.push_back(tfs->make<TProfile>(Form(
"APA%d_Slot%d_Mean", apaloc, slotloc), Form(
"APA %d Slot%d Mean_vs_SlotChannel", apaloc, slotloc), 512, 0, 512,
"s"));
395 fSlotChanRMS_pfx.push_back(tfs->make<TProfile>(Form(
"APA%d_Slot%d_RMS", apaloc, slotloc), Form(
"APA %d Slot %d RMS_vs_SlotChannel", apaloc, slotloc), 512, 0, 512,
"s"));
403 unsigned int fembmap_by_fiberID[120] =
405 320,315,310,305,319,314,309,304,318,313,308,303,317,312,307,302,316,311,306,301,505,510,515,520,504,509,514,519,503,508,513,518,502,507,512,517,501,506,511,516,220,215,210,205,219,
406 214,209,204,218,213,208,203,217,212,207,202,216,211,206,201,605,610,615,620,604,609,614,619,603,608,613,618,602,607,612,617,601,606,611,616,120,115,110,105,119,114,109,104,118,113,
407 108,103,117,112,107,102,116,111,106,101,405,410,415,420,404,409,414,419,403,408,413,418,402,407,412,417,401,406,411,416
412 for(
int i=0;i<120;i++) {
413 unsigned int imb = fembmap_by_fiberID[i];
421 for (
int i=0;i<6;++i)
428 fNTicksTPC = tfs->make<TH1F>(
"NTicksTPC",
"NTicks in TPC Channels",100,0,20000);
431 fNDeadChannelsHisto = tfs->make<TH1F>(
"fNDeadChannelsHisto",
"Number of dead channels",fNofAPA+1,0,fNofAPA+1);
432 fNDeadChannelsHisto->GetYaxis()->SetTitle(
"Number of dead channels");
438 fNDeadChannelsHistoU = tfs->make<TH1F>(
"fNDeadChannelsHistoU",
"Number of dead channels (Plane U)",fNofAPA+1,0,fNofAPA+1);
445 fNDeadChannelsHistoV = tfs->make<TH1F>(
"fNDeadChannelsHistoV",
"Number of dead channels (Plane V)",fNofAPA+1,0,fNofAPA+1);
452 fNDeadChannelsHistoZ = tfs->make<TH1F>(
"fNDeadChannelsHistoZ",
"Number of dead channels (Plane Z)",fNofAPA+1,0,fNofAPA+1);
466 for(
unsigned int i=0;i<
fNofAPA;i++){
468 TString apastring = Form(
"APA %i", j);
469 fNDeadChannelsHisto->GetXaxis()->SetBinLabel(j+1, apastring.Data());
std::vector< TProfile * > fChanStuckCodeOnFracZ
TH1F * fNDeadChannelsHistoZ
std::vector< TH2F * > fChanFFTV
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
std::vector< TH2F * > fChanFFTU
TProfile2D * fAllChanMean
std::vector< TProfile * > fFFT_by_Fiber_pfx
std::vector< TH1F * > fStuckCodeOffFrac
TH1F * fNDeadChannelsList
std::vector< TProfile * > fChanStuckCodeOffFracU
std::vector< TProfile * > fChanMeanZ_pfx
TH1F * fNNoisyChannelsHistoFromNSigma
std::vector< TProfile * > fChanStuckCodeOnFracV
std::vector< geo::WireID > ChannelToWire(raw::ChannelID_t const channel) const
Returns a list of wires connected to the specified TPC channel.
Planes which measure Z direction.
TH1F * fNNoisyChannelsHistoFromNCountsV
std::vector< TProfile * > fChanMeanV_pfx
std::vector< TH1F * > fChanMeanDistU
unsigned int Ncryostats() const
Returns the number of cryostats in the detector.
TH1F * fNNoisyChannelsHistoFromNCounts
std::vector< TH2F * > fPersistentFFT_by_APA
unsigned int Nchannels() const
Returns the number of TPC readout channels in the detector.
std::vector< TH1F * > fChanRMSDistU
TH1F * fNDeadChannelsHisto
TH1F * fNNoisyChannelsHistoFromNCountsZ
std::vector< TProfile * > fChanStuckCodeOffFracV
int fNoiseLevelMinNCountsV
TH1F * fNNoisyChannelsHistoFromNSigmaU
std::vector< TProfile * > fChanStuckCodeOnFracU
std::vector< TProfile * > fChanRMSZ_pfx
std::vector< TProfile * > fSlotChanRMS_pfx
TH1F * fNNoisyChannelsHistoFromNCountsU
std::vector< TH1F * > fChanRMSDistZ
std::vector< unsigned int > fApaLabelNum
TH1F * fNNoisyChannelsHistoFromNSigmaZ
std::vector< TProfile2D * > fBitValue
TH1F * fNNoisyChannelsHistoFromNSigmaV
std::vector< TH1F * > fChanMeanDistZ
TH1F * fNNoisyChannelsListFromNCounts
View_t View(geo::PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
TH1F * fNDeadChannelsHistoU
geo::GeometryCore const * fGeom
std::vector< TProfile * > fChanMeanU_pfx
unsigned int NTPC(unsigned int cstat=0) const
Returns the total number of TPCs in the specified cryostat.
TH1F * fNDeadChannelsHistoV
unsigned int fChansPerAPA
TH1F * fNNoisyChannelsListFromNSigma
std::vector< TH1F * > fChanMeanDistV
std::vector< TProfile * > fChanRMSV_pfx
std::vector< TH2F * > fChanFFTZ
std::vector< TProfile * > fChanStuckCodeOffFracZ
int fNoiseLevelMinNCountsZ
std::vector< TH1F * > fChanRMSDistV
int fNoiseLevelMinNCountsU
std::vector< TProfile * > fChanRMSU_pfx
QTextStream & endl(QTextStream &s)
std::vector< TProfile * > fSlotChanMean_pfx
std::vector< TH1F * > fStuckCodeOnFrac