BmnRoot
Loading...
Searching...
No Matches
BmnCluster.cxx
Go to the documentation of this file.
1
8#include "BmnCluster.h"
9
10#include "BmnMatch.h"
11
12#include <sstream>
13
14using namespace std;
15
17 : TObject(),
18 fDigis(),
19 fAddress(0),
20 fMatch(NULL)
21{
22
23}
24BmnCluster::BmnCluster(const std::vector<Int_t>& indices, Int_t address)
25 : TObject(),
26 fDigis(),
27 fAddress(address),
28 fMatch(NULL)
29{
30 fDigis.assign(indices.begin(), indices.end());
31}
32
37
39 if ( fMatch ) delete fMatch;
40 fMatch = match;
41}
42
43
45{
46 stringstream ss;
47 ss << "BmnCluster: ";
48 Int_t nofDigis = GetNofDigis();
49 ss << "nofDigis=" << nofDigis << " | ";
50 for (Int_t i = 0; i < nofDigis; i++) {
51 ss << fDigis[i] << " ";
52 }
53 ss << " | address=" << fAddress << endl;
54 return ss.str();
55}
Base class for cluster objects.
int i
Definition P4_F32vec4.h:22
BmnCluster()
Constructor.
virtual ~BmnCluster()
Destructor.
Int_t GetNofDigis() const
Number of digis in cluster.
Definition BmnCluster.h:56
virtual std::string ToString() const
Return string representation of the object.
void SetMatch(BmnMatch *match)
STL namespace.