CMS 3D CMS Logo

EcalWeightSet.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_EcalWeightSet_HH
2 #define CondFormats_EcalObjects_EcalWeightSet_HH
3 
12 
16 #include <iostream>
17 
19 
20  public:
21 
24 
25  EcalWeightSet();
26  EcalWeightSet(const EcalWeightSet& aset);
28 
29  EcalWeightMatrix& getWeightsBeforeGainSwitch() { return wgtBeforeSwitch_; }
30  EcalWeightMatrix& getWeightsAfterGainSwitch() { return wgtAfterSwitch_; }
31  EcalChi2WeightMatrix& getChi2WeightsBeforeGainSwitch() { return wgtChi2BeforeSwitch_; }
32  EcalChi2WeightMatrix& getChi2WeightsAfterGainSwitch() { return wgtChi2AfterSwitch_; }
33 
34  const EcalWeightMatrix& getWeightsBeforeGainSwitch() const { return wgtBeforeSwitch_; }
35  const EcalWeightMatrix& getWeightsAfterGainSwitch() const { return wgtAfterSwitch_; }
36  const EcalChi2WeightMatrix& getChi2WeightsBeforeGainSwitch() const { return wgtChi2BeforeSwitch_; }
37  const EcalChi2WeightMatrix& getChi2WeightsAfterGainSwitch() const { return wgtChi2AfterSwitch_; }
38 
40 
41  void print(std::ostream& o) const {
42  using namespace std;
43  o << "wgtBeforeSwitch_.: " << wgtBeforeSwitch_
44  << " wgtAfterSwitch_.: " << wgtAfterSwitch_
45  << " wgtChi2BeforeSwitch_.: " << wgtChi2BeforeSwitch_
46  << " wgtChi2AfterSwitch_.: " << wgtChi2AfterSwitch_
47  << endl;
48  }
49 
50 
51  private:
52  EcalWeightMatrix wgtBeforeSwitch_;
53  EcalWeightMatrix wgtAfterSwitch_;
54  EcalChi2WeightMatrix wgtChi2BeforeSwitch_;
55  EcalChi2WeightMatrix wgtChi2AfterSwitch_;
56 
58 };
59 
60 #endif
EcalChi2WeightMatrix & getChi2WeightsBeforeGainSwitch()
Definition: EcalWeightSet.h:31
ROOT::Math::SMatrix< double, N, M > type
Definition: Matrix.h:10
EcalChi2WeightMatrix wgtChi2BeforeSwitch_
Definition: EcalWeightSet.h:54
EcalWeightMatrix wgtAfterSwitch_
Definition: EcalWeightSet.h:53
EcalChi2WeightMatrix wgtChi2AfterSwitch_
Definition: EcalWeightSet.h:55
EcalWeightSet & operator=(const EcalWeightSet &rhs)
void print(std::ostream &o) const
Definition: EcalWeightSet.h:41
EcalChi2WeightMatrix & getChi2WeightsAfterGainSwitch()
Definition: EcalWeightSet.h:32
EcalWeightMatrix & getWeightsAfterGainSwitch()
Definition: EcalWeightSet.h:30
math::Matrix< 10, 10 >::type EcalChi2WeightMatrix
Definition: EcalWeightSet.h:23
const EcalWeightMatrix & getWeightsAfterGainSwitch() const
Definition: EcalWeightSet.h:35
EcalWeightMatrix & getWeightsBeforeGainSwitch()
Definition: EcalWeightSet.h:29
const EcalChi2WeightMatrix & getChi2WeightsBeforeGainSwitch() const
Definition: EcalWeightSet.h:36
#define COND_SERIALIZABLE
Definition: Serializable.h:38
const EcalChi2WeightMatrix & getChi2WeightsAfterGainSwitch() const
Definition: EcalWeightSet.h:37
math::Matrix< 3, 10 >::type EcalWeightMatrix
Definition: EcalWeightSet.h:22
const EcalWeightMatrix & getWeightsBeforeGainSwitch() const
Definition: EcalWeightSet.h:34
EcalWeightMatrix wgtBeforeSwitch_
Definition: EcalWeightSet.h:52