1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtBcVMuNu.cc
13 // Description: Routine to implement semileptonic B->psi lnu decays
15 // Modification history:
17 // AVL July 6, 2012 Module created
19 //------------------------------------------------------------------------
21 #include "EvtGenBase/EvtPatches.hh"
23 #include "EvtGenBase/EvtParticle.hh"
24 #include "EvtGenBase/EvtGenKine.hh"
25 #include "EvtGenBase/EvtPDL.hh"
26 #include "EvtGenBase/EvtReport.hh"
27 #include "EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
31 #include "EvtGenModels/EvtBcVMuNu.hh"
32 #include "EvtGenModels/EvtBCVFF.hh"
36 EvtBcVMuNu::~EvtBcVMuNu() {
37 // cout<<"EvtBcVMuNu::destructor getProbMax(-1) = "<<getProbMax(-1)<<endl;
40 std::string EvtBcVMuNu::getName(){
45 EvtDecayBase* EvtBcVMuNu::clone(){
46 // cout<<" === EvtBcVMuNu::clone() ============"<<endl;
47 return new EvtBcVMuNu;
51 void EvtBcVMuNu::decay( EvtParticle *p ){
52 // cout<<" === EvtBcVMuNu::decay() ============"<<endl;
54 p->initializePhaseSpace(getNDaug(),getDaugs());
55 calcamp->CalcAmp(p,_amp2,ffmodel);
56 // cout<<"EvtBcVMuNu::decay() getProbMax(-1) = "<<getProbMax(-1)<<endl;
60 void EvtBcVMuNu::init(){
61 // cout<<" === EvtBcVMuNu::init() ============"<<endl;
67 //We expect the parent to be a scalar
68 //and the daughters to be X lepton neutrino
70 checkSpinParent(EvtSpinType::SCALAR);
72 checkSpinDaughter(0,EvtSpinType::VECTOR);
73 checkSpinDaughter(1,EvtSpinType::DIRAC);
74 checkSpinDaughter(2,EvtSpinType::NEUTRINO);
76 idVector = getDaug(0).getId();
77 whichfit = int(getArg(0)+0.1);
78 cout<<"EvtBcVMuNu: whichfit ="<<whichfit<<" idVector="<<idVector<<endl;
79 ffmodel = new EvtBCVFF(idVector,whichfit);
81 calcamp = new EvtSemiLeptonicVectorAmp;
85 void EvtBcVMuNu::initProbMax() {
86 // cout<<" === EvtBcVMuNu::initProbMax() ============"<<endl;
87 if(whichfit==0) setProbMax(1700.);
88 else if(idVector == EvtPDL::getId("J/psi").getId() && whichfit == 1) setProbMax(40000.);
89 else if(idVector == EvtPDL::getId("J/psi").getId() && whichfit == 2) setProbMax(15000.);
90 else if(idVector == EvtPDL::getId("psi(2S)").getId() && whichfit == 1) setProbMax(700.);
91 else if(idVector == EvtPDL::getId("psi(2S)").getId() && whichfit == 2) setProbMax(300.);
93 cout<<"EvtBcVMuNu: Not realized yet"<<endl;