~c-e-pidcott/maus/1389a

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppProcessors/TOFSlabHitProcessor.hh

  • Committer: Celeste Pidcott
  • Date: 2016-02-17 13:22:56 UTC
  • mfrom: (663.170.48 maus-globalrecon)
  • Revision ID: c.e.pidcott@warwick.ac.uk-20160217132256-tyadq1gm93e2k2wv
merged in from lp:~jan.greis/maus/global-recon-rk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
2
 
 *
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.
7
 
 *
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.
12
 
 *
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/>.
15
 
 */
16
 
 
17
 
#ifndef _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
18
 
#define _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
19
 
 
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"
25
 
 
26
 
namespace MAUS {
27
 
 
28
 
/** @class TOFSlabHitProcessor Conversions for TOFSlabHit between C++ and Json 
29
 
 *
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
42
 
 */
43
 
 
44
 
class TOFSlabHitProcessor : public ObjectProcessor<TOFSlabHit> {
45
 
  public:
46
 
    /** Set up processors and register branches
47
 
     *
48
 
     *  Everything else is handled by the base class
49
 
     */
50
 
    TOFSlabHitProcessor();
51
 
 
52
 
  private:
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
 
};
66
 
}  // namespace MAUS
67
 
 
68
 
#endif  // #define _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
69
 
 
 
1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
 
2
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 */
 
16
 
 
17
#ifndef _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
 
18
#define _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
 
19
 
 
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"
 
25
 
 
26
namespace MAUS {
 
27
 
 
28
/** @class TOFSlabHitProcessor Conversions for TOFSlabHit between C++ and Json 
 
29
 *
 
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
 
42
 */
 
43
 
 
44
class TOFSlabHitProcessor : public ObjectProcessor<TOFSlabHit> {
 
45
  public:
 
46
    /** Set up processors and register branches
 
47
     *
 
48
     *  Everything else is handled by the base class
 
49
     */
 
50
    TOFSlabHitProcessor();
 
51
 
 
52
  private:
 
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;
 
73
};
 
74
}  // namespace MAUS
 
75
 
 
76
#endif  // #define _SRC_COMMON_CPP_JSONCPPPROCESSORS_TOFSLABHITPROCESSOR_
 
77