~durga/maus/rel709

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/EMREvent.cc

  • Committer: Adam Dobbs
  • Date: 2014-12-11 13:26:05 UTC
  • mfrom: (659.1.96 release-candidate)
  • Revision ID: phuccj@gmail.com-20141211132605-6g6j2927elggi2q6
Tags: MAUS-v0.9.2
MAUS-v0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
namespace MAUS {
21
21
 
22
22
EMREvent::EMREvent()
23
 
  : _emrplanehitarray() {
 
23
  : _emrplanehitarray(), _initial_trigger(false),
 
24
    _has_primary(false), _range_primary(0.0),
 
25
    _has_secondary(false), _range_secondary(0.0),
 
26
    _secondary_to_primary_track_distance(0),
 
27
    _total_charge_MA(0.0), _charge_ratio_MA(0.0),
 
28
    _total_charge_SA(0.0), _charge_ratio_SA(0.0) {
24
29
//    for (int planeid=0; planeid<48; planeid++) {
25
30
//         EMRPlaneHit emrplanehit;
26
31
//         emrplanehit.SetPlane(planeid);
28
33
//    }
29
34
}
30
35
 
31
 
EMREvent::EMREvent(const EMREvent& _emrevent) {
 
36
EMREvent::EMREvent(const EMREvent& _emrevent)
 
37
  : _emrplanehitarray(), _initial_trigger(false),
 
38
    _has_primary(false), _range_primary(0.0),
 
39
    _has_secondary(false), _range_secondary(0.0),
 
40
    _secondary_to_primary_track_distance(0),
 
41
    _total_charge_MA(0.0), _charge_ratio_MA(0.0),
 
42
    _total_charge_SA(0.0), _charge_ratio_SA(0.0) {
32
43
  *this = _emrevent;
33
44
}
34
45
 
37
48
        return *this;
38
49
  }
39
50
  SetEMRPlaneHitArray(_emrevent._emrplanehitarray);
 
51
  SetInitialTrigger(_emrevent._initial_trigger);
 
52
  SetHasPrimary(_emrevent._has_primary);
 
53
  SetRangePrimary(_emrevent._range_primary);
 
54
  SetHasSecondary(_emrevent._has_secondary);
 
55
  SetRangeSecondary(_emrevent._range_secondary);
 
56
  SetSecondaryToPrimaryTrackDistance(_emrevent._secondary_to_primary_track_distance);
 
57
  SetTotalChargeMA(_emrevent._total_charge_MA);
 
58
  SetChargeRatioMA(_emrevent._charge_ratio_MA);
 
59
  SetTotalChargeSA(_emrevent._total_charge_SA);
 
60
  SetChargeRatioSA(_emrevent._charge_ratio_SA);
40
61
  return *this;
41
62
}
42
63
 
56
77
  }
57
78
  _emrplanehitarray = emrplanehitarray;
58
79
}
 
80
 
 
81
bool EMREvent::GetInitialTrigger() const {
 
82
  return _initial_trigger;
 
83
}
 
84
 
 
85
void EMREvent::SetInitialTrigger(bool initial_trigger) {
 
86
  _initial_trigger = initial_trigger;
 
87
}
 
88
 
 
89
bool EMREvent::GetHasPrimary() const {
 
90
  return _has_primary;
 
91
}
 
92
 
 
93
void EMREvent::SetHasPrimary(bool has_primary) {
 
94
  _has_primary = has_primary;
 
95
}
 
96
 
 
97
double EMREvent::GetRangePrimary() const {
 
98
  return _range_primary;
 
99
}
 
100
 
 
101
void EMREvent::SetRangePrimary(double range_primary) {
 
102
  _range_primary = range_primary;
 
103
}
 
104
 
 
105
bool EMREvent::GetHasSecondary() const {
 
106
  return _has_secondary;
 
107
}
 
108
 
 
109
void EMREvent::SetHasSecondary(bool has_secondary) {
 
110
  _has_secondary = has_secondary;
 
111
}
 
112
 
 
113
double EMREvent::GetRangeSecondary() const {
 
114
  return _range_secondary;
 
115
}
 
116
 
 
117
void EMREvent::SetRangeSecondary(double range_secondary) {
 
118
  _range_secondary = range_secondary;
 
119
}
 
120
 
 
121
double EMREvent::GetSecondaryToPrimaryTrackDistance() const {
 
122
  return _secondary_to_primary_track_distance;
 
123
}
 
124
 
 
125
void EMREvent::SetSecondaryToPrimaryTrackDistance(double secondary_to_primary_track_distance) {
 
126
  _secondary_to_primary_track_distance = secondary_to_primary_track_distance;
 
127
}
 
128
 
 
129
double EMREvent::GetTotalChargeMA() const {
 
130
  return _total_charge_MA;
 
131
}
 
132
 
 
133
void EMREvent::SetTotalChargeMA(double total_charge_MA) {
 
134
  _total_charge_MA = total_charge_MA;
 
135
}
 
136
 
 
137
double EMREvent::GetChargeRatioMA() const {
 
138
  return _charge_ratio_MA;
 
139
}
 
140
 
 
141
void EMREvent::SetChargeRatioMA(double charge_ratio_MA) {
 
142
  _charge_ratio_MA = charge_ratio_MA;
 
143
}
 
144
 
 
145
double EMREvent::GetTotalChargeSA() const {
 
146
  return _total_charge_SA;
 
147
}
 
148
 
 
149
void EMREvent::SetTotalChargeSA(double total_charge_SA) {
 
150
  _total_charge_SA = total_charge_SA;
 
151
}
 
152
 
 
153
double EMREvent::GetChargeRatioSA() const {
 
154
  return _charge_ratio_SA;
 
155
}
 
156
 
 
157
void EMREvent::SetChargeRatioSA(double charge_ratio_SA) {
 
158
  _charge_ratio_SA = charge_ratio_SA;
 
159
}
59
160
}
60
161