Skip to content
Snippets Groups Projects
Commit ebf53d07 authored by Cdaq Account's avatar Cdaq Account
Browse files

Rearrange db_run.dat and db_cratemap.dat

Move db_run.dat to DBASE
Move db_cratemap.dat to MAPS
add file setup.csh that setenv DB_DIR DBASE
modify SCRIPTS/replay_hms.C to have line
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
parent 6e66ad44
No related branches found
No related tags found
No related merge requests found
File moved
File moved
...@@ -37,7 +37,6 @@ void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -37,7 +37,6 @@ void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) {
// gHcParms->GetString("g_decode_map_filename") // gHcParms->GetString("g_decode_map_filename")
//); //);
//system(command); //system(command);
// Load the Hall C style detector map // Load the Hall C style detector map
gHcDetectorMap = new THcDetectorMap(); gHcDetectorMap = new THcDetectorMap();
gHcDetectorMap->Load(gHcParms->GetString("g_decode_map_filename")); gHcDetectorMap->Load(gHcParms->GetString("g_decode_map_filename"));
...@@ -95,6 +94,7 @@ void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -95,6 +94,7 @@ void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) {
// 1 = counter is # of all decode reads // 1 = counter is # of all decode reads
// 2 = counter is event number // 2 = counter is event number
analyzer->SetEvent(event); analyzer->SetEvent(event);
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
analyzer->SetOutFile(ROOTFileName.Data()); analyzer->SetOutFile(ROOTFileName.Data());
analyzer->SetOdefFile("DEF-files/hdcana.def"); analyzer->SetOdefFile("DEF-files/hdcana.def");
analyzer->SetCutFile("DEF-files/hdcana_cuts.def"); // optional analyzer->SetCutFile("DEF-files/hdcana_cuts.def"); // optional
......
setenv DB_DIR DBASE
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