Skip to content

Commit 29ce7ad

Browse files
authored
Merge branch 'release/SBN2025A' into feature/sungbino_debug_same_start_end_v10_06_00_05
2 parents 7863394 + 5922ea0 commit 29ce7ad

27 files changed

Lines changed: 2750 additions & 91 deletions

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
1717

1818
find_package(cetmodules 3.20.00 REQUIRED)
19-
project(sbncode VERSION 10.06.00.05 LANGUAGES CXX)
19+
project(sbncode VERSION 10.06.00.07 LANGUAGES CXX)
2020

2121
message(STATUS "\n\n ========================== ${PROJECT_NAME} ==========================")
2222

sbncode/BeamSpillInfoRetriever/SBNDBNBRetriever/SBNDBNBRetriever_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ sbn::SBNDBNBRetriever::SBNDBNBRetriever(fhicl::ParameterSet const & params)
7272
vp873->set_epsilon(0.02);
7373

7474
offsets = ifbeam_handle->getBeamFolder(params.get<std::string>("OffsetBundle"), params.get<std::string>("URL"), timeWindow);
75-
offsets->set_epsilon(600);
75+
offsets->set_epsilon(1000);
7676

7777
}
7878

sbncode/BeamSpillInfoRetriever/SBNDPOTTools.cpp

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -73,33 +73,33 @@ namespace sbn{
7373
// initializing all of our device carriers
7474
// device definitions can be found in BNBSpillInfo.h
7575

76-
double TOR860 = 0; // units e12 protons
77-
double TOR875 = 0; // units e12 protons
78-
double LM875A = 0; // units R/s
79-
double LM875B = 0; // units R/s
80-
double LM875C = 0; // units R/s
81-
double HP875 = 0; // units mm
82-
double VP875 = 0; // units mm
83-
double HPTG1 = 0; // units mm
84-
double VPTG1 = 0; // units mm
85-
double HPTG2 = 0; // units mm
86-
double VPTG2 = 0; // units mm
87-
double BTJT2 = 0; // units Deg C
88-
double THCURR = 0; // units kiloAmps
76+
double TOR860 = -999; // units e12 protons
77+
double TOR875 = -999; // units e12 protons
78+
double LM875A = -999; // units R/s
79+
double LM875B = -999; // units R/s
80+
double LM875C = -999; // units R/s
81+
double HP875 = -999; // units mm
82+
double VP875 = -999; // units mm
83+
double HPTG1 = -999; // units mm
84+
double VPTG1 = -999; // units mm
85+
double HPTG2 = -999; // units mm
86+
double VPTG2 = -999; // units mm
87+
double BTJT2 = -999; // units Deg C
88+
double THCURR = -999; // units kiloAmps
8989

9090

91-
double VP873 = 0; //units mm; not in the first IFBeam query bunch
92-
double HP875Offset =0;//units mm; make a another separate IFBeam query bunch for offsets
93-
double VP875Offset =0;//units mm
94-
double VP873Offset =0;//units mm
95-
double HPTG1Offset =0;//units mm
96-
double HPTG2Offset =0;//units mm
97-
double VPTG1Offset =0;//units mm
98-
double VPTG2Offset =0;//units mm
91+
double VP873 = -999; //units mm; not in the first IFBeam query bunch
92+
double HP875Offset = -999;//units mm; make a another separate IFBeam query bunch for offsets
93+
double VP875Offset = -999;//units mm
94+
double VP873Offset = -999;//units mm
95+
double HPTG1Offset = -999;//units mm
96+
double HPTG2Offset = -999;//units mm
97+
double VPTG1Offset = -999;//units mm
98+
double VPTG2Offset = -999;//units mm
9999

100-
double TOR860_time = 0; // units s
100+
double TOR860_time = -999; // units s
101101

102-
double FOM =0;
102+
double FOM = -999;
103103

104104
// Here we request all the devices
105105
// since sometimes devices fail to report we'll
@@ -122,7 +122,7 @@ namespace sbn{
122122

123123

124124

125-
try{bfp->GetNamedData(time, "E:VP873",&VP873);}catch (WebAPIException &we) {mf::LogDebug("SBNDBNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
125+
try{vp873->GetNamedData(time, "E:VP873",&VP873);}catch (WebAPIException &we) {mf::LogDebug("SBNDBNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
126126

127127
try{offsets->GetNamedData(time, "E_VP873S",&VP873Offset);}catch (WebAPIException &we) {mf::LogDebug("SBNDBNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
128128
try{offsets->GetNamedData(time, "E_HP875S",&HP875Offset);}catch (WebAPIException &we) {mf::LogDebug("SBNDBNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
@@ -217,21 +217,21 @@ namespace sbn{
217217
// if time is just a single outlier.
218218
bool BrokenClock(double time, std::unique_ptr<ifbeam_ns::BeamFolder> const& bfp)
219219
{
220-
double TOR860 = 0; // units e12 protons
221-
double TOR875 = 0; // units e12 protons
222-
double LM875A = 0; // units R/s
223-
double LM875B = 0; // units R/s
224-
double LM875C = 0; // units R/s
225-
double HP875 = 0; // units mm
226-
double VP875 = 0; // units mm
227-
double HPTG1 = 0; // units mm
228-
double VPTG1 = 0; // units mm
229-
double HPTG2 = 0; // units mm
230-
double VPTG2 = 0; // units mm
231-
double BTJT2 = 0; // units Deg C
232-
double THCURR = 0; // units kiloAmps
220+
double TOR860 = -999; // units e12 protons
221+
double TOR875 = -999; // units e12 protons
222+
double LM875A = -999; // units R/s
223+
double LM875B = -999; // units R/s
224+
double LM875C = -999; // units R/s
225+
double HP875 = -999; // units mm
226+
double VP875 = -999; // units mm
227+
double HPTG1 = -999; // units mm
228+
double VPTG1 = -999; // units mm
229+
double HPTG2 = -999; // units mm
230+
double VPTG2 = -999; // units mm
231+
double BTJT2 = -999; // units Deg C
232+
double THCURR = -999; // units kiloAmps
233233

234-
double TOR860_time = 0; // units s
234+
double TOR860_time = -999; // units s
235235

236236
// Here we request all the devices
237237
// since sometimes devices fail to report we'll

sbncode/BeamSpillInfoRetriever/job/run_sbndbnbextinfo_sbn.fcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "sbndbnbdefaults.fcl"
22

3-
process_name: SBNDBNBEXTInfoGen
3+
process_name: SBNDBNBEXTInfoGenRerunning
44

55
services:{
66

@@ -23,6 +23,7 @@ services:{
2323

2424

2525
source: {
26+
inputCommands: [ "keep *_*_*_*", "drop *_*_*_SBNDBNBEXTInfoGen" ]
2627
}
2728

2829
physics: {

sbncode/BeamSpillInfoRetriever/job/sbndbnbdefaults.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sbndbnbspillinfo: {
1212
OffsetBundle: "BNB_BPM_settings"
1313

1414
TimeWindow: "700" #seconds
15-
MWR_TimeWindow: "3601" #seconds
15+
MWR_TimeWindow: "700" #seconds
1616
DeviceUsedForTiming: "E:TOR860"
1717
}
1818

sbncode/BeamSpillInfoRetriever/job/sbndbnbspillinfo.fcl

Lines changed: 0 additions & 17 deletions
This file was deleted.

sbncode/CAFMaker/CAFMakerParams.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ namespace caf
320320
"crthit" // icarus
321321
};
322322

323+
Atom<string> CRTSimChanLabel {
324+
Name("CRTSimChanLabel"),
325+
Comment("Label of AuxDetSimChannels."),
326+
"genericcrt" // icarus
327+
};
328+
323329
Atom<string> CRTTrackLabel {
324330
Name("CRTTrackLabel"),
325331
Comment("Label of sbn CRT tracks."),

0 commit comments

Comments
 (0)