From: Maps Date: Fri, 9 Dec 2022 12:05:53 +0000 (+0100) Subject: add two more plots to mimosis analysis X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=8715571d97ef1c14405a1640628e87690b5ad715;p=mimosis_chain.git add two more plots to mimosis analysis --- diff --git a/analysis/rawreader/mimosis.h b/analysis/rawreader/mimosis.h index 42709a4..ab861e1 100644 --- a/analysis/rawreader/mimosis.h +++ b/analysis/rawreader/mimosis.h @@ -28,6 +28,8 @@ protected: base::H1handle Columns; base::H1handle ErrorFlags; base::H2handle Matrix; + base::H2handle FrameLengthDist; + base::H2handle LengthvsError; uint32_t length = 0; uint32_t region = 0; @@ -75,6 +77,8 @@ hadaq::MimosisProcessor::MimosisProcessor(TrbProcessor* trb, unsigned subid) : Columns = MakeH1("Columns", "Hits per Column", 1024, 0, 1024, "#"); ErrorFlags = MakeH1("ErrorFlags", "", 9, 0, 9, "Bit"); Matrix = MakeH2("Matrix", "", 1024,0,1024,508,0,508); + FrameLengthDist = MakeH2("FrameLengthDist", "", 1024,0,1024,1024,0,1024,"this frame ; last frame"); + LengthvsError = MakeH2("LengthvsError", "", 1024,0,1024,2,0,2,"frame size; limit marker"); } bool hadaq::MimosisProcessor::FirstBufferScan(const base::Buffer &buf) @@ -85,6 +89,7 @@ bool hadaq::MimosisProcessor::FirstBufferScan(const base::Buffer &buf) uint32_t headers = 0, trailers = 0; unsigned n=0; unsigned headersnow = 0; + signed lastlength = -1; // length = 0; // do { @@ -100,14 +105,20 @@ bool hadaq::MimosisProcessor::FirstBufferScan(const base::Buffer &buf) } else if((data & 0xFF000000) == 0xFF000000) { trailers++; - if (headersnow && headersnow != 4) { +/* if (headersnow && headersnow != 4) { printf("%i\t%i\n",headersnow,n); if(n>6) { printf("%08x %08x %08x %08x %08x %08x %08x %08x\n",arr[n-7],arr[n-6],arr[n-5],arr[n-4],arr[n-3],arr[n-2],arr[n-1],arr[n]); } } +*/ headersnow = 0; FillH1(FrameLength,length); + if(lastlength != -1) + FillH2(FrameLengthDist, length, lastlength); + lastlength = length; + FillH2(LengthvsError,length,(data & 0x00080000)?1:0); + if(data & 0x00010000) FillH1(ErrorFlags,0); if(data & 0x00020000) FillH1(ErrorFlags,1); if(data & 0x00040000) FillH1(ErrorFlags,2); @@ -119,12 +130,12 @@ bool hadaq::MimosisProcessor::FirstBufferScan(const base::Buffer &buf) if(!(data & 0x00FF0000)) FillH1(ErrorFlags,8); } else { - if (headersnow && headersnow != 4) { +/* if (headersnow && headersnow != 4) { printf("%i\t%i\n",headersnow,n); if(n>6) { printf("%08x %08x %08x %08x %08x %08x %08x %08x\n",arr[n-7],arr[n-6],arr[n-5],arr[n-4],arr[n-3],arr[n-2],arr[n-1],arr[n]); } - } + }*/ headersnow = 0; if((data & 0xFF000000) == 0xFD000000) { region = (data>>16) & 0xff; diff --git a/scripts/legacy/basicsettings.sh b/scripts/legacy/basicsettings.sh index c3a4f66..16d7c63 100755 --- a/scripts/legacy/basicsettings.sh +++ b/scripts/legacy/basicsettings.sh @@ -1,7 +1,7 @@ #!/bin/bash -./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x2040 #'RUNMODE +./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x2060 #'RUNMODE ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x216E #'TRIMDAC ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x2200 #'INJCURR ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x2300 #'INJVOLT @@ -30,8 +30,12 @@ ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x4878 #'VCASNA' : 1, ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x4978 #'VCASNB' : 1, ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x4a78 #'VCASNC' : 1, -./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x4b6d #'VCASND' : 1, +./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x4b60 #'VCASND' : 1, ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x4c3c #'VCASN2' : 83, ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x4d37 #'VCLIP' : 50, ./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x00 -d 0x4e7d #'IBUFBIAS' : 125 + +./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x80 -d 0x5200 #'IBUFBIAS' : 125 +./i2c_cmd2.pl -w 1 -f 0xa000 -a 0x12 -c 0x80 -d 0x5306 #'IBUFBIAS' : 125 +