Skip to content

Commit 3146829

Browse files
authored
Merge branch 'develop' into bugfix/kplows_synchronise_ReweightType
2 parents 566dade + 8e4ab73 commit 3146829

29 files changed

Lines changed: 3541 additions & 120 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.04.07 LANGUAGES CXX)
19+
project(sbncode VERSION 10.06.00.04 LANGUAGES CXX)
2020

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

sbncode/BeamSpillInfoRetriever/BNBEXTRetriever/BNBEXTRetriever_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void sbn::BNBEXTRetriever::endSubRun(art::SubRun& sr)
173173
std::cout << "FAILED! " << std::endl;
174174
// probably want to throw an exception here
175175

176-
for(auto ExtInfo : fOutExtInfos){
176+
for(auto &ExtInfo : fOutExtInfos){
177177

178178
ExtInfo.gates_since_last_trigger *= scale_factor;
179179

sbncode/BeamSpillInfoRetriever/BNBRetriever/BNBRetriever_module.cc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ sbn::BNBSpillInfo sbn::BNBRetriever::makeBNBSpillInfo
663663
double LM875A = 0; // units R/s
664664
double LM875B = 0; // units R/s
665665
double LM875C = 0; // units R/s
666+
double HP873 = 0; // units mm
667+
double VP873 = 0; // units mm
666668
double HP875 = 0; // units mm
667669
double VP875 = 0; // units mm
668670
double HPTG1 = 0; // units mm
@@ -671,6 +673,14 @@ sbn::BNBSpillInfo sbn::BNBRetriever::makeBNBSpillInfo
671673
double VPTG2 = 0; // units mm
672674
double BTJT2 = 0; // units Deg C
673675
double THCURR = 0; // units kiloAmps
676+
double M875HS = 0; // units mm
677+
double M875VS = 0; // units mm
678+
double M875HM = 0; // units mm
679+
double M875VM = 0; // units mm
680+
double M876HS = 0; // units mm
681+
double M876VS = 0; // units mm
682+
double M876HM = 0; // units mm
683+
double M876VM = 0; // units mm
674684

675685
double TOR860_time = 0; // units s
676686

@@ -683,6 +693,8 @@ sbn::BNBSpillInfo sbn::BNBRetriever::makeBNBSpillInfo
683693
try{bfp->GetNamedData(time, "E:LM875A",&LM875A);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
684694
try{bfp->GetNamedData(time, "E:LM875B",&LM875B);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
685695
try{bfp->GetNamedData(time, "E:LM875C",&LM875C);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
696+
try{bfp->GetNamedData(time, "E:HP873",&HP873);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
697+
try{bfp->GetNamedData(time, "E:VP873",&VP873);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
686698
try{bfp->GetNamedData(time, "E:HP875",&HP875);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
687699
try{bfp->GetNamedData(time, "E:VP875",&VP875);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
688700
try{bfp->GetNamedData(time, "E:HPTG1",&HPTG1);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
@@ -691,6 +703,14 @@ sbn::BNBSpillInfo sbn::BNBRetriever::makeBNBSpillInfo
691703
try{bfp->GetNamedData(time, "E:VPTG2",&VPTG2);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
692704
try{bfp->GetNamedData(time, "E:BTJT2",&BTJT2);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
693705
try{bfp->GetNamedData(time, "E:THCURR",&THCURR);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
706+
try{bfp->GetNamedData(time, "E:M875HS",&M875HS);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
707+
try{bfp->GetNamedData(time, "E:M875VS",&M875VS);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
708+
try{bfp->GetNamedData(time, "E:M875HM",&M875HM);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
709+
try{bfp->GetNamedData(time, "E:M875VM",&M875VM);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
710+
try{bfp->GetNamedData(time, "E:M876HS",&M876HS);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
711+
try{bfp->GetNamedData(time, "E:M876VS",&M876VS);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
712+
try{bfp->GetNamedData(time, "E:M876HM",&M876HM);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
713+
try{bfp->GetNamedData(time, "E:M876VM",&M876VM);}catch (WebAPIException &we) {mf::LogDebug("BNBRetriever")<< "At time : " << time << " " << "got exception: " << we.what() << "\n";}
694714

695715
//crunch the times
696716
unsigned long int time_closest_int = (int) TOR860_time;
@@ -703,6 +723,8 @@ sbn::BNBSpillInfo sbn::BNBRetriever::makeBNBSpillInfo
703723
beamInfo.LM875A = LM875A;
704724
beamInfo.LM875B = LM875B;
705725
beamInfo.LM875C = LM875C;
726+
beamInfo.HP873 = HP873;
727+
beamInfo.VP873 = VP873;
706728
beamInfo.HP875 = HP875;
707729
beamInfo.VP875 = VP875;
708730
beamInfo.HPTG1 = HPTG1;
@@ -711,6 +733,14 @@ sbn::BNBSpillInfo sbn::BNBRetriever::makeBNBSpillInfo
711733
beamInfo.VPTG2 = VPTG2;
712734
beamInfo.BTJT2 = BTJT2;
713735
beamInfo.THCURR = THCURR;
736+
beamInfo.M875HS = M875HS;
737+
beamInfo.M875VS = M875VS;
738+
beamInfo.M875HM = M875HM;
739+
beamInfo.M875VM = M875VM;
740+
beamInfo.M876HS = M876HS;
741+
beamInfo.M876VS = M876VS;
742+
beamInfo.M876HM = M876HM;
743+
beamInfo.M876VM = M876VM;
714744
beamInfo.spill_time_s = time_closest_int;
715745
beamInfo.spill_time_ns = time_closest_ns;
716746

sbncode/CAFMaker/CAFMakerParams.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ namespace caf
4444
Atom<bool> SaveGENIEEventRecord { Name("SaveGENIEEventRecord"),
4545
Comment("Whether to produce GENIE event record to the output file"), false
4646
};
47+
48+
Atom<bool> OverrideRealData { Name("OverrideRealData"),
49+
Comment("when true, some algorithms (e.g. PoT count) treat events as MC rather than real data -- e.g. set it if the event is an overlay"), false
50+
};
4751

4852
Atom<float> PrescaleFactor { Name("PrescaleFactor"),
4953
Comment("Factor by which to prescale unblind events"), 10
@@ -274,6 +278,12 @@ namespace caf
274278
"pandoraTrackCRTHit"
275279
};
276280

281+
Atom<string> CRTHitMatchInfoLabel {
282+
Name("CRTHitMatchInfoLabel"),
283+
Comment("Base label of additional information on track to CRT hit matching producer."),
284+
"CRTT0Tagging"
285+
};
286+
277287
Atom<string> CRTTrackMatchLabel {
278288
Name("CRTTrackMatchLabel"),
279289
Comment("Base label of track to CRT track matching producer."),
@@ -340,12 +350,36 @@ namespace caf
340350
"" //Empty by default, configured in icaruscode cafmaker_defs
341351
};
342352

353+
Atom<art::InputTag> NuGraphSliceHitLabel {
354+
Name("NuGraphSliceHitLabel"),
355+
Comment("Label of NuGraph slice hit map."),
356+
"" //Empty by default, please set to e.g. art::InputTag("nuslhits")
357+
};
358+
359+
Atom<art::InputTag> NuGraphFilterLabel {
360+
Name("NuGraphFilterLabel"),
361+
Comment("Label of NuGraph filter."),
362+
"" //Empty by default, please set to e.g. art::InputTag("NuGraph","filter")
363+
};
364+
365+
Atom<art::InputTag> NuGraphSemanticLabel {
366+
Name("NuGraphSemanticLabel"),
367+
Comment("Label of NuGraph semantic."),
368+
"" //Empty by default, please set to e.g. art::InputTag("NuGraph","semantic")
369+
};
370+
343371
Atom<string> OpFlashLabel {
344372
Name("OpFlashLabel"),
345373
Comment("Label of PMT flash."),
346374
"OpFlash"
347375
};
348376

377+
Atom<string> PMTBeamSignalLabel {
378+
Name("PMTBeamSignalLabel"),
379+
Comment("Label for special PMT beam timing signals used to build the beam bunch structure"),
380+
"beamTiming:RWM"
381+
};
382+
349383
Atom<long long> CRTSimT0Offset {
350384
Name("CRTSimT0Offset"),
351385
Comment("start of beam gate/simulation time in the simulated CRT clock"),

0 commit comments

Comments
 (0)