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

Pooser report file work (#178)

* 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

* Change from PROD to PRODUCTION to be consistant
parent 2ffe4293
No related branches found
No related tags found
No related merge requests found
Showing
with 7 additions and 7 deletions
void replay_all_shms (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
void replay_production_shms (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
// Get RunNumber and MaxEvent if not provided.
if(RunNumber == 0) {
......@@ -17,7 +17,7 @@ void replay_all_shms (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
// Create file name patterns.
const char* RunFileNamePattern = "raw/shms_all_%05d.dat";
const char* ROOTFileNamePattern = "ROOTfiles/shms_replay_all_%d_%d.root";
const char* ROOTFileNamePattern = "ROOTfiles/shms_replay_production_%d_%d.root";
// Load global parameters
// Add variables to global list.
......@@ -120,15 +120,15 @@ void replay_all_shms (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
// Define output ROOT file
analyzer->SetOutFile(ROOTFileName.Data());
// Define DEF-file
analyzer->SetOdefFile("DEF-files/SHMS/ALL/pstackana_all.def");
analyzer->SetOdefFile("DEF-files/SHMS/PRODUCTION/pstackana_production.def");
// Define cuts file
analyzer->SetCutFile("DEF-files/SHMS/ALL/pstackana_all_cuts.def"); // optional
analyzer->SetCutFile("DEF-files/SHMS/PRODUCTION/pstackana_production_cuts.def"); // optional
// File to record accounting information for cuts
analyzer->SetSummaryFile(Form("REPORT_OUTPUT/SHMS/ALL/summary_all_%d_%d.report", RunNumber, MaxEvent)); // optional
analyzer->SetSummaryFile(Form("REPORT_OUTPUT/SHMS/PRODUCTION/summary_production_%d_%d.report", RunNumber, MaxEvent)); // optional
// Start the actual analysis.
analyzer->Process(run);
// Create report file from template
analyzer->PrintReport("TEMPLATES/SHMS/ALL/pstackana_all.template",
Form("REPORT_OUTPUT/SHMS/ALL/replay_shms_all_%d_%d.report", RunNumber, MaxEvent)); // optional
analyzer->PrintReport("TEMPLATES/SHMS/PRODUCTION/pstackana_production.template",
Form("REPORT_OUTPUT/SHMS/PRODUCTION/replay_shms_production_%d_%d.report", RunNumber, MaxEvent)); // optional
}
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