Skip to content
Snippets Groups Projects
Commit e13ce610 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: .gitlab-ci.yml

	modified:   online_monitor/scandalizer_monitor_shms.cxx
	modified:   rootlogon.C
	modified:   scripts/replay_production_coin.cxx
parent 49d63f2f
No related branches found
No related tags found
No related merge requests found
Pipeline #2276 passed
...@@ -11,7 +11,7 @@ elastic_replay: ...@@ -11,7 +11,7 @@ elastic_replay:
stage: data_replays stage: data_replays
script: script:
- mkdir -p testing && cd testing - mkdir -p testing && cd testing
- wget https://eicweb.phy.anl.gov/jlab/hcana/-/jobs/artifacts/master/raw/build/Singularity.hcana.simg?job=hcana_singularity -O Singularity.hcana.simg - wget -q https://eicweb.phy.anl.gov/jlab/hcana/-/jobs/artifacts/master/raw/build/Singularity.hcana.simg?job=hcana_singularity -O Singularity.hcana.simg
- singularity exec Singularity.hcana.simg bash ../.gitlabci/replay_elastic_data.sh - singularity exec Singularity.hcana.simg bash ../.gitlabci/replay_elastic_data.sh
artifacts: artifacts:
paths: paths:
......
...@@ -187,8 +187,8 @@ void scandalizer_monitor_shms(Int_t RunNumber = 7150, Int_t MaxEvent = 500000) { ...@@ -187,8 +187,8 @@ void scandalizer_monitor_shms(Int_t RunNumber = 7150, Int_t MaxEvent = 500000) {
auto SHMS_scaler_yield_monitor = new hallc::scandalizer::YieldMonitor(hscaler,"SHMS:EL_CLEAN","H.pEL_CLEAN.scaler","H.BCM2.scalerCharge"); auto SHMS_scaler_yield_monitor = new hallc::scandalizer::YieldMonitor(hscaler,"SHMS:EL_CLEAN","H.pEL_CLEAN.scaler","H.BCM2.scalerCharge");
analyzer->AddPostProcess(SHMS_scaler_yield_monitor); analyzer->AddPostProcess(SHMS_scaler_yield_monitor);
hallc::PVList pv_list; ?/hallc::PVList pv_list;
pv_list.AddPV("hcDAQMissingRefTime"); ?/pv_list.AddPV("hcDAQMissingRefTime");
hallc::scandalizer::SimplePostProcess* daq_missing_ref_monitor = hallc::scandalizer::SimplePostProcess* daq_missing_ref_monitor =
new hallc::scandalizer::SimplePostProcess( new hallc::scandalizer::SimplePostProcess(
[&]() { return 0; }, [&]() { return 0; },
...@@ -204,7 +204,7 @@ void scandalizer_monitor_shms(Int_t RunNumber = 7150, Int_t MaxEvent = 500000) { ...@@ -204,7 +204,7 @@ void scandalizer_monitor_shms(Int_t RunNumber = 7150, Int_t MaxEvent = 500000) {
total += phgcer->fNTDCRef_miss + phgcer->fNADCRef_miss; total += phgcer->fNTDCRef_miss + phgcer->fNADCRef_miss;
if ((evt->GetEvNum() > 1200) && (counter > 1000)) { if ((evt->GetEvNum() > 1200) && (counter > 1000)) {
counter = 0; counter = 0;
pv_list.Put("hcDAQMissingRefTime", total); //pv_list.Put("hcDAQMissingRefTime", total);
} }
counter++; counter++;
return 0; return 0;
......
...@@ -7,4 +7,6 @@ void rootlogon() { ...@@ -7,4 +7,6 @@ void rootlogon() {
gSystem->Load("libTree"); gSystem->Load("libTree");
gSystem->Load("libTreePlayer"); gSystem->Load("libTreePlayer");
gSystem->Load("libHist"); gSystem->Load("libHist");
gSystem->Load("libScandalizer");
//gSystem->Load("libpthread");
} }
...@@ -132,6 +132,11 @@ void replay_production_coin(Int_t RunNumber = 7224, Int_t MaxEvent = 50000) { ...@@ -132,6 +132,11 @@ void replay_production_coin(Int_t RunNumber = 7224, Int_t MaxEvent = 50000) {
pscaler->SetUseFirstEvent(kTRUE); pscaler->SetUseFirstEvent(kTRUE);
gHaEvtHandlers->Add(pscaler); gHaEvtHandlers->Add(pscaler);
// helicity scaler
auto helscaler = new THcHelicityScaler("P", "Hall C helicity scalers");
helscaler->SetROC(8);
gHaEvtHandlers->Add(helscaler);
//=:=:= //=:=:=
// HMS // HMS
//=:=:= //=:=:=
...@@ -216,6 +221,10 @@ void replay_production_coin(Int_t RunNumber = 7224, Int_t MaxEvent = 50000) { ...@@ -216,6 +221,10 @@ void replay_production_coin(Int_t RunNumber = 7224, Int_t MaxEvent = 50000) {
coin->SetEvtType(1); coin->SetEvtType(1);
coin->AddEvtType(2); coin->AddEvtType(2);
TRG->AddDetector(coin); TRG->AddDetector(coin);
// Add helicity detector to grigger apparatus
THcHelicity* helicity = new THcHelicity("helicity","Helicity Detector");
TRG->AddDetector(helicity);
// Add event handler for prestart event 125. // Add event handler for prestart event 125.
THcConfigEvtHandler* ev125 = new THcConfigEvtHandler("HC", "Config Event type 125"); THcConfigEvtHandler* ev125 = new THcConfigEvtHandler("HC", "Config Event type 125");
gHaEvtHandlers->Add(ev125); gHaEvtHandlers->Add(ev125);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment