FairRoot/PandaRoot
PndListDefiner.cxx
Go to the documentation of this file.
1 #include <iostream>
2 #include <string>
3 #include "PndListDefiner.h"
4 
5 #include "TH1F.h"
7 
8 using std::cout;
9 using std::endl;
10 
12  fName(""),
13  fPdgCode(0),
14  fCharge(0.0),
15  fAntiIdx(-1),
16  fIsAntiList(false),
17  fIsUsed(false),
18  fIsFilled(false),
19  fIsGeneric(false),
20  fIsMerged(false),
21  fDumpList(false)
22 {
23  fList.Cleanup();
24  fSelector.clear();
25  fHisto.clear();
26 }
27 
29  fName(name),
30  fPdgCode(0),
31  fCharge(0.0),
32  fAntiIdx(-1),
33  fIsAntiList(false),
34  fIsUsed(false),
35  fIsFilled(false),
36  fIsGeneric(false),
37  fIsMerged(false),
38  fDumpList(false)
39 {
40  fList.Cleanup();
41  fSelector.clear();
42  fHisto.clear();
43 }
44 
46 {
47  unsigned int i=0;
48 
49  for (i=0; i<fHisto.size(); i++) { delete fHisto[i]; }
50  for (i=0; i<fSelector.size(); i++) { delete fSelector[i]; }
51 }
52 
53 
55 {
56  cout << fName << " (" << fPdgCode << ", " << fCharge << ") : ";
57  cout << GetNDau() << " ( ";
58  for (int i=0; i<GetNDau(); i++) { cout <<fDauIdx[i]<<" "; }
59  cout << ") ";
60  cout << " CC " << fAntiIdx << " (";
61  cout << (fIsAntiList ? "A" : "L") << "/";
62  cout << (fIsUsed ? "U" : "-") << "/";
63  cout << (fIsFilled ? "F" : "-") << ") #Sel="<<GetNSels()<<" - " << GetLength() << endl;
64 }
66 {
67  return fList.GetLength();
68 }
69 
71 {
72  return fDauIdx.size();
73 }
74 
76 {
77  return fSelector.size();
78 }
79 
81 {
82  return fHisto.size();
83 }
84 
void Cleanup()
Definition: RhoCandList.cxx:62
std::vector< TH1F * > fHisto
Int_t i
Definition: run_full.C:25
Int_t GetLength() const
Definition: RhoCandList.h:46
virtual ~PndListDefiner()
std::string fName
RhoCandList fList
std::vector< int > fDauIdx
TString name
std::vector< RhoParticleSelectorBase * > fSelector