PandaRoot
PndAnaPidSelector.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //
14 // PndAnaPidSelector.h
15 // PANDAROOT
16 //
17 // Created by Ralf Kliemt on 12/16/11.
18 //
19 
20 #ifndef PNDANAPIDSELECTOR_H
21 #define PNDANAPIDSELECTOR_H
22 
23 #include <iostream>
24 #include <float.h>
25 #include "TNamed.h"
26 #include "TString.h"
28 
29 class RhoCandidate;
30 class PndPidCandidate;
31 class PndAnaSelectorPar;
32 
34 
35  public:
36  // Constructor
37  PndAnaPidSelector(const char *name = "PndAnaPidSelector", const char *type = "", const char *paramid = "Default");
38  // Destructor
39  virtual ~PndAnaPidSelector() {}
40 
41  // operations
42  virtual Bool_t Accept(RhoCandidate *b);
43  virtual Bool_t Accept(PndPidCandidate *b);
44  Bool_t SetCriterion(TString &crit) { return SetSelection(crit); };
45  Bool_t SetSelection(TString &crit);
46 
47  protected:
49 
50  // PndAnaFluxPar* fFluxPar; //! Pointer to the current parameter object
51 
52  Double_t fChargeCrit;
53  Double_t fUserCut; // when criterion == cut, use this cut value
54 
55  Int_t fPidSelect;
56 
57  public:
58  ClassDef(PndAnaPidSelector, 1) // Particle selector
59 };
60 
61 #endif
Double_t fChargeCrit
Pointer to the current parameter object.
Bool_t SetSelection(TString &crit)
PndAnaSelectorPar * fSelectPar
PndAnaPidSelector(const char *name="PndAnaPidSelector", const char *type="", const char *paramid="Default")
Bool_t SetCriterion(TString &crit)
virtual Bool_t Accept(RhoCandidate *b)
virtual ~PndAnaPidSelector()