herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
Models
General
BSMModel.h
1
// -*- C++ -*-
2
#ifndef Herwig_BSMModel_H
3
#define Herwig_BSMModel_H
4
//
5
// This is the declaration of the BSMModel class.
6
//
7
8
#include "Herwig/Models/StandardModel/StandardModel.h"
9
#include "ThePEG/Utilities/CFileLineReader.h"
10
11
namespace
Herwig
{
12
13
using namespace
ThePEG
;
14
21
class
BSMModel
:
public
Herwig::StandardModel
{
22
23
public
:
24
28
BSMModel
();
29
30
public
:
31
38
void
persistentOutput
(
PersistentOStream
& os)
const
;
39
45
void
persistentInput
(
PersistentIStream
& is,
int
version);
47
54
static
void
Init
();
55
56
protected
:
57
61
const
string
&
decayFile
()
const
{
return
decayFile_
;}
62
66
void
decayFile
(
string
in) {
decayFile_
= in;}
67
71
void
decayRead
();
72
78
void
readDecay
(
CFileLineReader
& ifs,
string
decay)
const
;
79
86
void
createDecayMode
(
string
tag,
double
brat)
const
;
87
94
vector<pair<double,string> >
createWZDecayModes
(
string
tag,
double
brat,
95
tcPDPtr
boson,
96
Energy maxMass)
const
;
97
101
bool
readDecays
()
const
{
return
readDecays_
;}
102
106
void
readDecays
(
bool
in) {
readDecays_
=in;}
107
111
map<long,long> &
idMap
() {
return
idMap_
;}
112
116
PDPtr
getBSMParticleData
(
PID
id
)
const
{
117
map<long,long>::const_iterator it =
idMap_
.find(
id
);
118
if
(it==
idMap_
.end())
119
return
getParticleData
(
id
);
120
else
121
return
getParticleData
(it->second);
122
}
123
124
protected
:
125
133
virtual
void
doinit
();
135
139
virtual
bool
preInitialize
()
const
{
140
return
true
;
141
}
142
143
private
:
144
149
BSMModel
&
operator=
(
const
BSMModel
&) =
delete
;
150
151
private
:
152
156
string
decayFile_
;
157
161
bool
readDecays_
;
162
167
bool
topModesFromFile_
;
168
172
double
tolerance_
;
173
177
map<long,long>
idMap_
;
178
182
bool
allowedToResetSMWidths_
;
183
184
};
185
186
}
187
188
#endif
/* Herwig_BSMModel_H */
Herwig::BSMModel
Here is the documentation of the BSMModel class.
Definition:
BSMModel.h:21
Herwig::BSMModel::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Herwig::BSMModel::createDecayMode
void createDecayMode(string tag, double brat) const
Create a DecayMode object in the repository.
Herwig::BSMModel::createWZDecayModes
vector< pair< double, string > > createWZDecayModes(string tag, double brat, tcPDPtr boson, Energy maxMass) const
Create a DecayMode object in the repository.
Herwig::BSMModel::idMap_
map< long, long > idMap_
Map of ids from files to those used by Herwig.
Definition:
BSMModel.h:177
Herwig::BSMModel::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Herwig::BSMModel::readDecays
void readDecays(bool in)
set the reading of the decays
Definition:
BSMModel.h:106
Herwig::BSMModel::readDecays
bool readDecays() const
read the decays
Definition:
BSMModel.h:101
Herwig::BSMModel::BSMModel
BSMModel()
The default constructor.
Herwig::BSMModel::getBSMParticleData
PDPtr getBSMParticleData(PID id) const
Get ParticleData object with Id mapping.
Definition:
BSMModel.h:116
Herwig::BSMModel::idMap
map< long, long > & idMap()
Map of PDG ids from file to those used internally.
Definition:
BSMModel.h:111
Herwig::BSMModel::doinit
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
Herwig::BSMModel::decayFile
void decayFile(string in)
Set name of SLHA decay file.
Definition:
BSMModel.h:66
Herwig::BSMModel::tolerance_
double tolerance_
Tolerance for branching ratios.
Definition:
BSMModel.h:172
Herwig::BSMModel::preInitialize
virtual bool preInitialize() const
Overloaded function from Interfaced.
Definition:
BSMModel.h:139
Herwig::BSMModel::readDecay
void readDecay(CFileLineReader &ifs, string decay) const
Read decaymodes from LHA file.
Herwig::BSMModel::operator=
BSMModel & operator=(const BSMModel &)=delete
The assignment operator is private and must never be called.
Herwig::BSMModel::topModesFromFile_
bool topModesFromFile_
Whether or not to replace the top decay modes with those from the SLHA files.
Definition:
BSMModel.h:167
Herwig::BSMModel::decayRead
void decayRead()
Read the decays.
Herwig::BSMModel::decayFile
const string & decayFile() const
Get name of SLHA decay file.
Definition:
BSMModel.h:61
Herwig::BSMModel::readDecays_
bool readDecays_
Read the decays from the file.
Definition:
BSMModel.h:161
Herwig::BSMModel::allowedToResetSMWidths_
bool allowedToResetSMWidths_
Whether or not to allow the width of SM particles to be reset.
Definition:
BSMModel.h:182
Herwig::BSMModel::Init
static void Init()
The standard Init function used to initialize the interfaces.
Herwig::BSMModel::decayFile_
string decayFile_
Name of the decay file.
Definition:
BSMModel.h:156
Herwig::StandardModel
This is the Herwig StandardModel class which inherits from ThePEG Standard Model class and implements...
Definition:
StandardModel.h:39
ThePEG::CFileLineReader
ThePEG::Interfaced::getParticleData
PDPtr getParticleData(PID) const
ThePEG::PID
ThePEG::PersistentIStream
ThePEG::PersistentOStream
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::tcPDPtr
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
ThePEG::PDPtr
ThePEG::Ptr< ParticleData >::pointer PDPtr
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6