Fixed HG0 setting for JF11 (bit 1 of reg 0x5d + conf register reload)

CS script changed to start and kill receivers autoamtically.
Mudules 347 361 362 355 364 366 calibrated with these scripts
This commit is contained in:
mozzanica
2021-03-15 08:15:20 +01:00
parent d4fff9739a
commit 0641de6e13
8 changed files with 261 additions and 59 deletions

View File

@ -247,6 +247,11 @@ int main(int argc, char* argv[]) {
scan_v6.push_back("334");
scan_v6.push_back("337");
scan_v6.push_back("347");
scan_v6.push_back("361");
scan_v6.push_back("362");
scan_v6.push_back("355");
scan_v6.push_back("364");
scan_v6.push_back("366");
jungfrauFile *thisfile = new jungfrauFile();
@ -274,6 +279,10 @@ int main(int argc, char* argv[]) {
int createHistoFile = 1; //set 0 for a fit-only run
int createPerStepHistos = 0; //debug
#ifdef JF11
cout << "COMPILED for JF11 !!!" << endl;
#endif
// create necessary directories with permissions drwxrwxr-x
// data/Mxxx
sprintf(savename,"data/M%s", module_str.c_str());
@ -537,9 +546,9 @@ int main(int argc, char* argv[]) {
adcmap_all->Fill(i%NC,i/NC,adc);
gainmap_all->Fill(i%NC,i/NC,gain);
}
#ifdef JF11
if (((i/NC <= 255) && (((i%64)) == 63-(j)%64)) ||
((i/NC >= 256) &&( ((-1*(i-524287))%64) == 63-(j)%64))) { //scanning on "+-i")
#ifdef NONSERVE //in reality it is shift in the right direction 0x5b=80000000 and 0x5a=00000000
if (((i/NC <= 255) && (((i%64)) == 63-(j-1)%64)) ||
((i/NC >= 256) &&( ((-1*(i-524287))%64) == 63-(j-1)%64))) { //scanning on "+-i")
#else
if (((i/NC <= 255) && (i%64 == (j-1)%64)) ||
((i/NC >= 256) &&((-1*(i-524287))%64 == (j-1)%64))) {
@ -1818,7 +1827,7 @@ int main(int argc, char* argv[]) {
#ifdef JF11
g1overg2map->GetZaxis()->SetRangeUser(11,12.5);
#else
g1overg2map->GetZaxis()->SetRangeUser(12,13.2);
g1overg2map->GetZaxis()->SetRangeUser(12,13.2);
#endif
g1overg2map->Draw("colz");