diff --git a/macro/beamtime/mcbm2022/mStsAsicTimeWalk.par b/macro/beamtime/mcbm2022/mStsAsicTimeWalk.par new file mode 100644 index 0000000000000000000000000000000000000000..6117b10f01e914f8247bafb83d068454cc25c39c --- /dev/null +++ b/macro/beamtime/mcbm2022/mStsAsicTimeWalk.par @@ -0,0 +1,94 @@ +0x10008002 0 -24.343851 2.794827 -0.103235 0.001478 +0x10008002 1 -24.453138 2.485316 -0.084344 0.001143 +0x10008002 2 -21.335244 2.585311 -0.094605 0.001301 +0x10008002 3 -27.042286 3.172233 -0.124657 0.001763 +0x10008002 4 -25.045089 3.203871 -0.127637 0.001794 +0x10008002 5 -26.779818 3.087139 -0.119053 0.001645 +0x10008002 6 -24.481546 3.110816 -0.121333 0.001657 +0x10008002 7 -22.591301 2.877937 -0.113311 0.001577 +0x10008002 8 -19.424627 2.142350 -0.076907 0.001131 +0x10008002 9 -18.569512 2.213657 -0.077985 0.001104 +0x10008002 10 -16.501049 2.082342 -0.076398 0.001047 +0x10008002 11 -19.052489 2.548761 -0.098873 0.001388 +0x10008002 12 -21.833524 2.704140 -0.105664 0.001495 +0x10008002 13 -17.299280 2.451026 -0.100094 0.001467 +0x10008002 14 -19.148061 2.444700 -0.094107 0.001301 +0x10008002 15 -27.609664 2.979764 -0.118827 0.001815 +0x10008402 0 -16.073344 2.122262 -0.077667 0.001089 +0x10008402 1 -14.128047 1.925380 -0.068603 0.000927 +0x10008402 2 -14.816346 2.138562 -0.086058 0.001264 +0x10008402 3 -15.495564 2.221024 -0.090255 0.001300 +0x10008402 4 -14.726348 2.047140 -0.081099 0.001143 +0x10008402 5 -14.639612 2.115243 -0.088436 0.001292 +0x10008402 6 -15.862068 2.403059 -0.105667 0.001625 +0x10008402 7 -10.630106 1.633339 -0.067333 0.001027 +0x10008402 8 -18.162918 1.839778 -0.062554 0.000903 +0x10008402 9 -14.766435 1.629818 -0.054458 0.000773 +0x10008402 10 -13.242281 1.478376 -0.050540 0.000684 +0x10008402 11 -13.184870 1.835602 -0.069212 0.000971 +0x10008402 13 -15.820881 2.125931 -0.085089 0.001243 +0x10008402 14 -17.079033 2.253279 -0.095055 0.001457 +0x10008402 15 -21.763771 2.444369 -0.097365 0.001488 +0x10008412 0 -21.062298 2.403890 -0.102558 0.001589 +0x10008412 1 -24.543860 2.389462 -0.096190 0.001471 +0x10008412 2 -20.704607 1.996227 -0.075500 0.001141 +0x10008412 3 -22.341229 2.170088 -0.084561 0.001281 +0x10008412 4 -22.427438 2.116928 -0.079242 0.001178 +0x10008412 5 -23.909809 2.120500 -0.077669 0.001144 +0x10008412 6 -23.474690 2.298446 -0.091476 0.001419 +0x10008412 7 -21.015222 2.099456 -0.081011 0.001165 +0x10008412 8 -17.923666 2.086692 -0.082284 0.001242 +0x10008412 9 -14.506690 1.860290 -0.069751 0.001043 +0x10008412 10 -15.961562 1.900934 -0.073619 0.001135 +0x10008412 11 -15.770385 1.936563 -0.073541 0.001112 +0x10008412 12 -16.316668 1.803342 -0.066135 0.000997 +0x10008412 13 -14.351899 1.640790 -0.057478 0.000828 +0x10008412 14 -15.640816 1.622711 -0.052814 0.000721 +0x10008412 15 -29.251989 3.538843 -0.151628 0.002310 +0x10018002 0 -25.056458 3.219929 -0.125826 0.001851 +0x10018002 1 -24.371339 2.918229 -0.110544 0.001599 +0x10018002 2 -23.462901 3.175956 -0.124907 0.001805 +0x10018002 3 -24.111189 3.086661 -0.123224 0.001715 +0x10018002 4 -29.824286 3.758626 -0.156249 0.002269 +0x10018002 6 -27.337549 3.448515 -0.136996 0.001904 +0x10018002 7 -28.369105 3.765852 -0.157456 0.002274 +0x10018002 8 -20.791849 2.486259 -0.089749 0.001276 +0x10018002 9 -17.363288 2.371768 -0.088625 0.001300 +0x10018002 10 -18.272911 2.389323 -0.090529 0.001260 +0x10018002 11 -17.764736 2.624238 -0.105000 0.001490 +0x10018002 12 -19.324053 2.746429 -0.113868 0.001655 +0x10018002 13 -19.358567 2.818979 -0.117600 0.001718 +0x10018002 14 -23.161820 2.978407 -0.117120 0.001645 +0x10018002 15 -27.423694 3.107933 -0.123165 0.001840 +0x10018402 0 -16.145571 2.285077 -0.084840 0.001184 +0x10018402 1 -16.710720 2.333578 -0.088014 0.001256 +0x10018402 2 -13.307549 2.055841 -0.082222 0.001205 +0x10018402 3 -18.324998 2.492320 -0.106166 0.001586 +0x10018402 4 -12.216834 2.021692 -0.085865 0.001282 +0x10018402 5 -16.246236 2.224143 -0.094434 0.001413 +0x10018402 6 -16.092803 2.422394 -0.103351 0.001556 +0x10018402 7 -14.283653 2.054059 -0.089415 0.001367 +0x10018402 8 -16.091609 1.761754 -0.058745 0.000843 +0x10018402 9 -15.368578 1.813220 -0.061890 0.000874 +0x10018402 10 -15.429614 1.815415 -0.064702 0.000879 +0x10018402 11 -14.695207 2.035016 -0.076519 0.001062 +0x10018402 12 -14.439320 1.914747 -0.075799 0.001113 +0x10018402 13 -13.936573 1.896988 -0.071429 0.001002 +0x10018402 14 -16.212322 2.087315 -0.082074 0.001192 +0x10018402 15 -19.711627 2.072715 -0.076144 0.001141 +0x10018412 0 -14.367412 1.870214 -0.068419 0.000953 +0x10018412 1 -15.059765 1.700618 -0.056864 0.000772 +0x10018412 2 -14.580617 1.835231 -0.065276 0.000935 +0x10018412 3 -17.815214 2.049838 -0.076863 0.001137 +0x10018412 4 -15.237744 1.915726 -0.069146 0.001000 +0x10018412 5 -16.830010 1.644316 -0.054014 0.000760 +0x10018412 6 -18.143719 2.165342 -0.081457 0.001200 +0x10018412 7 -13.713480 1.750551 -0.067606 0.000995 +0x10018412 8 -15.973608 1.941389 -0.070457 0.001006 +0x10018412 9 -14.568116 1.794739 -0.061400 0.000856 +0x10018412 10 -17.442979 1.840064 -0.062072 0.000876 +0x10018412 11 -17.495727 2.166743 -0.083457 0.001253 +0x10018412 12 -15.841103 1.836733 -0.065771 0.000969 +0x10018412 13 -18.192644 2.166289 -0.082612 0.001239 +0x10018412 14 -21.460571 2.277799 -0.084761 0.001226 +0x10018412 15 -25.006354 2.532571 -0.098309 0.001455 diff --git a/macro/beamtime/mcbm2022/mStsPar.par b/macro/beamtime/mcbm2022/mStsPar.par new file mode 100644 index 0000000000000000000000000000000000000000..2211645012b5e3dc00f1cd7a907cde316bf8ece3 --- /dev/null +++ b/macro/beamtime/mcbm2022/mStsPar.par @@ -0,0 +1,90 @@ +############################################################################## +# Class: CbmMcbm2018StsPar +# Context: For mSTS testing +############################################################################## +[CbmMcbm2018StsPar] +//---------------------------------------------------------------------------- +// Total number of STS modules in the setup (11 sensors + 2 pulsers) +NbModules: Int_t 13 +// Type of each module: 0 for connectors on the right, 1 for connectors on the left +ModuleType: Int_t \ + 0 0 \ + 1 1 1 \ + 0 0 0 \ + 1 1 1 1 1 +// STS address for the first strip of each module +// 1 Line per ladder, from above beam to under beam FIXME +ModAddress: Int_t \ + 0x10008002 0x10018002 \ + 0x10008402 0x10018402 0x10107C02 \ + 0x10008412 0x10018412 0x101FFC02 \ + 0x10008812 0x10018812 0x10028812 0x10008012 0x10018012 +// Offset of module center in X, in mm (Should be done by geometry for the unpacker!) +ModCenterPosX: Double_t \ + 0.0 0.0 \ + 0.0 0.0 0.0 \ + 0.0 0.0 0.0 \ + 0.0 0.0 0.0 0.0 0.0 +// Offset of module center in Y, in mm (Should be done by geometry for the unpacker!) +ModCenterPosY: Double_t \ + 0.0 0.0 \ + 0.0 0.0 0.0 \ + 0.0 0.0 0.0 \ + 0.0 0.0 0.0 0.0 0.0 +// Total number of STS DPBs in system FIXME +NrOfDpbs: Int_t 5 +// Array to hold the unique IDs (equipment ID) for all STS DPBs, Array size has to match NrOfDpbs FIXME +DbpIdArray: Int_t \ + 0x1003 0x1002 0x1006 0x1004 0x1005 +// Array to hold the active flag for all CROBs, [ NbDpb * kuNbCrobPerDpb ] = [ NbDpb * 1 ] +CrobActiveFlag: Int_t \ + 1 1 1 1 1 +// Pulser flag for each FEB, [ NbDpb * kuNbCrobPerDpb * kuNbFebsPerCrob ] = = [ NbDpb * 1 * 5 ], 1 if pulser, 0 otherwise +FebPulserFlag: Int_t \ + 0 0 0 0 0 \ + 1 0 0 0 0 \ + 1 0 0 0 0 \ + 0 0 0 0 0 \ + 0 0 0 0 0 +// Index of the STS module for each FEB, [ NbDpb * kuNbCrobPerDpb * kuNbFebsPerCrob ] = = [ NbDpb * 1 * 5 ], -1 if inactive +FebModuleIdx: Int_t \ + -1 1 1 0 0 \ + 4 3 3 2 2 \ + 7 6 6 5 5 \ + 10 9 9 8 8 \ + 12 12 11 11 10 +// STS module side for each FEB, [ NbDpb * kuNbCrobPerDpb * kuNbFebsPerCrob ], 0 = P, 1 = N, -1 if inactive +FebModuleSide: Int_t \ + -1 1 0 1 0 \ + 1 1 0 1 0 \ + 1 1 0 1 0 \ + 0 1 0 1 0 \ + 1 0 1 0 1 +// ADC Gain in e-/ADC bin for each FEB, [ NbDpb * kuNbCrobPerDpb * kuNbFebsPerCrob ] +FebAdcGain: Double_t \ + 1.0 1.0 1.0 1.0 1.0 \ + 1.0 1.0 1.0 1.0 1.0 \ + 1.0 1.0 1.0 1.0 1.0 \ + 1.0 1.0 1.0 1.0 1.0 \ + 1.0 1.0 1.0 1.0 1.0 +// Base at Cal. Thr. in e- for each FEB, [ NbDpb * kuNbCrobPerDpb * kuNbFebsPerCrob ] +FebAdcBase: Double_t \ + 1.0 1.0 1.0 1.0 1.0 \ + 1.0 1.0 1.0 1.0 1.0 \ + 1.0 1.0 1.0 1.0 1.0 \ + 1.0 1.0 1.0 1.0 1.0 \ + 1.0 1.0 1.0 1.0 1.0 +// Thr. step in e-/Thr. Unit for each FEB, [ NbDpb * kuNbCrobPerDpb * kuNbFebsPerCrob ] +FebAdcThrGain: Double_t \ + 0.0 0.0 0.0 0.0 0.0 \ + 0.0 0.0 0.0 0.0 0.0 \ + 0.0 0.0 0.0 0.0 0.0 \ + 0.0 0.0 0.0 0.0 0.0 \ + 0.0 0.0 0.0 0.0 0.0 +FebAdcThrOffs: Int_t \ + 0 0 0 0 0 \ + 0 0 0 0 0 \ + 0 0 0 0 0 \ + 0 0 0 0 0 \ + 0 0 0 0 0 +####################### diff --git a/macro/run/run_unpack_online.C b/macro/run/run_unpack_online.C index 74c60d725c92dce16490a1ff188a8d7cd669faa3..0449a64edb6109b22f2dcaf2db0441a62774399f 100644 --- a/macro/run/run_unpack_online.C +++ b/macro/run/run_unpack_online.C @@ -124,11 +124,15 @@ void run_unpack_online(std::vector<std::string> publisher = {"tcp://localhost:55 stsconfig->SetDoWriteOutput(); stsconfig->SetDoWriteOptOutA("StsDigiPulser"); std::string parfilesbasepathSts = Form("%s/macro/beamtime/mcbm2021/", srcDir.Data()); + if (2060 <= runid) { + /// Starting to readout the U3 since 10/03/2022 Carbon run + parfilesbasepathSts = Form("%s/macro/beamtime/mcbm2022/", srcDir.Data()); + } stsconfig->SetParFilesBasePath(parfilesbasepathSts); /// Enable duplicates rejection, Ignores the ADC for duplicates check stsconfig->SetDuplicatesRejection(true, true); /// Enable Monitor plots - stsconfig->SetMonitor(GetStsMonitor(outfilename, true)); + stsconfig->SetMonitor(GetStsMonitor(outfilename, false)); stsconfig->SetSystemTimeOffset(-2221); // [ns] value to be updated stsconfig->SetMinAdcCut(1, 1); @@ -193,7 +197,7 @@ void run_unpack_online(std::vector<std::string> publisher = {"tcp://localhost:55 /// Enable duplicates rejection, Ignores the ADC for duplicates check muchconfig->SetDuplicatesRejection(true, true); /// Enable Monitor plots - muchconfig->SetMonitor(GetMuchMonitor(outfilename, true)); + muchconfig->SetMonitor(GetMuchMonitor(outfilename, false)); muchconfig->SetSystemTimeOffset(-2221); // [ns] value to be updated // muchconfig->SetMinAdcCut(1, 1); diff --git a/macro/run/run_unpack_tsa.C b/macro/run/run_unpack_tsa.C index da78e71f585103f41d19533e8daf443beb6a2630..0ee6ccefb5e353a6d9230e80c9e4e8acc62a3148 100644 --- a/macro/run/run_unpack_tsa.C +++ b/macro/run/run_unpack_tsa.C @@ -136,6 +136,10 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid stsconfig->SetDoWriteOutput(); stsconfig->SetDoWriteOptOutA("StsDigiPulser"); std::string parfilesbasepathSts = Form("%s/macro/beamtime/mcbm2021/", srcDir.Data()); + if (2060 <= runid) { + /// Starting to readout the U3 since 10/03/2022 Carbon run + parfilesbasepathSts = Form("%s/macro/beamtime/mcbm2022/", srcDir.Data()); + } stsconfig->SetParFilesBasePath(parfilesbasepathSts); /// Enable duplicates rejection, Ignores the ADC for duplicates check stsconfig->SetDuplicatesRejection(true, true);