FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
PndListDefiner Class Reference

#include <PndListDefiner.h>

Public Member Functions

 PndListDefiner ()
 
 PndListDefiner (std::string name)
 
virtual ~PndListDefiner ()
 
void Print ()
 
int GetLength ()
 
int GetNDau ()
 
int GetNSels ()
 
int GetNHistos ()
 
 ClassDef (PndListDefiner, 1)
 

Public Attributes

std::string fName
 
int fPdgCode
 
float fCharge
 
int fAntiIdx
 
bool fIsAntiList
 
bool fIsUsed
 
bool fIsFilled
 
bool fIsGeneric
 
bool fIsMerged
 
bool fDumpList
 
RhoCandList fList
 
std::vector< TH1F * > fHisto
 
std::vector
< RhoParticleSelectorBase * > 
fSelector
 
std::vector< int > fDauIdx
 
int fNEntries
 
std::string fColName
 
std::vector< std::string > fNtpFNames
 
std::vector< float * > fNtpFArrays
 
std::vector< std::string > fNtpINames
 
std::vector< int * > fNtpIArrays
 

Detailed Description

Definition at line 12 of file PndListDefiner.h.

Constructor & Destructor Documentation

PndListDefiner::PndListDefiner ( )

Definition at line 11 of file PndListDefiner.cxx.

References RhoCandList::Cleanup(), fHisto, fList, and fSelector.

11  :
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 }
void Cleanup()
Definition: RhoCandList.cxx:62
std::vector< TH1F * > fHisto
std::string fName
RhoCandList fList
std::vector< RhoParticleSelectorBase * > fSelector
PndListDefiner::PndListDefiner ( std::string  name)

Definition at line 28 of file PndListDefiner.cxx.

References RhoCandList::Cleanup(), fHisto, fList, and fSelector.

28  :
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 }
void Cleanup()
Definition: RhoCandList.cxx:62
std::vector< TH1F * > fHisto
std::string fName
RhoCandList fList
TString name
std::vector< RhoParticleSelectorBase * > fSelector
PndListDefiner::~PndListDefiner ( )
virtual

Definition at line 45 of file PndListDefiner.cxx.

References fHisto, fSelector, and i.

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 }
std::vector< TH1F * > fHisto
Int_t i
Definition: run_full.C:25
std::vector< RhoParticleSelectorBase * > fSelector

Member Function Documentation

PndListDefiner::ClassDef ( PndListDefiner  ,
 
)
int PndListDefiner::GetLength ( )

Definition at line 65 of file PndListDefiner.cxx.

References fList, and RhoCandList::GetLength().

Referenced by PndSimpleAnalysis::Exec(), and Print().

66 {
67  return fList.GetLength();
68 }
Int_t GetLength() const
Definition: RhoCandList.h:46
RhoCandList fList
int PndListDefiner::GetNDau ( )

Definition at line 70 of file PndListDefiner.cxx.

References fDauIdx.

Referenced by PndSimpleAnalysis::Exec(), Print(), and PndSimpleAnalysis::SetupAnalysis().

71 {
72  return fDauIdx.size();
73 }
std::vector< int > fDauIdx
int PndListDefiner::GetNHistos ( )

Definition at line 80 of file PndListDefiner.cxx.

References fHisto.

Referenced by PndSimpleAnalysis::Finish().

81 {
82  return fHisto.size();
83 }
std::vector< TH1F * > fHisto
int PndListDefiner::GetNSels ( )

Definition at line 75 of file PndListDefiner.cxx.

References fSelector.

Referenced by PndSimpleAnalysis::Exec(), and Print().

76 {
77  return fSelector.size();
78 }
std::vector< RhoParticleSelectorBase * > fSelector
void PndListDefiner::Print ( )

Definition at line 54 of file PndListDefiner.cxx.

References fAntiIdx, fCharge, fDauIdx, fIsAntiList, fIsFilled, fIsUsed, fName, fPdgCode, GetLength(), GetNDau(), GetNSels(), and i.

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 }
Int_t i
Definition: run_full.C:25
std::string fName
std::vector< int > fDauIdx

Member Data Documentation

int PndListDefiner::fAntiIdx
float PndListDefiner::fCharge
std::string PndListDefiner::fColName

Definition at line 42 of file PndListDefiner.h.

Referenced by PndSimpleAnalysis::SetupAnalysis().

std::vector<int> PndListDefiner::fDauIdx
bool PndListDefiner::fDumpList

Definition at line 34 of file PndListDefiner.h.

Referenced by PndSimpleAnalysis::Exec(), and PndSimpleAnalysis::SetupAnalysis().

std::vector<TH1F*> PndListDefiner::fHisto
bool PndListDefiner::fIsAntiList
bool PndListDefiner::fIsFilled

Definition at line 31 of file PndListDefiner.h.

Referenced by Print().

bool PndListDefiner::fIsGeneric
bool PndListDefiner::fIsMerged

Definition at line 33 of file PndListDefiner.h.

bool PndListDefiner::fIsUsed
RhoCandList PndListDefiner::fList

Definition at line 35 of file PndListDefiner.h.

Referenced by PndSimpleAnalysis::Exec(), GetLength(), and PndListDefiner().

std::string PndListDefiner::fName
int PndListDefiner::fNEntries

Definition at line 41 of file PndListDefiner.h.

Referenced by PndSimpleAnalysis::Exec(), and PndSimpleAnalysis::SetupAnalysis().

std::vector<float*> PndListDefiner::fNtpFArrays

Definition at line 44 of file PndListDefiner.h.

Referenced by PndSimpleAnalysis::Exec(), and PndSimpleAnalysis::SetupAnalysis().

std::vector<std::string> PndListDefiner::fNtpFNames

Definition at line 43 of file PndListDefiner.h.

Referenced by PndSimpleAnalysis::Exec(), and PndSimpleAnalysis::SetupAnalysis().

std::vector<int*> PndListDefiner::fNtpIArrays

Definition at line 46 of file PndListDefiner.h.

Referenced by PndSimpleAnalysis::Exec(), and PndSimpleAnalysis::SetupAnalysis().

std::vector<std::string> PndListDefiner::fNtpINames

Definition at line 45 of file PndListDefiner.h.

Referenced by PndSimpleAnalysis::Exec(), and PndSimpleAnalysis::SetupAnalysis().

int PndListDefiner::fPdgCode
std::vector<RhoParticleSelectorBase*> PndListDefiner::fSelector

The documentation for this class was generated from the following files: