Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions DBASE/db_D.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--------[ 2015-01-01 01:00:00 ]

timeroc1 crate 1 21 2
timeroc2 crate 2 21 2
timeroc3 crate 3 21 2
timeroc4 crate 4 21 2
timeroc5 crate 5 2 2
timeroc6 crate 6 21 2
2 changes: 2 additions & 0 deletions DEF-files/COIN/PRODUCTION/coin_production_ep.def
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ block P.hod.*Time
block P.gtr.*
block P.kin.*

block D.*

begin epics
IBC3H00CRCUR4
hac_bcm_average
Expand Down
2 changes: 2 additions & 0 deletions DEF-files/COIN/PRODUCTION/coin_production_ep_cuts.def
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ tightctime ALL_events #TIGHT CUT AROUND COINTIME PEAK (1 beam buck
ranctime ALL_events #CUT AWAY FROM COINTIME PEAK (4 beam buckets)

ALL_COIN_NO_EDTM T.coin.hEDTM_tdcTime==0.0&&T.coin.pEDTM_tdcTime==0.0&&ALL_events
badsync (D.timeroc2-D.timeroc1 != 0) ||(D.timeroc3-D.timeroc1 != 0) ||(D.timeroc4-D.timeroc1 != 0) ||(D.timeroc5-D.timeroc1 != 0) ||(D.timeroc6-D.timeroc1 != 0)


Decode_master ALL_COIN_NO_EDTM
Expand Down Expand Up @@ -51,3 +52,4 @@ e_cut_cer P.hgcer.npeSum > 5.0 && P.ngcer.npeSum > 15.0
select_e_cut e_cut_cal && e_cut_cer
betacut_proton H.gtr.beta > 0.6 && H.gtr.beta < 0.8
coincut_ep ccleantrack && select_e_cut && betacut_proton

1 change: 1 addition & 0 deletions MAPS/HMS/CRATE/db_crate1map.dat
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
18 250 250
19 250 250
20 1190 1190
21 4 4
1 change: 1 addition & 0 deletions MAPS/HMS/CRATE/db_crate3map.dat
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
14 1190 1190
16 1190 1190
17 1190 1190
21 4 4
4 changes: 3 additions & 1 deletion MAPS/HMS/CRATE/db_crate5map.dat
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
==== Crate 5 type vme Bank Decoding
# slot model bank
# slot model bank
2 4 4

3 changes: 2 additions & 1 deletion MAPS/SHMS/CRATE/db_crate2map.dat
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
14 250 250
18 1190 1190
19 1190 1190
20 1190 1190
20 1190 1190
21 4 4
3 changes: 2 additions & 1 deletion MAPS/SHMS/CRATE/db_crate4map.dat
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
17 250 250
18 250 250
19 250 250
20 250 250
20 250 250
21 4 4
1 change: 1 addition & 0 deletions MAPS/SHMS/CRATE/db_crate6map.dat
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
13 1190 1190
14 1190 1190
15 1190 1190
21 4 4
10 changes: 9 additions & 1 deletion MAPS/db_cratemap.dat
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
18 250 250
19 250 250
20 1190 1190
21 4 4


==== Crate 2 type vme Bank Decoding
Expand All @@ -34,6 +35,8 @@
18 1190 1190
19 1190 1190
20 1190 1190
21 4 4


==== Crate 3 type vme Bank Decoding
# slot model bank
Expand All @@ -47,6 +50,7 @@
14 1190 1190
16 1190 1190
17 1190 1190
21 4 4


==== Crate 4 type vme Bank Decoding
Expand All @@ -67,9 +71,13 @@
18 250 250
19 250 250
20 250 250
21 4 4


==== Crate 5 type vme Bank Decoding
# slot model bank
2 4 4


==== Crate 6 type vme Bank Decoding
# slot model bank
Expand All @@ -83,5 +91,5 @@
13 1190 1190
14 1190 1190
15 1190 1190

21 4 4

6 changes: 5 additions & 1 deletion SCRIPTS/COIN/PRODUCTION/replay_production_ep.C
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ void replay_production_ep (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
coin->SetEvtType(1);
coin->AddEvtType(2);
TRG->AddDetector(coin);

// Miscellaneous decoder data for timestamps
THaDecData* decdata = new THaDecData("D","Decoder raw data");
gHaApps->Add(decdata);

// Add event handler for prestart event 125.
THcConfigEvtHandler* ev125 = new THcConfigEvtHandler("HC", "Config Event type 125");
gHaEvtHandlers->Add(ev125);
Expand Down Expand Up @@ -249,5 +254,4 @@ void replay_production_ep (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
// Create report file from template
analyzer->PrintReport("TEMPLATES/COIN/PRODUCTION/coin_production_ep.template",
Form("REPORT_OUTPUT/COIN/PRODUCTION/replay_coin_production_ep_%d.report", RunNumber)); // optional

}