Project

General

Profile

Feature #1840 » PrimaryChainProcessor.cc

Greis, Jan, 15 April 2016 11:55

 
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
#include "src/common_cpp/JsonCppProcessors/Global/PrimaryChainProcessor.hh"
18

    
19
namespace MAUS {
20
namespace Processor {
21
namespace Global {
22

    
23
PrimaryChainProcessor::PrimaryChainProcessor() {
24

    
25
  RegisterValueBranch(
26
      "mapper_name", &_string_proc,
27
      &MAUS::DataStructure::Global::PrimaryChain::get_mapper_name,
28
      &MAUS::DataStructure::Global::PrimaryChain::set_mapper_name,
29
      true);
30

    
31
  RegisterPointerBranch(
32
      "lr_spacepoints", &_lr_sp_trefarray_proc,
33
      &MAUS::DataStructure::Global::PrimaryChain::get_lr_spacepoints,
34
      &MAUS::DataStructure::Global::PrimaryChain::set_lr_spacepoints,
35
      true);
36

    
37
  RegisterPointerBranch(
38
      "lr_tracks", &_lr_track_trefarray_proc,
39
      &MAUS::DataStructure::Global::PrimaryChain::get_lr_tracks,
40
      &MAUS::DataStructure::Global::PrimaryChain::set_lr_tracks,
41
      true);
42

    
43
  RegisterPointerBranch(
44
      "tracks", &_track_trefarray_proc,
45
      &MAUS::DataStructure::Global::PrimaryChain::get_tracks,
46
      &MAUS::DataStructure::Global::PrimaryChain::set_tracks,
47
      true);
48

    
49
}
50
} // ~namespace Global
51
} // ~namespace Processor
52
} // ~namespace MAUS
(3-3/4)