Skip to content
Snippets Groups Projects
Commit 1d81e586 authored by Cyril Lenain's avatar Cyril Lenain :surfer_tone3:
Browse files

Adding example of calibration in Vendeta project

parent 91650f38
No related branches found
No related tags found
No related merge requests found
Pipeline #193353 passed
FissionChamber_ANODE1_TIMEOFSSET 0
FissionChamber_ANODE2_TIMEOFSSET 0
FissionChamber_ANODE3_TIMEOFSSET 0
FissionChamber_ANODE4_TIMEOFSSET 0
FissionChamber_ANODE5_TIMEOFSSET 0
FissionChamber_ANODE6_TIMEOFSSET 0
FissionChamber_ANODE7_TIMEOFSSET 0
FissionChamber_ANODE8_TIMEOFSSET 0
FissionChamber_ANODE9_TIMEOFSSET 0
FissionChamber_ANODE10_TIMEOFSSET 0
FissionChamber_ANODE11_TIMEOFSSET 0
void GenerateCalibFile(){
string output_filename = "Vendeta_Time.cal";
ofstream ofile;
ofile.open(output_filename.c_str());
int det_number=72;
int anode_number=11;
double time_offset=0;
for(int i=1;i<det_number+1;i++){
for(int j=1;j<anode_number+1;j++){
TString token_lg = Form("Vendeta_DET%i_LG_ANODE%i_TIMEOFFSET",i,j);
TString token_hg = Form("Vendeta_DET%i_HG_ANODE%i_TIMEOFFSET",i,j);
ofile << token_lg << " " << time_offset << endl;
ofile << token_hg << " " << time_offset << endl;
}
}
ofile.close();
}
This diff is collapsed.
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