forked from sPHENIX-Collaboration/coresoftware
/
TrkrClusterIterationMapv1.h
48 lines (33 loc) · 1.1 KB
/
TrkrClusterIterationMapv1.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef TRACKBASE_TRKRCLUSTERITERATIONV1_H
#define TRACKBASE_TRKRCLUSTERITERATIONV1_H
/**
* @file trackbase/TrkrClusterHitAssocv3.h
* @author D. McGlinchey
* @date June 2018
* @brief Version 3 of class for associating clusters to the hits that went into them
*/
#include "TrkrDefs.h"
#include "TrkrClusterIterationMap.h"
#include <phool/PHObject.h>
#include <iostream> // for cout, ostream
#include <map>
#include <utility> // for pair
/**
* @brief Class for associating clusters to the hits that went into them
*
* Store the associations between clusters and the hits that went into them.
*/
class TrkrClusterIterationMapv1 : public TrkrClusterIterationMap
{
public:
TrkrClusterIterationMapv1() = default;
void Reset() override;
void identify(std::ostream &os = std::cout) const override;
void addIteration(TrkrDefs::cluskey, short int) override;
short int getIteration(TrkrDefs::cluskey ckey) override;
unsigned int size(void) const override;
private:
Map m_map;
ClassDefOverride(TrkrClusterIterationMapv1, 1);
};
#endif // TRACKBASE_TRKRCLUSTERITERATIONV1_H