Skip to content
Snippets Groups Projects
Commit 7b408972 authored by Vikas Singhal's avatar Vikas Singhal
Browse files

Added MUCH parameter for run831 in unpack_tsa_mcbm also

parent 0ba49efb
No related branches found
No related tags found
No related merge requests found
......@@ -529,6 +529,27 @@ void unpack_tsa_mcbm(TString inFile = "",
case 831: {
// unpacker_trdR->SetTimeOffsetNs( 70.00 );
unpacker_trdR->SetTimeOffsetNs(-25.00);
std::cout<<"MUCH: Feb by feb time offset correction......"<<std::endl;
UInt_t uRun,uNx;
Double_t offset;
ifstream infile("../mcbm2020/Parameters/time_offset_much.txt");
if (!infile) std::cout << "can not open time offset MUCH parameter List" << std::endl;
while (!infile.eof()) {
infile>>uRun>>uNx>>offset;
if(uRun !=831)continue;
unpacker_much->SetTimeOffsetNsAsic(uNx,offset);
}
infile.close();
std::cout<<"masking noisy channels......"<<std::endl;
UInt_t uChan = 0;
ifstream infile("../mcbm2020/Parameters/much_noisy_channel_list.txt");
if (!infile) std::cout << "can not open MUCH noisy channel List" << std::endl;
while (!infile.eof()) {
infile>>uRun>>uNx>>uChan;
if(uRun!=831)continue;
unpacker_much->MaskNoisyChannel(uNx,uChan,kTRUE );
}
infile.close();
break;
} // 831
case 836: {
......
......@@ -564,6 +564,7 @@ void unpack_tsa_mcbm_kronos(UInt_t uRunIdx = 99999,
if(uRun !=831)continue;
unpacker_much->SetTimeOffsetNsAsic(uNx,offset);
}
infile.close();
std::cout<<"masking noisy channels......"<<std::endl;
UInt_t uChan = 0;
ifstream infile("../mcbm2020/Parameters/much_noisy_channel_list.txt");
......@@ -573,6 +574,7 @@ void unpack_tsa_mcbm_kronos(UInt_t uRunIdx = 99999,
if(uRun!=831)continue;
unpacker_much->MaskNoisyChannel(uNx,uChan,kTRUE );
}
infile.close();
break;
} // 831
case 836: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment