~cheid001/maus/SingleSationDistro

« back to all changes in this revision

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

merging with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
template <class ChannelId>
53
53
void HitProcessor<ChannelId>::RegisterBranches() {
54
 
    RegisterValueBranch("track_id", &_int_proc,
 
54
    this->RegisterValueBranch("track_id", &_int_proc,
55
55
                        &Hit<ChannelId>::GetTrackId,
56
56
                        &Hit<ChannelId>::SetTrackId, true);
57
 
    RegisterValueBranch("particle_id", &_int_proc,
 
57
    this->RegisterValueBranch("particle_id", &_int_proc,
58
58
                        &Hit<ChannelId>::GetParticleId,
59
59
                        &Hit<ChannelId>::SetParticleId, true);
60
 
    RegisterValueBranch("energy", &_double_proc,
 
60
    this->RegisterValueBranch("energy", &_double_proc,
61
61
                        &Hit<ChannelId>::GetEnergy,
62
62
                        &Hit<ChannelId>::SetEnergy, true);
63
 
    RegisterValueBranch("charge", &_double_proc,
 
63
    this->RegisterValueBranch("charge", &_double_proc,
64
64
                        &Hit<ChannelId>::GetCharge,
65
65
                        &Hit<ChannelId>::SetCharge, true);
66
 
    RegisterValueBranch("time", &_double_proc,
 
66
    this->RegisterValueBranch("time", &_double_proc,
67
67
                        &Hit<ChannelId>::GetTime,
68
68
                        &Hit<ChannelId>::SetTime, true);
69
 
    RegisterValueBranch("energy_deposited", &_double_proc,
 
69
    this->RegisterValueBranch("energy_deposited", &_double_proc,
70
70
                        &Hit<ChannelId>::GetEnergyDeposited,
71
71
                        &Hit<ChannelId>::SetEnergyDeposited, true);
72
 
    RegisterValueBranch("position", &_three_vec_proc,
 
72
    this->RegisterValueBranch("position", &_three_vec_proc,
73
73
                        &Hit<ChannelId>::GetPosition,
74
74
                        &Hit<ChannelId>::SetPosition, true);
75
 
    RegisterValueBranch("momentum", &_three_vec_proc,
 
75
    this->RegisterValueBranch("momentum", &_three_vec_proc,
76
76
                        &Hit<ChannelId>::GetMomentum,
77
77
                        &Hit<ChannelId>::SetMomentum, true);
78
 
    RegisterPointerBranch("channel_id", _channel_id_proc,
 
78
    this->RegisterPointerBranch("channel_id", _channel_id_proc,
79
79
                        &Hit<ChannelId>::GetChannelId,
80
80
                        &Hit<ChannelId>::SetChannelId, true);
81
81
}