Skip to content

Commit efa538d

Browse files
committed
fixed reco2_workflow. Removed unnecessary include statements. Declared variables in the lowest scope when possible
1 parent ca13a28 commit efa538d

3 files changed

Lines changed: 2 additions & 22 deletions

File tree

sbndcode/CRT/CRTVeto/CRTVetoProducer_module.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class sbnd::crt::CRTVetoProducer : public art::EDProducer {
7272

7373
private:
7474

75-
CRTGeoAlg fCRTGeoAlg;
7675
double fWindowStart;
7776
double fWindowEnd;
7877
std::string fCRTClusterModuleLabel;
@@ -88,8 +87,6 @@ class sbnd::crt::CRTVetoProducer : public art::EDProducer {
8887
uint32_t fRawTSCorrection;
8988
uint32_t fMaxAllowedRefTimeDiff;
9089

91-
std::vector<art::Ptr<CRTSpacePoint>> fVetoSpacePoints;
92-
9390
unsigned int fEventID;
9491
unsigned int fRun;
9592
unsigned int fSubRun;
@@ -99,7 +96,6 @@ class sbnd::crt::CRTVetoProducer : public art::EDProducer {
9996

10097
sbnd::crt::CRTVetoProducer::CRTVetoProducer(fhicl::ParameterSet const& p)
10198
: EDProducer{p}
102-
, fCRTGeoAlg(p.get<fhicl::ParameterSet>("CRTGeoAlg"))
10399
, fWindowStart(p.get<double>("WindowStart"))
104100
, fWindowEnd(p.get<double>("WindowEnd"))
105101
, fCRTClusterModuleLabel(p.get<std::string>("CRTClusterModuleLabel"))
@@ -119,9 +115,9 @@ sbnd::crt::CRTVetoProducer::CRTVetoProducer(fhicl::ParameterSet const& p)
119115

120116
void sbnd::crt::CRTVetoProducer::produce(art::Event& e)
121117
{
118+
// Declare Space Point Vector. Will fill this with Space Points that we veto on
119+
std::vector<art::Ptr<CRTSpacePoint>> fVetoSpacePoints;
122120

123-
fVetoSpacePoints.clear();
124-
125121
fEventID = e.id().event();
126122
fRun = e.run();
127123
fSubRun = e.subRun();

sbndcode/CRT/CRTVeto/crtvetoproducer_sbnd.fcl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
#include "crtgeoalg_sbnd.fcl"
2-
#include "crtsimmodules_sbnd.fcl"
3-
41
BEGIN_PROLOG
52

6-
73
crtvetoproducer_sbnd:
84
{
9-
CRTGeoAlg: @local::crtgeoalg_sbnd
105
CRTClusterModuleLabel: "crtclustering"
116
CRTSpacePointModuleLabel: "crtspacepoints"
127
CRTTimingReferenceInfoLabel: "crtstrips"
@@ -17,7 +12,6 @@ crtvetoproducer_sbnd:
1712
}
1813

1914
crtvetoproducer_data_sbnd: @local::crtvetoproducer_sbnd
20-
crtvetoproducer_data_sbnd.CRTGeoAlg: @local::crtgeoalg_data_sbnd
2115
crtvetoproducer_data_sbnd.IsData: true
2216

2317
# Values for testing
@@ -32,7 +26,6 @@ crtvetoproducer_data_sbnd.MaxAllowedRefTimeDiff: 3000000
3226

3327
# Top Hat Configuration for Debugging
3428
crtvetoproducer_data_sbnd_tophat: @local::crtvetoproducer_sbnd
35-
crtvetoproducer_data_sbnd_tophat.CRTGeoAlg: @local::crtgeoalg_data_sbnd
3629
crtvetoproducer_data_sbnd_tophat.IsData: true
3730

3831
# Values for testing

sbndcode/JobConfigurations/standard/reco/config/workflow_reco2.fcl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "pandoramodules_sbnd.fcl"
44
#include "calorimetry_sbnd.fcl"
55
#include "sbnd_flashfinder_deco.fcl"
6-
#include "crtrecoproducers_sbnd.fcl"
76
#include "crtvetoproducer_sbnd.fcl"
87
#include "particleid_sbnd.fcl"
98
#include "crttpcmatchingproducers_sbnd.fcl"
@@ -45,11 +44,6 @@ sbnd_reco2_producers:{
4544
pandoraSCEShower: @local::sbnd_sce_incremental_pandoraModularShowerCreation
4645
pandoraSCEShowerSBN: @local::sbnd_sce_sbn_pandoraModularShowerCreation
4746

48-
### CRT reconstruction
49-
crtclustering: @local::crtclusterproducer_sbnd
50-
crtspacepoints: @local::crtspacepointproducer_sbnd
51-
crttracks: @local::crttrackproducer_sbnd
52-
5347
### CRT Veto
5448
crtveto: @local::crtvetoproducer_sbnd
5549

@@ -87,9 +81,6 @@ sbnd_reco2_producer_sequence: [
8781
, pandoraShowerSBN
8882
, pandoraCalo
8983
, pandoraPid
90-
, crtclustering
91-
, crtspacepoints
92-
, crttracks
9384
, crtveto
9485
, crtspacepointmatching
9586
, crttrackmatching

0 commit comments

Comments
 (0)