Skip to content
Snippets Groups Projects
Commit eae881c5 authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Autogenerate db_cratemap.dat in hodtest.C so that it always corresponds

to the (Hall C ENGINE style) map file being used.
parent 51e240f3
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ hcana
# Examples directory
examples/*.root
examples/*.log.*
# This is auto generated by hodtest.C
examples/db_cratemap.dat
# Working directory
work
# Hall C Crate map
==== Crate 1 type fastbus
# slot model clear header mask nchan ndata
1 1881 1 0x0 0x0 64 64
3 1881 1 0x0 0x0 64 64
5 1881 1 0x0 0x0 64 64
7 1881 1 0x0 0x0 64 64
9 1881 1 0x0 0x0 64 64
11 1881 1 0x0 0x0 64 64
13 1881 1 0x0 0x0 64 64
18 1875 1 0x0 0x0 64 64
19 1875 1 0x0 0x0 64 64
21 1875 1 0x0 0x0 64 64
23 1875 1 0x0 0x0 64 64
==== Crate 2 type fastbus
# slot model clear header mask nchan ndata
2 1877 1 0x0 0x0 64 256
3 1877 1 0x0 0x0 64 256
5 1877 1 0x0 0x0 64 256
6 1877 1 0x0 0x0 64 256
8 1877 1 0x0 0x0 64 256
9 1877 1 0x0 0x0 64 256
15 1877 1 0x0 0x0 64 256
16 1877 1 0x0 0x0 64 256
18 1877 1 0x0 0x0 64 256
19 1877 1 0x0 0x0 64 256
21 1877 1 0x0 0x0 64 256
22 1877 1 0x0 0x0 64 256
==== Crate 3 type fastbus
# slot model clear header mask nchan ndata
1 1881 1 0x0 0x0 64 64
3 1881 1 0x0 0x0 64 64
5 1881 1 0x0 0x0 64 64
7 1881 1 0x0 0x0 64 64
9 1881 1 0x0 0x0 64 64
18 1875 1 0x0 0x0 64 64
20 1875 1 0x0 0x0 64 64
22 1875 1 0x0 0x0 64 64
==== Crate 4 type fastbus
# slot model clear header mask nchan ndata
1 1877 1 0x0 0x0 64 256
2 1877 1 0x0 0x0 64 256
4 1877 1 0x0 0x0 64 256
5 1877 1 0x0 0x0 64 256
8 1877 1 0x0 0x0 64 256
9 1877 1 0x0 0x0 64 256
11 1877 1 0x0 0x0 64 256
12 1877 1 0x0 0x0 64 256
......@@ -17,13 +17,17 @@
gHcParms->Load(gHcParms->GetString("g_ctp_parm_filename"));
// Load the Hall C style detector map
// Generate db_cratemap to correspond to map file contents
char command[100];
sprintf(command,"./make_cratemap.pl < %s > db_cratemap.dat",gHcParms->GetString("g_decode_map_filename"));
system(command);
// Load the Hall C style detector map
gHcDetectorMap=new THcDetectorMap();
gHcDetectorMap->Load(gHcParms->GetString("g_decode_map_filename"));
// Set up the equipment to be analyzed.
THaApparatus* HMS = new THcHallCSpectrometer("H","HMS");
gHaApps->Add( HMS );
......
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