evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
EvtBcVHad.hh
Go to the documentation of this file.
1 
2 /***********************************************************************
3 * Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4 * *
5 * This file is part of EvtGen. *
6 * *
7 * EvtGen is free software: you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation, either version 3 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * EvtGen is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19 ***********************************************************************/
20 
21 #ifndef EvtBcVHad_HH
22 #define EvtBcVHad_HH
23 
26 
28 #include "EvtGenModels/EvtWHad.hh"
29 
30 #include <memory>
31 #include <string>
32 
33 class EvtParticle;
34 
35 // Description: Module to implement Bc -> psi + (n pi) + (m K) decays
36 
37 class EvtBcVHad : public EvtDecayAmp {
38  public:
39  std::string getName() override;
40  EvtDecayBase* clone() override;
41  void initProbMax() override;
42  void init() override;
43  void decay( EvtParticle* p ) override;
44 
45  protected:
46  // Hadronic current function
47  EvtVector4C hardCurr( EvtParticle* root_particle ) const;
48 
49  private:
50  // whichfit --- code of the Bc -> VW formfactor set:
51  // 1 - SR
52  // 2 - PM
53  int whichfit;
54 
55  // idVector --- final vector particle code
56  int idVector;
57 
58  // out_code: code of the hadronic final state
59  // 1 - pi+
60  // 2 - pi+ pi0
61  // 3 - pi+ pi+ pi-
62  // 4 - 4pi
63  // 5 - pi+ pi+ pi- pi- pi+
64  // 6 - K+ K- pi+
65  // 7 - K+ pi+ pi-
66  // 8 - K_S0 K+
67  int out_code;
68 
69  std::unique_ptr<EvtBCVFF2> ffmodel;
70  std::unique_ptr<EvtWHad> wcurr;
71 };
72 
73 #endif
void init() override
Definition: EvtBcVHad.cpp:48
int idVector
Definition: EvtBcVHad.hh:56
void initProbMax() override
Definition: EvtBcVHad.cpp:116
std::unique_ptr< EvtWHad > wcurr
Definition: EvtBcVHad.hh:70
int out_code
Definition: EvtBcVHad.hh:67
int whichfit
Definition: EvtBcVHad.hh:53
std::unique_ptr< EvtBCVFF2 > ffmodel
Definition: EvtBcVHad.hh:69
EvtDecayBase * clone() override
Definition: EvtBcVHad.cpp:41
void decay(EvtParticle *p) override
Definition: EvtBcVHad.cpp:256
std::string getName() override
Definition: EvtBcVHad.cpp:36
EvtVector4C hardCurr(EvtParticle *root_particle) const
Definition: EvtBcVHad.cpp:193