PandaRoot
PndPattern.h
Go to the documentation of this file.
1 /*
2  * PndPattern.h
3  *
4  * Created on: Nov 8, 2017
5  * Author: Michael Papenbrock
6  */
7 
8 #ifndef PNDTRACKERS_PNDPATTERNMATCHER_PNDPATTERN_H_
9 #define PNDTRACKERS_PNDPATTERNMATCHER_PNDPATTERN_H_
10 
11 #include <set>
12 #include <map>
13 #include <vector>
14 #include <TVector3.h>
15 
16 class PndPattern : public TObject {
17  public:
18  PndPattern();
19  virtual ~PndPattern();
20 
21  void Clear();
22 
23  void SetSectorID(int sectorID) { fsectorID = sectorID; }
24  void AddMomentum(TVector3 momentum) { fmomenta.push_back(momentum); }
25  void AddMomenta(std::vector<TVector3> momenta);
26  void AddTubeID(int tubeID) { ftubeIDs.insert(tubeID); }
27  void SetTubeIDs(std::set<int> tubeIDs) { ftubeIDs = tubeIDs; }
28  void RaisePatternCount() { fcount++; }
29  void SetPatternCount(int count) { fcount = count; }
30  bool IsEmpty();
31 
32  std::set<int> GetTubeIDs() const { return ftubeIDs; }
33  short GetSectorID() const { return fsectorID; }
34  int GetCount() const { return fcount; }
35  std::vector<TVector3> GetMomenta() const { return fmomenta; }
36 
37  private:
38  std::set<int> ftubeIDs;
39  short fpdgCode;
40  short fsectorID;
41  int fcount;
42  std::vector<TVector3> fmomenta;
43 
44  ClassDef(PndPattern, 1);
45 };
46 
47 #endif /* PNDTRACKERS_PNDPATTERNMATCHER_PNDPATTERN_H_ */
int GetCount() const
Definition: PndPattern.h:34
void SetPatternCount(int count)
Definition: PndPattern.h:29
void SetTubeIDs(std::set< int > tubeIDs)
Definition: PndPattern.h:27
void RaisePatternCount()
Definition: PndPattern.h:28
std::set< int > GetTubeIDs() const
Definition: PndPattern.h:32
virtual ~PndPattern()
void SetSectorID(int sectorID)
Definition: PndPattern.h:23
void AddMomentum(TVector3 momentum)
Definition: PndPattern.h:24
void Clear()
void AddTubeID(int tubeID)
Definition: PndPattern.h:26
std::vector< TVector3 > GetMomenta() const
Definition: PndPattern.h:35
bool IsEmpty()
short GetSectorID() const
Definition: PndPattern.h:33
void AddMomenta(std::vector< TVector3 > momenta)