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

#include <PndAnaSelectorPar.h>

Inheritance diagram for PndAnaSelectorPar:

Public Member Functions

 PndAnaSelectorPar (const char *name="PndAnaSelectorParName", const char *title="Analysis pid Selectorr parameter", const char *context="TestDefaultContext")
 
 ~PndAnaSelectorPar (void)
 
void clear (void)
 
void putParams (FairParamList *list)
 
Bool_t getParams (FairParamList *list)
 
void Print ()
 
Double_t GetVeryLooseCrit (Int_t ptype)
 
Double_t GetLooseCrit (Int_t ptype)
 
Double_t GetTightCrit (Int_t ptype)
 
Double_t GetVeryTightCrit (Int_t ptype)
 
Double_t GetVariableCrit (Int_t ptype)
 

Private Member Functions

 ClassDef (PndAnaSelectorPar, 1)
 

Private Attributes

TArrayD fVeryLoose
 
TArrayD fLoose
 
TArrayD fTight
 
TArrayD fVeryTight
 
TArrayD fVariable
 

Detailed Description

Definition at line 14 of file PndAnaSelectorPar.h.

Constructor & Destructor Documentation

PndAnaSelectorPar::PndAnaSelectorPar ( const char *  name = "PndAnaSelectorParName",
const char *  title = "Analysis pid Selectorr parameter",
const char *  context = "TestDefaultContext" 
)

Definition at line 5 of file PndAnaSelectorPar.cxx.

References clear().

6  : FairParGenericSet(name,title,context),
7  fVeryLoose(5),
8  fLoose(5),
9  fTight(5),
10  fVeryTight(5),
11  fVariable(5)
12 {
13  clear();
14 }
TString name
PndAnaSelectorPar::~PndAnaSelectorPar ( void  )
inline

Definition at line 20 of file PndAnaSelectorPar.h.

References clear().

20 {clear();};

Member Function Documentation

PndAnaSelectorPar::ClassDef ( PndAnaSelectorPar  ,
 
)
private
void PndAnaSelectorPar::clear ( void  )

Definition at line 16 of file PndAnaSelectorPar.cxx.

References fLoose, fTight, fVariable, fVeryLoose, and fVeryTight.

Referenced by PndAnaSelectorPar(), and ~PndAnaSelectorPar().

17 {
18  fVeryLoose.Reset(0.0);
19  fLoose.Reset(0.2);
20  fTight.Reset(0.5);
21  fVeryTight.Reset(0.9);
22  fVariable.Reset(0.0);
23 }
Double_t PndAnaSelectorPar::GetLooseCrit ( Int_t  ptype)
inline

Definition at line 28 of file PndAnaSelectorPar.h.

References fLoose.

28 {return fLoose.At(ptype);};
Bool_t PndAnaSelectorPar::getParams ( FairParamList *  list)

Definition at line 37 of file PndAnaSelectorPar.cxx.

References fLoose, fTight, fVariable, fVeryLoose, and fVeryTight.

38 {
39  // RTDB fills the values
40  if (!list) { return kFALSE; }
41 
42  if (!list->fill("VeryLoose", &fVeryLoose)) { return kFALSE; }
43  if (!list->fill("Loose", &fLoose)) { return kFALSE; }
44  if (!list->fill("Tight", &fTight)) { return kFALSE; }
45  if (!list->fill("VeryTight", &fVeryTight)) { return kFALSE; }
46  if (!list->fill("Variable", &fVariable)) { return kFALSE; }
47 
48  return kTRUE;
49 }
Double_t PndAnaSelectorPar::GetTightCrit ( Int_t  ptype)
inline

Definition at line 29 of file PndAnaSelectorPar.h.

References fTight.

29 {return fTight.At(ptype);};
Double_t PndAnaSelectorPar::GetVariableCrit ( Int_t  ptype)
inline

Definition at line 31 of file PndAnaSelectorPar.h.

References fVariable.

31 {return fVariable.At(ptype);};
Double_t PndAnaSelectorPar::GetVeryLooseCrit ( Int_t  ptype)
inline

Accessor functions

Definition at line 27 of file PndAnaSelectorPar.h.

References fVeryLoose.

27 {return fVeryLoose.At(ptype);};
Double_t PndAnaSelectorPar::GetVeryTightCrit ( Int_t  ptype)
inline

Definition at line 30 of file PndAnaSelectorPar.h.

References fVeryTight.

30 {return fVeryTight.At(ptype);};
void PndAnaSelectorPar::Print ( )

Definition at line 53 of file PndAnaSelectorPar.cxx.

References fLoose, fTight, fVariable, fVeryLoose, fVeryTight, and i.

54 {
55  std::cout<<"Analysis PID Selection Parameters:"<<std::endl;
56  std::cout<<" criterion \te\tmu\tpi\tK\tp"<<std::endl;
57  std::cout<<"VeryLoose: ";
58  for(int i=0; i<5; i++) { std::cout<<"\t"<<fVeryLoose.At(i); }
59  std::cout<<std::endl;
60  std::cout<<"Loose: ";
61  for(int i=0; i<5; i++) { std::cout<<"\t"<<fLoose.At(i); }
62  std::cout<<std::endl;
63  std::cout<<"Tight: ";
64  for(int i=0; i<5; i++) { std::cout<<"\t"<<fTight.At(i); }
65  std::cout<<std::endl;
66  std::cout<<"VeryTight: ";
67  for(int i=0; i<5; i++) { std::cout<<"\t"<<fVeryTight.At(i); }
68  std::cout<<std::endl;
69  std::cout<<"Variable: ";
70  for(int i=0; i<5; i++) { std::cout<<"\t"<<fVariable.At(i); }
71  std::cout<<std::endl;
72 
73  return;
74 }
Int_t i
Definition: run_full.C:25
void PndAnaSelectorPar::putParams ( FairParamList *  list)

Definition at line 25 of file PndAnaSelectorPar.cxx.

References fLoose, fTight, fVariable, fVeryLoose, and fVeryTight.

26 {
27  if(!list) { return; }
28 
29  list->add("VeryLoose", fVeryLoose);
30  list->add("Loose", fLoose);
31  list->add("Tight", fTight);
32  list->add("VeryTight", fVeryTight);
33  list->add("Variable", fVariable);
34 
35 }

Member Data Documentation

TArrayD PndAnaSelectorPar::fLoose
private

Definition at line 36 of file PndAnaSelectorPar.h.

Referenced by clear(), GetLooseCrit(), getParams(), Print(), and putParams().

TArrayD PndAnaSelectorPar::fTight
private

Definition at line 37 of file PndAnaSelectorPar.h.

Referenced by clear(), getParams(), GetTightCrit(), Print(), and putParams().

TArrayD PndAnaSelectorPar::fVariable
private

Definition at line 39 of file PndAnaSelectorPar.h.

Referenced by clear(), getParams(), GetVariableCrit(), Print(), and putParams().

TArrayD PndAnaSelectorPar::fVeryLoose
private

Definition at line 31 of file PndAnaSelectorPar.h.

Referenced by clear(), getParams(), GetVeryLooseCrit(), Print(), and putParams().

TArrayD PndAnaSelectorPar::fVeryTight
private

Definition at line 38 of file PndAnaSelectorPar.h.

Referenced by clear(), getParams(), GetVeryTightCrit(), Print(), and putParams().


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