FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
analysis
AnalysisTools
PndListDefiner.cxx
Go to the documentation of this file.
1
#include <iostream>
2
#include <string>
3
#include "
PndListDefiner.h
"
4
5
#include "TH1F.h"
6
#include "
RhoBase/RhoParticleSelectorBase.h
"
7
8
using
std::cout;
9
using
std::endl;
10
11
PndListDefiner::PndListDefiner
() :
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
28
PndListDefiner::PndListDefiner
(std::string
name
) :
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
45
PndListDefiner::~PndListDefiner
()
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
54
void
PndListDefiner::Print
()
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
}
65
int
PndListDefiner::GetLength
()
66
{
67
return
fList
.
GetLength
();
68
}
69
70
int
PndListDefiner::GetNDau
()
71
{
72
return
fDauIdx
.size();
73
}
74
75
int
PndListDefiner::GetNSels
()
76
{
77
return
fSelector
.size();
78
}
79
80
int
PndListDefiner::GetNHistos
()
81
{
82
return
fHisto
.size();
83
}
84
PndListDefiner::fAntiIdx
int fAntiIdx
Definition:
PndListDefiner.h:28
RhoCandList::Cleanup
void Cleanup()
Definition:
RhoCandList.cxx:62
PndListDefiner::fHisto
std::vector< TH1F * > fHisto
Definition:
PndListDefiner.h:36
i
Int_t i
Definition:
run_full.C:25
PndListDefiner::GetLength
int GetLength()
Definition:
PndListDefiner.cxx:65
RhoCandList::GetLength
Int_t GetLength() const
Definition:
RhoCandList.h:46
PndListDefiner::~PndListDefiner
virtual ~PndListDefiner()
Definition:
PndListDefiner.cxx:45
PndListDefiner.h
PndListDefiner::fIsFilled
bool fIsFilled
Definition:
PndListDefiner.h:31
PndListDefiner::GetNSels
int GetNSels()
Definition:
PndListDefiner.cxx:75
RhoParticleSelectorBase.h
PndListDefiner::fIsUsed
bool fIsUsed
Definition:
PndListDefiner.h:30
PndListDefiner::fName
std::string fName
Definition:
PndListDefiner.h:25
PndListDefiner::fList
RhoCandList fList
Definition:
PndListDefiner.h:35
PndListDefiner::fDauIdx
std::vector< int > fDauIdx
Definition:
PndListDefiner.h:38
PndListDefiner::fPdgCode
int fPdgCode
Definition:
PndListDefiner.h:26
name
TString name
Definition:
createRootGeoFile.C:82
PndListDefiner::GetNHistos
int GetNHistos()
Definition:
PndListDefiner.cxx:80
PndListDefiner::fIsAntiList
bool fIsAntiList
Definition:
PndListDefiner.h:29
PndListDefiner::fCharge
float fCharge
Definition:
PndListDefiner.h:27
PndListDefiner::Print
void Print()
Definition:
PndListDefiner.cxx:54
PndListDefiner::GetNDau
int GetNDau()
Definition:
PndListDefiner.cxx:70
PndListDefiner::PndListDefiner
PndListDefiner()
Definition:
PndListDefiner.cxx:11
PndListDefiner::fSelector
std::vector< RhoParticleSelectorBase * > fSelector
Definition:
PndListDefiner.h:37
Generated on Sun Aug 18 2019 03:01:35 for FairRoot/PandaRoot by
1.8.8