|
BmnRoot
|
#include <stdio.h>#include <boost/circular_buffer.hpp>#include <boost/exception/all.hpp>#include <boost/property_tree/json_parser.hpp>#include <boost/property_tree/ptree.hpp>#include <zmq.h>#include <TBufferFile.h>#include <TCanvas.h>#include <TH2F.h>#include <THttpServer.h>#include <TSystem.h>#include <root/TH1.h>#include "BmnDataReceiver.h"#include "BmnProfRawTools.h"Go to the source code of this file.
Classes | |
| struct | ProfiMap |
Macros | |
| #define | PAD_WIDTH 1920 |
| #define | PAD_HEIGHT 2600 |
Functions | |
| TCanvas * | can2d (nullptr) |
| TCanvas * | can (nullptr) |
| int | ReadMap (string name) |
| int | ProcessBuffer (uint32_t *word, size_t len) |
| int | ReorderBits () |
| int | CalcMean () |
| int | GetCluster (vector< int > &input, vector< float > &mean, float &sig) |
| int | MapStrip (size_t &iChar, size_t &iCh) |
| int | FillSpill () |
| void | ClearAllVectors () |
| int | Draw (TCanvas *c, vector< TH1 * > hv, vector< string > optV) |
| int | Draw (TCanvas *c, vector< TH1 * > hv) |
| int | DrawAll () |
| int | main (int argc, char **argv) |
Variables | |
| const size_t | ASIC_channel = 32 |
| const size_t | NChannels_run9 = 64 |
| const string | DataHeader = "DAT" |
| const string | DataTrailer = "SPILLEND" |
| uint32_t | temp_cntr = 0 |
| const size_t | SpillCount = 10 |
| vector< boost::circular_buffer< vector< float > > > | cb |
| vector< boost::circular_buffer< size_t > > | cb_event_count |
| vector< TH1 * > | hVec |
| vector< string > | hVecOpt |
| vector< TH1 * > | hVec2D |
| vector< vector< int > > | adc1_word_char |
| vector< vector< vector< int > > > | adc1_ch |
| vector< vector< float > > | adc1_ch_mean |
| vector< vector< bitset< ASIC_channel > > > | adc1 |
| vector< vector< bitset< ASIC_channel > > > | adc2 |
| vector< bitset< ASIC_channel > > | adc1_word |
| vector< bitset< ASIC_channel > > | adc2_word |
| uint32_t | spill_cntr = 0 |
| size_t | NChars = 0 |
| const int | NBins = 200 |
| const int | ADCLimit = 2050 |
| const float | thr = 0 |
| const int | NCols = 2 |
| const int | NGenHists = 4 |
| vector< ProfiMap > | channel_maps |
| #define PAD_HEIGHT 2600 |
Definition at line 22 of file BmnMonProf.cxx.
| #define PAD_WIDTH 1920 |
Definition at line 21 of file BmnMonProf.cxx.
| int CalcMean | ( | ) |
Definition at line 185 of file BmnMonProf.cxx.
References adc1_ch, adc1_ch_mean, and channel_maps.
Referenced by main().
| TCanvas * can | ( | nullptr | ) |
Referenced by DrawAll(), BmnHist::DrawRef(), BmnEmbedding::Embed(), BmnCustomQa::Finish(), BmnCustomQa::Init(), main(), and BmnReport::Register().
| void ClearAllVectors | ( | ) |
Definition at line 319 of file BmnMonProf.cxx.
References adc1, adc1_ch, adc1_ch_mean, adc1_word, adc1_word_char, adc2, adc2_word, i, and NChars.
Referenced by main().
| int Draw | ( | TCanvas * | c, |
| vector< TH1 * > | hv | ||
| ) |
Definition at line 343 of file BmnMonProf.cxx.
References i.
| int Draw | ( | TCanvas * | c, |
| vector< TH1 * > | hv, | ||
| vector< string > | optV | ||
| ) |
Definition at line 332 of file BmnMonProf.cxx.
References i.
Referenced by DrawAll(), HDraw(), and BmnLambdaEmbeddingDrawHistos::ProcessHistos().
| int DrawAll | ( | ) |
| int FillSpill | ( | ) |
Definition at line 239 of file BmnMonProf.cxx.
References adc1_ch, adc1_ch_mean, ASIC_channel, cb, cb_event_count, channel_maps, hVec, hVec2D, iX, iY, MapStrip(), NChannels_run9, NChars, and thr.
Referenced by main().
| int GetCluster | ( | vector< int > & | input, |
| vector< float > & | mean, | ||
| float & | sig | ||
| ) |
Definition at line 193 of file BmnMonProf.cxx.
References ASIC_channel, max(), and thr.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 361 of file BmnMonProf.cxx.
References adc1_ch, adc1_ch_mean, adc1_word_char, ADCLimit, ASIC_channel, CalcMean(), can(), can2d(), cb, cb_event_count, channel_maps, ClearAllVectors(), DataHeader, DataTrailer, DBGERR, DrawAll(), FillSpill(), hVec, hVec2D, hVecOpt, NBins, NChannels_run9, NChars, NGenHists, PAD_HEIGHT, PAD_WIDTH, ProcessBuffer(), ReadMap(), ReorderBits(), and SpillCount.
|
inline |
Definition at line 234 of file BmnMonProf.cxx.
References channel_maps.
Referenced by BmnCscRaw2Digit::FillNoisyChannels(), BmnGemRaw2Digit::FillNoisyChannels(), BmnSiBTRaw2Digit::FillNoisyChannels(), BmnSiliconRaw2Digit::FillNoisyChannels(), and FillSpill().
| int ProcessBuffer | ( | uint32_t * | word, |
| size_t | len | ||
| ) |
Definition at line 114 of file BmnMonProf.cxx.
References adc1, adc1_word, adc2, adc2_word, BmnProfRawTools::adc_num(), ASIC_channel, BmnProfRawTools::data_or_trig(), BmnProfRawTools::holdb_cntr(), and i.
Referenced by main().
| int ReadMap | ( | string | name | ) |
Definition at line 65 of file BmnMonProf.cxx.
References channel_maps, ProfiMap::ChannelName, m, and v.
Referenced by BmnGemRaw2Digit::BmnGemRaw2Digit(), and main().
| int ReorderBits | ( | ) |
Definition at line 163 of file BmnMonProf.cxx.
References adc1, adc1_ch, adc1_word_char, BmnProfRawTools::adc_ch(), channel_maps, and i.
Referenced by main().
| vector<vector<bitset<ASIC_channel> > > adc1 |
Definition at line 42 of file BmnMonProf.cxx.
Referenced by ClearAllVectors(), ProcessBuffer(), ReorderBits(), and DstEventHeader::SetADC1().
| vector<vector<vector<int> > > adc1_ch |
Definition at line 39 of file BmnMonProf.cxx.
Referenced by CalcMean(), ClearAllVectors(), FillSpill(), main(), and ReorderBits().
| vector<vector<float> > adc1_ch_mean |
Definition at line 40 of file BmnMonProf.cxx.
Referenced by CalcMean(), ClearAllVectors(), FillSpill(), and main().
| vector<bitset<ASIC_channel> > adc1_word |
Definition at line 43 of file BmnMonProf.cxx.
Referenced by ClearAllVectors(), and ProcessBuffer().
| vector<vector<int> > adc1_word_char |
Definition at line 38 of file BmnMonProf.cxx.
Referenced by ClearAllVectors(), main(), and ReorderBits().
| vector<vector<bitset<ASIC_channel> > > adc2 |
Definition at line 42 of file BmnMonProf.cxx.
Referenced by ClearAllVectors(), ProcessBuffer(), and DstEventHeader::SetADC2().
| vector<bitset<ASIC_channel> > adc2_word |
Definition at line 43 of file BmnMonProf.cxx.
Referenced by ClearAllVectors(), and ProcessBuffer().
| const int ADCLimit = 2050 |
Definition at line 48 of file BmnMonProf.cxx.
Referenced by main().
| const size_t ASIC_channel = 32 |
Definition at line 23 of file BmnMonProf.cxx.
Referenced by FillSpill(), GetCluster(), main(), and ProcessBuffer().
| vector<boost::circular_buffer<vector<float> > > cb |
Definition at line 32 of file BmnMonProf.cxx.
Referenced by FillSpill(), main(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::parse(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::parse(), and nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::parse().
| vector<boost::circular_buffer<size_t> > cb_event_count |
Definition at line 33 of file BmnMonProf.cxx.
Referenced by FillSpill(), and main().
| vector<ProfiMap> channel_maps |
Definition at line 63 of file BmnMonProf.cxx.
Referenced by CalcMean(), FillSpill(), main(), MapStrip(), ReadMap(), and ReorderBits().
| const string DataHeader = "DAT" |
Definition at line 26 of file BmnMonProf.cxx.
Referenced by main().
| const string DataTrailer = "SPILLEND" |
Definition at line 27 of file BmnMonProf.cxx.
Referenced by main().
| vector<TH1*> hVec |
Definition at line 35 of file BmnMonProf.cxx.
Referenced by DrawAll(), FillSpill(), and main().
| vector<TH1*> hVec2D |
Definition at line 37 of file BmnMonProf.cxx.
Referenced by DrawAll(), FillSpill(), and main().
| vector<string> hVecOpt |
Definition at line 36 of file BmnMonProf.cxx.
| const int NBins = 200 |
Definition at line 47 of file BmnMonProf.cxx.
Referenced by CbmL1::Init(), and main().
| const size_t NChannels_run9 = 64 |
Definition at line 24 of file BmnMonProf.cxx.
Referenced by FillSpill(), and main().
| size_t NChars = 0 |
Definition at line 46 of file BmnMonProf.cxx.
Referenced by ClearAllVectors(), FillSpill(), and main().
| const int NCols = 2 |
Definition at line 50 of file BmnMonProf.cxx.
| const int NGenHists = 4 |
Definition at line 51 of file BmnMonProf.cxx.
Referenced by main().
| uint32_t spill_cntr = 0 |
Definition at line 45 of file BmnMonProf.cxx.
| const size_t SpillCount = 10 |
Definition at line 30 of file BmnMonProf.cxx.
Referenced by main().
| uint32_t temp_cntr = 0 |
Definition at line 29 of file BmnMonProf.cxx.
| const float thr = 0 |
Definition at line 49 of file BmnMonProf.cxx.
Referenced by BmnAdcProcessor::CalcEventMods(), BmnAdcProcessor::CalcEventMods_simd(), BmnRecoTools::FillSetStsHits(), FillSpill(), GetCluster(), BmnConverterTools::ParseRawT0TextConfig(), BmnAdcProcessor::RecalculatePedestalsAugmented(), and RLDeconvolutor::setR2threshold().