Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PidInfo_RICH_v1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PidInfo_RICH_v1.h
1 #ifndef PIDINFOV1_H__
2 #define PIDINFOV1_H__
3 
4 #include "PidInfo.h"
5 #include <vector>
6 #include <map>
7 
8 class PidInfo_RICH_v1 : public PidInfo {
9 
10 public:
11 
12  PidInfo_RICH_v1( const int );
13  virtual ~PidInfo_RICH_v1() {}
14 
15  void Reset();
16  int isValid() const { return _pid_candidate_loglikelihood.size() > 0; }
17 
18  void identify(std::ostream& os=std::cout) const {
19  os << "This is the PidInfo_RICH_v1 object" << std::endl;
20  }
21 
22  int get_track_id() const { return _trackid; }
23 
25 
26  float get_likelihood(const PidInfo::PID_CANDIDATE candidate);
27 
28  void set_track_id(const int id) { _trackid = id;}
29 
31 
32  void set_likelihood(const PID_CANDIDATE candidate, const float candidate_loglikelihood) { _pid_candidate_loglikelihood[candidate] = candidate_loglikelihood; }
33 
34 private:
35  float _trackid;
36 
38 
39  std::map<PID_CANDIDATE,float> _pid_candidate_loglikelihood;
40 
41  ClassDef(PidInfo_RICH_v1,1)
42 
43 };
44 
45 #endif /*PIDINFOV1_H__ */