EICd
EIC data model
Weight.h
Go to the documentation of this file.
1 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2 
3 #ifndef EICD_Weight_H
4 #define EICD_Weight_H
5 
6 #include <ostream>
7 
8 namespace eic {
9 
10 
11 class Weight {
12 public:
13  float value{};
14 
15  Weight() : value{1.} {}
16  Weight(double w) : value {static_cast<float>(w)} {}
17  Weight& operator=(double w) {value = static_cast<float>(w); return *this;}
18  operator float() const {return value;}
19 
20 };
21 
22 inline std::ostream& operator<<(std::ostream& o, const eic::Weight& value) {
23  o << value.value << " ";
24 
25  return o;
26 }
27 
28 } // namespace eic
29 
30 
31 
32 #endif
eic::operator<<
std::ostream & operator<<(std::ostream &o, const ConstBasicParticle &value)
Definition: BasicParticle.cc:102
eic::Weight::value
float value
Definition: Weight.h:13
eic::Weight::operator=
Weight & operator=(double w)
Definition: Weight.h:17
eic
Definition: BasicParticle.cc:13
eic::Weight
Definition: Weight.h:11
eic::Weight::Weight
Weight()
Definition: Weight.h:15
eic::Weight::Weight
Weight(double w)
Definition: Weight.h:16