~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/Global/PIDLogLPair.cc

merging in changes in merge branch

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:8080/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
 
 
18
#include "src/common_cpp/DataStructure/Global/PIDLogLPair.hh"
 
19
 
 
20
namespace MAUS {
 
21
namespace DataStructure {
 
22
namespace Global {
 
23
 
 
24
PIDLogLPair::PIDLogLPair() {
 
25
  this->first = 0;
 
26
  this->second = 0.0;
 
27
};
 
28
 
 
29
PIDLogLPair::PIDLogLPair(int pid, double logL) {
 
30
  this->first = pid;
 
31
  this->second = logL;
 
32
};
 
33
 
 
34
// Destructor
 
35
PIDLogLPair::~PIDLogLPair() {}
 
36
 
 
37
// Setter for first element, for PIDLogLPairProcessor
 
38
void PIDLogLPair::set_PID(int PID) {
 
39
  this->first = PID;
 
40
}
 
41
 
 
42
// Getter for first element, for PIDLogLPairProcessor
 
43
int PIDLogLPair::get_PID() const {
 
44
  return this->first;
 
45
}
 
46
 
 
47
// Setter for second element, for PIDLogLPairProcessor
 
48
void PIDLogLPair::set_logL(double logL) {
 
49
  this->second = logL;
 
50
}
 
51
 
 
52
// Getter for second element, for PIDLogLPairProcessor
 
53
double PIDLogLPair::get_logL() const {
 
54
  return this->second;
 
55
}
 
56
} // ~namespace Global
 
57
} // ~namespace DataStructure
 
58
} // ~namespace MAUS