Page MenuHomeHEPForge

EvtBcVMuNu.cpp
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

EvtBcVMuNu.cpp

/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* *
* EvtGen is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* EvtGen is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
***********************************************************************/
#include "EvtGenModels/EvtBcVMuNu.hh"
#include "EvtGenBase/EvtGenKine.hh"
#include "EvtGenBase/EvtPDL.hh"
#include "EvtGenBase/EvtParticle.hh"
#include "EvtGenBase/EvtPatches.hh"
#include "EvtGenBase/EvtReport.hh"
#include "EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
#include "EvtGenModels/EvtBCVFF.hh"
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
std::string EvtBcVMuNu::getName()
{
return "BC_VMN";
}
EvtDecayBase* EvtBcVMuNu::clone()
{
return new EvtBcVMuNu;
}
void EvtBcVMuNu::decay( EvtParticle* p )
{
p->initializePhaseSpace( getNDaug(), getDaugs() );
calcamp->CalcAmp( p, _amp2, ffmodel.get() );
}
void EvtBcVMuNu::init()
{
checkNArg( 1 );
checkNDaug( 3 );
//We expect the parent to be a scalar
//and the daughters to be X lepton neutrino
checkSpinParent( EvtSpinType::SCALAR );
checkSpinDaughter( 0, EvtSpinType::VECTOR );
checkSpinDaughter( 1, EvtSpinType::DIRAC );
checkSpinDaughter( 2, EvtSpinType::NEUTRINO );
idVector = getDaug( 0 ).getId();
whichfit = int( getArg( 0 ) + 0.1 );
ffmodel = std::make_unique<EvtBCVFF>( idVector, whichfit );
calcamp = std::make_unique<EvtSemiLeptonicVectorAmp>();
}
void EvtBcVMuNu::initProbMax()
{
EvtId parId = getParentId();
EvtId mesonId = getDaug( 0 );
EvtId lepId = getDaug( 1 );
EvtId nuId = getDaug( 2 );
int nQ2Bins = 200;
double maxProb = calcamp->CalcMaxProb( parId, mesonId, lepId, nuId,
ffmodel.get(), nQ2Bins );
if ( verbose() ) {
EvtGenReport( EVTGEN_INFO, "EvtBcVMuNu" )
<< "Max prob = " << maxProb << endl;
}
setProbMax( maxProb );
}

File Metadata

Mime Type
text/x-c
Expires
Tue, Sep 30, 6:13 AM (10 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6549333
Default Alt Text
EvtBcVMuNu.cpp (2 KB)

Event Timeline