Skip to content
Snippets Groups Projects
Commit 2ffe4293 authored by Eric Pooser's avatar Eric Pooser Committed by GitHub
Browse files

Pooser report file work (#176)

* Include trigger apparatus to scaler replay

* Add rate, live time, and dead time to scalers template

* Add rate, live time, and dead time to all template

* Rename ALL to PROD for production

* Move test stand DEF-files into TEST_STAND directory
parent 487a6edf
No related branches found
No related tags found
No related merge requests found
Showing
with 44 additions and 25 deletions
...@@ -29,10 +29,20 @@ void replay_shms_scalers (Int_t RunNumber = 0, Int_t MaxEvent = 0) { ...@@ -29,10 +29,20 @@ void replay_shms_scalers (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
gHcParms->Load(gHcParms->GetString("g_ctp_kinematics_filename"), RunNumber); gHcParms->Load(gHcParms->GetString("g_ctp_kinematics_filename"), RunNumber);
gHcParms->Load(gHcParms->GetString("g_ctp_parm_filename")); gHcParms->Load(gHcParms->GetString("g_ctp_parm_filename"));
gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename")); gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
// Load params for SHMS trigger configuration
gHcParms->Load("PARAM/TRIG/tshms.param");
// Load the Hall C detector map // Load the Hall C detector map
gHcDetectorMap = new THcDetectorMap(); gHcDetectorMap = new THcDetectorMap();
gHcDetectorMap->Load("MAPS/SHMS/DETEC/STACK/shms_stack.map"); gHcDetectorMap->Load("MAPS/SHMS/DETEC/STACK/shms_stack.map");
// Add trigger apparatus
THaApparatus* TRG = new THcTrigApp("T", "TRG");
gHaApps->Add(TRG);
// Add trigger detector to trigger apparatus
THcTrigDet* shms = new THcTrigDet("shms", "SHMS Trigger Information");
TRG->AddDetector(shms);
// Add handler for EPICS events // Add handler for EPICS events
THaEpicsEvtHandler *hcepics = new THaEpicsEvtHandler("epics", "HC EPICS event type 180"); THaEpicsEvtHandler *hcepics = new THaEpicsEvtHandler("epics", "HC EPICS event type 180");
gHaEvtHandlers->Add(hcepics); gHaEvtHandlers->Add(hcepics);
......
...@@ -89,8 +89,8 @@ void replay_paero_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -89,8 +89,8 @@ void replay_paero_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
analyzer->SetEvent(event); analyzer->SetEvent(event);
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat"); analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
analyzer->SetOutFile(ROOTFileName.Data()); analyzer->SetOutFile(ROOTFileName.Data());
analyzer->SetOdefFile("DEF-files/SHMS/AERO/paeroana.def"); analyzer->SetOdefFile("DEF-files/SHMS/TEST_STANDS/AERO/paeroana.def");
analyzer->SetCutFile("DEF-files/SHMS/AERO/paeroana_cuts.def"); // optional analyzer->SetCutFile("DEF-files/SHMS/TEST_STANDS/AERO/paeroana_cuts.def"); // optional
// File to record cuts accounting information // File to record cuts accounting information
//analyzer->SetSummaryFile("summary_example.log"); // optional //analyzer->SetSummaryFile("summary_example.log"); // optional
......
...@@ -79,8 +79,8 @@ void replay_pcal_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -79,8 +79,8 @@ void replay_pcal_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
analyzer->SetEvent(event); analyzer->SetEvent(event);
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat"); analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
analyzer->SetOutFile(ROOTFileName.Data()); analyzer->SetOutFile(ROOTFileName.Data());
analyzer->SetOdefFile("DEF-files/SHMS/CAL/pcalana.def"); analyzer->SetOdefFile("DEF-files/SHMS/TEST_STANDS/CAL/pcalana.def");
analyzer->SetCutFile("DEF-files/SHMS/CAL/pcalana_cuts.def"); // optional analyzer->SetCutFile("DEF-files/SHMS/TEST_STANDS/CAL/pcalana_cuts.def"); // optional
// File to record cuts accounting information // File to record cuts accounting information
//analyzer->SetSummaryFile("summary_example.log"); // optional //analyzer->SetSummaryFile("summary_example.log"); // optional
......
...@@ -93,8 +93,8 @@ void replay_pdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -93,8 +93,8 @@ void replay_pdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
analyzer->SetEvent(event); analyzer->SetEvent(event);
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat"); analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
analyzer->SetOutFile(ROOTFileName.Data()); analyzer->SetOutFile(ROOTFileName.Data());
analyzer->SetOdefFile("DEF-files/SHMS/DC/pdcana.def"); analyzer->SetOdefFile("DEF-files/SHMS/TEST_STANDS/DC/pdcana.def");
analyzer->SetCutFile("DEF-files/SHMS/DC/pdcana_cuts.def"); // optional analyzer->SetCutFile("DEF-files/SHMS/TEST_STANDS/DC/pdcana_cuts.def"); // optional
// File to record cuts accounting information // File to record cuts accounting information
//analyzer->SetSummaryFile("summary_example.log"); // optional //analyzer->SetSummaryFile("summary_example.log"); // optional
......
...@@ -88,8 +88,8 @@ void replay_phgcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -88,8 +88,8 @@ void replay_phgcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
analyzer->SetEvent(event); analyzer->SetEvent(event);
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat"); analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
analyzer->SetOutFile(ROOTFileName.Data()); analyzer->SetOutFile(ROOTFileName.Data());
analyzer->SetOdefFile("DEF-files/SHMS/HGCER/phgcerana.def"); analyzer->SetOdefFile("DEF-files/SHMS/TEST_STANDS/HGCER/phgcerana.def");
analyzer->SetCutFile("DEF-files/SHMS/HGCER/phgcerana_cuts.def"); // optional analyzer->SetCutFile("DEF-files/SHMS/TEST_STANDS/HGCER/phgcerana_cuts.def"); // optional
// File to record cuts accounting information // File to record cuts accounting information
//analyzer->SetSummaryFile("summary_example.log"); // optional //analyzer->SetSummaryFile("summary_example.log"); // optional
......
...@@ -91,8 +91,8 @@ void replay_phodo_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -91,8 +91,8 @@ void replay_phodo_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
analyzer->SetEvent(event); analyzer->SetEvent(event);
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat"); analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
analyzer->SetOutFile(ROOTFileName.Data()); analyzer->SetOutFile(ROOTFileName.Data());
analyzer->SetOdefFile("DEF-files/SHMS/HODO/phodoana.def"); analyzer->SetOdefFile("DEF-files/SHMS/TEST_STANDS/HODO/phodoana.def");
analyzer->SetCutFile("DEF-files/SHMS/HODO/phodoana_cuts.def"); // optional analyzer->SetCutFile("DEF-files/SHMS/TEST_STANDS/HODO/phodoana_cuts.def"); // optional
// File to record cuts accounting information // File to record cuts accounting information
//analyzer->SetSummaryFile("summary_example.log"); // optional //analyzer->SetSummaryFile("summary_example.log"); // optional
......
...@@ -88,8 +88,8 @@ void replay_pngcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -88,8 +88,8 @@ void replay_pngcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
analyzer->SetEvent(event); analyzer->SetEvent(event);
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat"); analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
analyzer->SetOutFile(ROOTFileName.Data()); analyzer->SetOutFile(ROOTFileName.Data());
analyzer->SetOdefFile("DEF-files/SHMS/NGCER/pngcerana.def"); analyzer->SetOdefFile("DEF-files/SHMS/TEST_STANDS/NGCER/pngcerana.def");
analyzer->SetCutFile("DEF-files/SHMS/NGCER/pngcerana_cuts.def"); // optional analyzer->SetCutFile("DEF-files/SHMS/TEST_STANDS/NGCER/pngcerana_cuts.def"); // optional
// File to record cuts accounting information // File to record cuts accounting information
//analyzer->SetSummaryFile("summary_example.log"); // optional //analyzer->SetSummaryFile("summary_example.log"); // optional
......
...@@ -81,8 +81,8 @@ void replay_ptrig_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -81,8 +81,8 @@ void replay_ptrig_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
analyzer->SetEvent(event); analyzer->SetEvent(event);
analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat"); analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
analyzer->SetOutFile(ROOTFileName.Data()); analyzer->SetOutFile(ROOTFileName.Data());
analyzer->SetOdefFile("DEF-files/SHMS/TRIG/ptrigana.def"); analyzer->SetOdefFile("DEF-files/SHMS/TEST_STANDS/TRIG/ptrigana.def");
analyzer->SetCutFile("DEF-files/SHMS/TRIG/ptrigana_cuts.def"); // optional analyzer->SetCutFile("DEF-files/SHMS/TEST_STANDS/TRIG/ptrigana_cuts.def"); // optional
// File to record cuts accounting information // File to record cuts accounting information
//analyzer->SetSummaryFile("summary_example.log"); // optional //analyzer->SetSummaryFile("summary_example.log"); // optional
......
Run #: {gen_run_number}
Run #{gen_run_number} Run Time : {PS1Mhz} {PS1Mhz/1000000.} sec
Run Time: {PS1Mhz} {PS1Mhz/1000000.} sec BCM1 : {(PSBCM1r-250000)/(4673):%3.3f} uA Total charge = {(PSBCM1r-250000) / (4673)*PS1Mhz/1000000.:%7.3f} uC
BCM2 : {(PSBCM2r-250000)/(3954):%3.3f} uA Total charge = {(PSBCM2r-250000) / (3954)*PS1Mhz/1000000.:%7.3f} uC
Unser : {(PSUnserr-393000)/(4000):%3.3f} uA Total charge = {(PSUnserr-393000) / (4000)*PS1Mhz/1000000.:%7.3f} uC
BCM1 : {(PSBCM1r-250000)/(4673)} uA Total charge = {(PSBCM1r-250000) / (4673)*PS1Mhz/1000000.} uC All triggers : {all_trigs.npassed}
BCM2 : {(PSBCM2r-250000)/(3954)} uA Total charge = {(PSBCM2r-250000) / (3954)*PS1Mhz/1000000.} uC
Unser : {(PSUnserr-393000)/(4000)} uA Total charge = {(PSUnserr-393000) / (4000)*PS1Mhz/1000000.} uC
All triggers: {all_trigs.npassed} Rate : {PSsTrigr/1000.:%7.3f} kHz
Live Time : {(all_trigs.npassed / PSsTrig)*100.0:%3.2f} %
Dead Time : {100.0 - (all_trigs.npassed / PSsTrig)*100.0:%3.2f} %
good_S1_time Counts: {good_S1_time.npassed} / all_trigs : {good_S1_time.npassed / all_trigs.npassed} good_S1_time Counts: {good_S1_time.npassed} / all_trigs : {good_S1_time.npassed / all_trigs.npassed}
good_S2X_time Counts: {good_S2X_time.npassed} / all_trigs : {good_S2X_time.npassed / all_trigs.npassed} good_S2X_time Counts: {good_S2X_time.npassed} / all_trigs : {good_S2X_time.npassed / all_trigs.npassed}
......
Run #{gen_run_number} Run #: {gen_run_number}
Run Time : {PS1Mhz} {PS1Mhz/1000000.} sec Run Time : {PS1Mhz} {PS1Mhz/1000000.} sec
BCM1 : {(PSBCM1r-250000)/(4673)} uA Total charge = {(PSBCM1r-250000) / (4673)*PS1Mhz/1000000.} uC BCM1 : {(PSBCM1r-250000)/(4673):%3.3f} uA Total charge = {(PSBCM1r-250000) / (4673)*PS1Mhz/1000000.:%7.3f} uC
BCM2 : {(PSBCM2r-250000)/(3954)} uA Total charge = {(PSBCM2r-250000) / (3954)*PS1Mhz/1000000.} uC BCM2 : {(PSBCM2r-250000)/(3954):%3.3f} uA Total charge = {(PSBCM2r-250000) / (3954)*PS1Mhz/1000000.:%7.3f} uC
Unser : {(PSUnserr-393000)/(4000)} uA Total charge = {(PSUnserr-393000) / (4000)*PS1Mhz/1000000.} uC Unser : {(PSUnserr-393000)/(4000):%3.3f} uA Total charge = {(PSUnserr-393000) / (4000)*PS1Mhz/1000000.:%7.3f} uC
All triggers : {all_trigs.npassed} All triggers : {all_trigs.npassed}
\ No newline at end of file
Rate : {PSsTrigr/1000.:%7.3f} kHz
Live Time : {(all_trigs.npassed / PSsTrig)*100.0:%3.2f} %
Dead Time : {100.0 - (all_trigs.npassed / PSsTrig)*100.0:%3.2f} %
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment