1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
3
* MAUS is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
8
* MAUS is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with MAUS. If not, see <http://www.gnu.org/licenses/>.
17
#include "src/common_cpp/JsonCppProcessors/TOFSpacePointProcessor.hh"
21
TOFSpacePointProcessor::TOFSpacePointProcessor()
22
: _phys_event_number_proc(), _pixel_key_proc(), _charge_proc(),
23
_station_proc(), _slabY_proc(), _slabX_proc(), _charge_product_proc(),
24
_time_proc(), _detector_proc(), _part_event_number_proc(), _dt_proc() {
26
("phys_event_number", &_phys_event_number_proc, &TOFSpacePoint::GetPhysEventNumber,
27
&TOFSpacePoint::SetPhysEventNumber, true);
29
("pixel_key", &_pixel_key_proc, &TOFSpacePoint::GetPixelKey,
30
&TOFSpacePoint::SetPixelKey, true);
32
("charge", &_charge_proc, &TOFSpacePoint::GetCharge,
33
&TOFSpacePoint::SetCharge, true);
35
("station", &_station_proc, &TOFSpacePoint::GetStation,
36
&TOFSpacePoint::SetStation, true);
38
("slabY", &_slabY_proc, &TOFSpacePoint::GetSlaby,
39
&TOFSpacePoint::SetSlaby, true);
41
("slabX", &_slabX_proc, &TOFSpacePoint::GetSlabx,
42
&TOFSpacePoint::SetSlabx, true);
44
("charge_product", &_charge_product_proc, &TOFSpacePoint::GetChargeProduct,
45
&TOFSpacePoint::SetChargeProduct, true);
47
("time", &_time_proc, &TOFSpacePoint::GetTime,
48
&TOFSpacePoint::SetTime, true);
50
("detector", &_detector_proc, &TOFSpacePoint::GetDetector,
51
&TOFSpacePoint::SetDetector, true);
53
("part_event_number", &_part_event_number_proc, &TOFSpacePoint::GetPartEventNumber,
54
&TOFSpacePoint::SetPartEventNumber, true);
56
("dt", &_dt_proc, &TOFSpacePoint::GetDt,
57
&TOFSpacePoint::SetDt, true);
1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
3
* MAUS is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
8
* MAUS is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with MAUS. If not, see <http://www.gnu.org/licenses/>.
17
#include "src/common_cpp/JsonCppProcessors/TOFSpacePointProcessor.hh"
21
TOFSpacePointProcessor::TOFSpacePointProcessor()
22
: _phys_event_number_proc(), _pixel_key_proc(), _charge_proc(),
23
_station_proc(), _slabY_proc(), _slabX_proc(), _charge_product_proc(),
24
_time_proc(), _detector_proc(), _part_event_number_proc(), _dt_proc() {
26
("phys_event_number", &_phys_event_number_proc, &TOFSpacePoint::GetPhysEventNumber,
27
&TOFSpacePoint::SetPhysEventNumber, true);
29
("pixel_key", &_pixel_key_proc, &TOFSpacePoint::GetPixelKey,
30
&TOFSpacePoint::SetPixelKey, true);
32
("charge", &_charge_proc, &TOFSpacePoint::GetCharge,
33
&TOFSpacePoint::SetCharge, true);
35
("station", &_station_proc, &TOFSpacePoint::GetStation,
36
&TOFSpacePoint::SetStation, true);
38
("slabY", &_slabY_proc, &TOFSpacePoint::GetSlaby,
39
&TOFSpacePoint::SetSlaby, true);
41
("slabX", &_slabX_proc, &TOFSpacePoint::GetSlabx,
42
&TOFSpacePoint::SetSlabx, true);
44
("charge_product", &_charge_product_proc, &TOFSpacePoint::GetChargeProduct,
45
&TOFSpacePoint::SetChargeProduct, true);
47
("time", &_time_proc, &TOFSpacePoint::GetTime,
48
&TOFSpacePoint::SetTime, true);
50
("detector", &_detector_proc, &TOFSpacePoint::GetDetector,
51
&TOFSpacePoint::SetDetector, true);
53
("part_event_number", &_part_event_number_proc, &TOFSpacePoint::GetPartEventNumber,
54
&TOFSpacePoint::SetPartEventNumber, true);
56
("dt", &_dt_proc, &TOFSpacePoint::GetDt,
57
&TOFSpacePoint::SetDt, true);
59
("global_x", &_global_x_proc, &TOFSpacePoint::GetGlobalPosX,
60
&TOFSpacePoint::SetGlobalPosX, true);
62
("global_y", &_global_y_proc, &TOFSpacePoint::GetGlobalPosY,
63
&TOFSpacePoint::SetGlobalPosY, true);
65
("global_z", &_global_z_proc, &TOFSpacePoint::GetGlobalPosZ,
66
&TOFSpacePoint::SetGlobalPosZ, true);
68
("global_x_err", &_global_x_err_proc, &TOFSpacePoint::GetGlobalPosXErr,
69
&TOFSpacePoint::SetGlobalPosXErr, true);
71
("global_y_err", &_global_y_err_proc, &TOFSpacePoint::GetGlobalPosYErr,
72
&TOFSpacePoint::SetGlobalPosYErr, true);
74
("global_z_err", &_global_z_err_proc, &TOFSpacePoint::GetGlobalPosZErr,
75
&TOFSpacePoint::SetGlobalPosZErr, true);