laura is hosted by Hepforge, IPPP Durham
Laura++  v2r1
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauVetoes.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2004 - 2013.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Authors:
7 // Thomas Latham
8 // John Back
9 // Paul Harrison
10 
23 #ifndef LAU_VETOES
24 #define LAU_VETOES
25 
26 #include <vector>
27 
28 #include "Rtypes.h"
29 
30 class LauKinematics;
31 
32 
33 class LauVetoes {
34 
35  public:
37  LauVetoes();
38 
40  virtual ~LauVetoes();
41 
43 
46  LauVetoes(const LauVetoes& other);
47 
49 
53  LauVetoes& operator=(const LauVetoes& other);
54 
56 
61  void addMassVeto(Int_t resPairAmpInt, Double_t minMass, Double_t maxMass);
62 
64 
69  void addMassSqVeto(Int_t resPairAmpInt, Double_t minMassSq, Double_t maxMassSq);
70 
72 
78  Bool_t passVeto(Double_t& m12Sq, Double_t& m23Sq, Double_t& m13Sq) const;
79 
81 
85  Bool_t passVeto(const LauKinematics* kinematics) const;
86 
88 
91  Int_t getNVetoes() const {return nVetoes_;}
92 
94 
97  const std::vector<Int_t>& getVetoPairs() const {return vetoPair_;}
98 
100 
103  const std::vector<Double_t>& getVetoMinMass() const {return vetoMinMass_;}
104 
106 
109  const std::vector<Double_t>& getVetoMaxMass() const {return vetoMaxMass_;}
110 
111  private:
113  Int_t nVetoes_;
114 
116  std::vector<Int_t> vetoPair_;
117 
119  std::vector<Double_t> vetoMinMass_;
120 
122  std::vector<Double_t> vetoMaxMass_;
123 
124  ClassDef(LauVetoes,0) // Vetoes in the Dalitz plot
125 };
126 
127 #endif
Int_t nVetoes_
The number of vetoes.
Definition: LauVetoes.hh:113
void addMassVeto(Int_t resPairAmpInt, Double_t minMass, Double_t maxMass)
Add a veto to the Dalitz plot.
Definition: LauVetoes.cc:51
std::vector< Double_t > vetoMinMass_
The minimum mass-squared for each veto.
Definition: LauVetoes.hh:119
std::vector< Double_t > vetoMaxMass_
The maximum mass-squared for each veto.
Definition: LauVetoes.hh:122
std::vector< Int_t > vetoPair_
The index of the vetoed mass-squared variable for each veto.
Definition: LauVetoes.hh:116
void addMassSqVeto(Int_t resPairAmpInt, Double_t minMassSq, Double_t maxMassSq)
Add a veto to the Dalitz plot.
Definition: LauVetoes.cc:60
LauVetoes()
Constructor.
Definition: LauVetoes.cc:23
const std::vector< Double_t > & getVetoMaxMass() const
Retrieve the maximum mass-squared for each veto.
Definition: LauVetoes.hh:109
LauVetoes & operator=(const LauVetoes &other)
Copy assignment operator.
Definition: LauVetoes.cc:40
const std::vector< Int_t > & getVetoPairs() const
Retrieve the index of the vetoed mass-squared variable for each veto.
Definition: LauVetoes.hh:97
Int_t getNVetoes() const
Retrieve the number of vetoes.
Definition: LauVetoes.hh:91
Bool_t passVeto(Double_t &m12Sq, Double_t &m23Sq, Double_t &m13Sq) const
Check whether the specified Dalitz plot point passes the vetoes.
Definition: LauVetoes.cc:109
virtual ~LauVetoes()
Destructor.
Definition: LauVetoes.cc:28
const std::vector< Double_t > & getVetoMinMass() const
Retrieve the minimum mass-squared for each veto.
Definition: LauVetoes.hh:103
Class for calculating 3-body kinematic quantities.
Class for defining vetoes within the Dalitz plot.
Definition: LauVetoes.hh:33