Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:20:06

0001 
0002 /***********************************************************************
0003 * Copyright 1998-2020 CERN for the benefit of the EvtGen authors       *
0004 *                                                                      *
0005 * This file is part of EvtGen.                                         *
0006 *                                                                      *
0007 * EvtGen is free software: you can redistribute it and/or modify       *
0008 * it under the terms of the GNU General Public License as published by *
0009 * the Free Software Foundation, either version 3 of the License, or    *
0010 * (at your option) any later version.                                  *
0011 *                                                                      *
0012 * EvtGen is distributed in the hope that it will be useful,            *
0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
0015 * GNU General Public License for more details.                         *
0016 *                                                                      *
0017 * You should have received a copy of the GNU General Public License    *
0018 * along with EvtGen.  If not, see <https://www.gnu.org/licenses/>.     *
0019 ***********************************************************************/
0020 
0021 #ifndef EVTDALITZDECAYINFO_HH
0022 #define EVTDALITZDECAYINFO_HH
0023 
0024 #include "EvtGenBase/EvtComplex.hh"
0025 #include "EvtGenBase/EvtDalitzReso.hh"
0026 #include "EvtGenBase/EvtId.hh"
0027 
0028 #include <vector>
0029 
0030 // Description: Model to describe a generic dalitz decay
0031 
0032 class EvtDalitzDecayInfo final {
0033   public:
0034     EvtDalitzDecayInfo( EvtId d1, EvtId d2, EvtId d3 ) :
0035         _d1( d1 ), _d2( d2 ), _d3( d3 ), _probMax( 0. )
0036     {
0037     }
0038 
0039     void addResonance( EvtComplex amp, EvtDalitzReso res )
0040     {
0041         _resonances.push_back( std::pair<EvtComplex, EvtDalitzReso>( amp, res ) );
0042     }
0043     void addResonance( std::pair<EvtComplex, EvtDalitzReso> res )
0044     {
0045         _resonances.push_back( res );
0046     }
0047     void setProbMax( double probMax ) { _probMax = probMax; }
0048 
0049     const std::vector<std::pair<EvtComplex, EvtDalitzReso>>& getResonances() const
0050     {
0051         return _resonances;
0052     }
0053     double getProbMax() const { return _probMax; }
0054 
0055     inline const EvtId& daughter1() const { return _d1; }
0056     inline const EvtId& daughter2() const { return _d2; }
0057     inline const EvtId& daughter3() const { return _d3; }
0058 
0059   private:
0060     EvtId _d1, _d2, _d3;
0061     std::vector<std::pair<EvtComplex, EvtDalitzReso>> _resonances;
0062     double _probMax;
0063 };
0064 
0065 #endif