Skip to content

Commit 0ad5ec1

Browse files
authored
Merge pull request #523 from SBNSoftware/feature/icarus_bnb_only
Feature/icarus bnb only
2 parents 899524f + d47e76c commit 0ad5ec1

27 files changed

Lines changed: 713 additions & 1127 deletions

sbncode/BeamSpillInfoRetriever/BNBRetriever/BNBRetriever_module.cc

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

sbncode/BeamSpillInfoRetriever/BNBRetriever/CMakeLists.txt

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

sbncode/BeamSpillInfoRetriever/BNBRetriever/MWRData.cpp

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

sbncode/BeamSpillInfoRetriever/BNBRetriever/MWRData.h

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

sbncode/BeamSpillInfoRetriever/CMakeLists.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
add_subdirectory(BNBRetriever)
1+
add_subdirectory(ICARUSBNBRetriever)
2+
add_subdirectory(ICARUSBNBEXTRetriever)
23
add_subdirectory(SBNDBNBRetriever)
3-
add_subdirectory(SBNDBNBZEROBIASRetriever)
44
add_subdirectory(SBNDBNBEXTRetriever)
5+
add_subdirectory(SBNDBNBZEROBIASRetriever)
56
add_subdirectory(NuMIRetriever)
6-
add_subdirectory(BNBEXTRetriever)
77
add_subdirectory(NuMIEXTRetriever)
88
add_subdirectory(job)
99

@@ -27,9 +27,8 @@ art_make_library(
2727
sbnobj::Common_POTAccounting
2828
sbn_MWRData
2929
larcorealg::CoreUtils
30-
31-
LIBRARY_NAME sbn_SBNDPOTTools
32-
SOURCE SBNDPOTTools.cpp
30+
LIBRARY_NAME sbn_POTTools
31+
SOURCE POTTools.cpp
3332
)
3433

3534
art_make_library(

sbncode/BeamSpillInfoRetriever/BNBEXTRetriever/CMakeLists.txt renamed to sbncode/BeamSpillInfoRetriever/ICARUSBNBEXTRetriever/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cet_build_plugin(BNBEXTRetriever art::module
2+
cet_build_plugin(ICARUSBNBEXTRetriever art::module
33
LIBRARIES
44
art::Persistency_Common
55
art::Utilities canvas::canvas

sbncode/BeamSpillInfoRetriever/BNBEXTRetriever/BNBEXTRetriever_module.cc renamed to sbncode/BeamSpillInfoRetriever/ICARUSBNBEXTRetriever/ICARUSBNBEXTRetriever_module.cc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
////////////////////////////////////////////////////////////////////////
2-
// Class: BNBEXTRetriever
2+
// Class: ICARUSBNBEXTRetriever
33
// Plugin Type: producer
4-
// File: BNBEXTRetriever_module.cc
4+
// File: ICARUSBNBEXTRetriever_module.cc
55
//
66
// Created by hand Thurs June 24th 2021 by J. Zennamo (FNAL)
77
//
@@ -36,10 +36,10 @@
3636
#include <time.h>
3737

3838
namespace sbn {
39-
class BNBEXTRetriever;
39+
class ICARUSBNBEXTRetriever;
4040
}
4141

42-
class sbn::BNBEXTRetriever : public art::EDProducer {
42+
class sbn::ICARUSBNBEXTRetriever : public art::EDProducer {
4343
public:
4444

4545
struct Config {
@@ -57,15 +57,15 @@ class sbn::BNBEXTRetriever : public art::EDProducer {
5757
using Parameters = art::EDProducer::Table<Config>;
5858

5959

60-
explicit BNBEXTRetriever(Parameters const& params);
60+
explicit ICARUSBNBEXTRetriever(Parameters const& params);
6161
// The compiler-generated destructor is fine for non-base
6262
// classes without bare pointers or other resource use.
6363

6464
// Plugins should not be copied or assigned.
65-
BNBEXTRetriever(BNBEXTRetriever const&) = delete;
66-
BNBEXTRetriever(BNBEXTRetriever&&) = delete;
67-
BNBEXTRetriever& operator=(BNBEXTRetriever const&) = delete;
68-
BNBEXTRetriever& operator=(BNBEXTRetriever&&) = delete;
65+
ICARUSBNBEXTRetriever(ICARUSBNBEXTRetriever const&) = delete;
66+
ICARUSBNBEXTRetriever(ICARUSBNBEXTRetriever&&) = delete;
67+
ICARUSBNBEXTRetriever& operator=(ICARUSBNBEXTRetriever const&) = delete;
68+
ICARUSBNBEXTRetriever& operator=(ICARUSBNBEXTRetriever&&) = delete;
6969

7070
// Required functions.
7171
void produce(art::Event& e) override;
@@ -85,7 +85,7 @@ class sbn::BNBEXTRetriever : public art::EDProducer {
8585
};
8686

8787

88-
sbn::BNBEXTRetriever::BNBEXTRetriever(Parameters const& params)
88+
sbn::ICARUSBNBEXTRetriever::ICARUSBNBEXTRetriever(Parameters const& params)
8989
: EDProducer{params},
9090
raw_data_label_(params().RawDataLabel())
9191
{
@@ -97,7 +97,7 @@ sbn::BNBEXTRetriever::BNBEXTRetriever(Parameters const& params)
9797
scale_factor = 0;
9898
}
9999

100-
void sbn::BNBEXTRetriever::produce(art::Event& e)
100+
void sbn::ICARUSBNBEXTRetriever::produce(art::Event& e)
101101
{
102102

103103
//Here we read in the artdaq Fragments and extract three pieces of information:
@@ -152,7 +152,7 @@ void sbn::BNBEXTRetriever::produce(art::Event& e)
152152
} //end loop over events
153153

154154

155-
void sbn::BNBEXTRetriever::beginSubRun(art::SubRun& sr)
155+
void sbn::ICARUSBNBEXTRetriever::beginSubRun(art::SubRun& sr)
156156
{
157157
TotalEXTCounts = 0;
158158
totalMinBias = 0;
@@ -162,7 +162,7 @@ void sbn::BNBEXTRetriever::beginSubRun(art::SubRun& sr)
162162
}
163163

164164
//____________________________________________________________________________
165-
void sbn::BNBEXTRetriever::endSubRun(art::SubRun& sr)
165+
void sbn::ICARUSBNBEXTRetriever::endSubRun(art::SubRun& sr)
166166
{
167167
// We will add all of the EXTCountInfo data-products to the
168168
// art::SubRun so it persists
@@ -186,4 +186,4 @@ void sbn::BNBEXTRetriever::endSubRun(art::SubRun& sr)
186186
return;
187187
}
188188

189-
DEFINE_ART_MODULE(sbn::BNBEXTRetriever)
189+
DEFINE_ART_MODULE(sbn::ICARUSBNBEXTRetriever)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
find_package(ifbeam)
2+
find_package(ifdh_art)
3+
4+
cet_build_plugin(ICARUSBNBRetriever art::module
5+
LIBRARIES
6+
sbn_POTTools
7+
sbn_getFOM
8+
SQLite::SQLite3
9+
)
10+
11+
install_headers()
12+
install_fhicl()
13+
install_source()

0 commit comments

Comments
 (0)