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
#ifndef _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
18
#define _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
20
#include "src/common_cpp/DataStructure/TOFSlabHit.hh"
21
#include "src/common_cpp/JsonCppProcessors/ObjectProcessor.hh"
22
#include "src/common_cpp/JsonCppProcessors/Pmt0Processor.hh"
23
#include "src/common_cpp/JsonCppProcessors/Pmt1Processor.hh"
24
#include "src/common_cpp/JsonCppProcessors/PrimitivesProcessors.hh"
28
/** @class TOFSlabHitProcessor Conversions for TOFSlabHit between C++ and Json
30
* @var _slab_proc_proc Processor for _slab
31
* @var _phys_event_number_proc_proc Processor for _phys_event_number
32
* @var _raw_time_proc_proc Processor for _raw_time
33
* @var _charge_proc_proc Processor for _charge
34
* @var _plane_proc_proc Processor for _plane
35
* @var _charge_product_proc_proc Processor for _charge_product
36
* @var _time_proc_proc Processor for _time
37
* @var _station_proc_proc Processor for _station
38
* @var _detector_proc_proc Processor for _detector
39
* @var _part_event_number_proc_proc Processor for _part_event_number
40
* @var _pmt1_proc_proc Processor for _pmt1
41
* @var _pmt0_proc_proc Processor for _pmt0
44
class TOFSlabHitProcessor : public ObjectProcessor<TOFSlabHit> {
46
/** Set up processors and register branches
48
* Everything else is handled by the base class
50
TOFSlabHitProcessor();
53
IntProcessor _slab_proc;
54
IntProcessor _phys_event_number_proc;
55
DoubleProcessor _raw_time_proc;
56
IntProcessor _charge_proc;
57
IntProcessor _plane_proc;
58
IntProcessor _charge_product_proc;
59
DoubleProcessor _time_proc;
60
IntProcessor _station_proc;
61
StringProcessor _detector_proc;
62
IntProcessor _part_event_number_proc;
63
Pmt1Processor _pmt1_proc;
64
Pmt0Processor _pmt0_proc;
68
#endif // #define _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
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
#ifndef _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
18
#define _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
20
#include "src/common_cpp/DataStructure/TOFSlabHit.hh"
21
#include "src/common_cpp/JsonCppProcessors/ObjectProcessor.hh"
22
#include "src/common_cpp/JsonCppProcessors/Pmt0Processor.hh"
23
#include "src/common_cpp/JsonCppProcessors/Pmt1Processor.hh"
24
#include "src/common_cpp/JsonCppProcessors/PrimitivesProcessors.hh"
28
/** @class TOFSlabHitProcessor Conversions for TOFSlabHit between C++ and Json
30
* @var _slab_proc_proc Processor for _slab
31
* @var _phys_event_number_proc_proc Processor for _phys_event_number
32
* @var _raw_time_proc_proc Processor for _raw_time
33
* @var _charge_proc_proc Processor for _charge
34
* @var _plane_proc_proc Processor for _plane
35
* @var _charge_product_proc_proc Processor for _charge_product
36
* @var _time_proc_proc Processor for _time
37
* @var _station_proc_proc Processor for _station
38
* @var _detector_proc_proc Processor for _detector
39
* @var _part_event_number_proc_proc Processor for _part_event_number
40
* @var _pmt1_proc_proc Processor for _pmt1
41
* @var _pmt0_proc_proc Processor for _pmt0
44
class TOFSlabHitProcessor : public ObjectProcessor<TOFSlabHit> {
46
/** Set up processors and register branches
48
* Everything else is handled by the base class
50
TOFSlabHitProcessor();
53
IntProcessor _slab_proc;
54
IntProcessor _phys_event_number_proc;
55
DoubleProcessor _raw_time_proc;
56
IntProcessor _charge_proc;
57
IntProcessor _plane_proc;
58
IntProcessor _charge_product_proc;
59
DoubleProcessor _time_proc;
60
IntProcessor _station_proc;
61
StringProcessor _detector_proc;
62
IntProcessor _part_event_number_proc;
63
Pmt1Processor _pmt1_proc;
64
Pmt0Processor _pmt0_proc;
65
DoubleProcessor _global_x_proc;
66
DoubleProcessor _global_y_proc;
67
DoubleProcessor _global_z_proc;
68
DoubleProcessor _global_x_err_proc;
69
DoubleProcessor _global_y_err_proc;
70
DoubleProcessor _global_z_err_proc;
71
BoolProcessor _horizontal_slab_proc;
72
BoolProcessor _vertical_slab_proc;
76
#endif // #define _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_