PandaRoot
RhoEnergyParticleSelector.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 #ifndef RHOENERGYPARTICLESELECTOR_H
14 #define RHOENERGYPARTICLESELECTOR_H
15 // //
17 // Selector classes for energy selection //
18 // //
19 // Author List: //
20 // Marcel Kunze, RUB, Feb. 99 //
21 // Copyright (C) 1999-2001, Ruhr-University Bochum. //
22 // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
23 // //
25 
26 #include <iostream>
27 
28 #include <float.h>
29 #include "TNamed.h"
31 
32 class RhoCandidate;
33 class PndPidCandidate;
34 
35 //----------------------------------------------------------------
36 
38 
39  public:
40  // Constructor
41  RhoEnergyParticleSelector(const char *name = "RhoEnergyParticleSelector", Double_t cv = 0, Double_t w = DBL_MAX, const char *type = nullptr);
42  // Destructor
44 
45  // operations
46  virtual Bool_t Accept(RhoCandidate *b);
47  virtual Bool_t Accept(PndPidCandidate *b);
48 
49  private:
50  Double_t fCentralValue, fWindow;
51 
52  public:
53  ClassDef(RhoEnergyParticleSelector, 1) // Particle selector (Energy window)
54 };
55 
56 #endif
virtual Bool_t Accept(RhoCandidate *b)
RhoEnergyParticleSelector(const char *name="RhoEnergyParticleSelector", Double_t cv=0, Double_t w=DBL_MAX, const char *type=nullptr)