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