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
13 changes: 10 additions & 3 deletions Analyses/src/CountVirtualDetectorHits_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@ namespace mu2e {
: art::EDAnalyzer(conf),
StepPointMCsToken(consumes<StepPointMCCollection>(conf().stepPointMCsTag())),
enabledVDs(conf().enabledVDs()) {
// Create list of unique enabled virtual detectors
std::set<int> enabledVDsSet(enabledVDs.begin(), enabledVDs.end());
// Create list of unique enabled virtual detectors, preserving the order
std::vector<int> unqiueEnabledVDsVec;
std::unordered_set<int> uniqueEnabledVDsSet;
for (const int & enabledVD : enabledVDs) {
if (uniqueEnabledVDsSet.find(enabledVD) == uniqueEnabledVDsSet.end()) {
uniqueEnabledVDsSet.insert(enabledVD);
unqiueEnabledVDsVec.push_back(enabledVD);
};
};
enabledVDs.clear();
enabledVDs.insert(enabledVDs.end(), enabledVDsSet.begin(), enabledVDsSet.end());
enabledVDs = unqiueEnabledVDsVec;

// Insert _enabledVDs.size() zeros into the counter vector
nVDs = enabledVDs.size();
Expand Down
2 changes: 0 additions & 2 deletions BTrkLegacy/inc/TrkErrCode.hh
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,3 @@ private:
std::ostream& operator<<(std::ostream& os, const TrkErrCode& trkerr);

#endif


2 changes: 1 addition & 1 deletion BTrkLegacy/inc/TrkT0.hh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ struct TrkT0 {
double _t0err; // estimate of t0 error
};

#endif
#endif
1 change: 0 additions & 1 deletion DAQ/src/MSDHitsFromDTCEvents_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,3 @@ artdaq::Fragments art::MSDHitsFromDTCEvents::getFragments(art::Event& event) {
DEFINE_ART_MODULE(art::MSDHitsFromDTCEvents)

// ======================================================================

Loading