Skip to content

Commit 362f688

Browse files
authored
Merge pull request #1653 from NamithaChitrazee/twodpoints
Addition of TwoDPoint and other associated classes to classes_def
2 parents e13c916 + b3e7170 commit 362f688

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

GeneralUtilities/inc/CombineTwoDPoints.hh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212

1313
namespace mu2e {
1414
class CombineTwoDPoints{
15-
struct CWT {
16-
TwoDWeight wt_; // weight
17-
double dchi0_; // chisquared contribution
18-
CWT(TwoDWeight const& wt, double dchi0) : wt_(wt), dchi0_(dchi0) {}
19-
};
2015

2116
public:
17+
struct CWT {
18+
TwoDWeight wt_{}; // weight
19+
double dchi0_{0}; // chisquared contribution
20+
CWT() = default;
21+
CWT(TwoDWeight const& wt, double dchi0) : wt_(wt), dchi0_(dchi0) {}
22+
};
2223
CombineTwoDPoints(float intrinsicvar=0.0) : ivar_(intrinsicvar) {} // empty constructor
2324
// construct from a vector of points; each points index into the vector is its key
2425
CombineTwoDPoints(std::vector<TwoDPoint> const& points,float intrinsicvar=0.0);

RecoDataProducts/src/classes_def.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@
172172
<class name="mu2e::BkgClusterCollection"/>
173173
<class name="art::Wrapper<mu2e::BkgClusterCollection>"/>
174174

175+
<class name="mu2e::TwoDPoint"/>
176+
<class name="art::Wrapper<mu2e::TwoDPoint>"/>
177+
<class name="mu2e::CombineTwoDPoints"/>
178+
<class name="art::Wrapper<mu2e::CombineTwoDPoints>"/>
179+
<class name="mu2e::TwoDWeight"/>
180+
<class name="art::Wrapper<mu2e::TwoDWeight>"/>
181+
<class name="mu2e::CombineTwoDPoints::CWT"/>
182+
<class name="std::map<unsigned long, mu2e::CombineTwoDPoints::CWT>"/>
175183

176184
<!-- ********* tracking output ********* -->
177185

0 commit comments

Comments
 (0)