Public Member Functions | Private Member Functions | Private Attributes | List of all members
genie::GLRESPXSec Class Reference

Nuebar cross section at the Glashow resonance (nuebar + e- -> W-). Is a concrete implementation of the XSecAlgorithmI interface. More...

#include <GLRESPXSec.h>

Inheritance diagram for genie::GLRESPXSec:
genie::XSecAlgorithmI genie::Algorithm

Public Member Functions

 GLRESPXSec ()
 
 GLRESPXSec (string config)
 
virtual ~GLRESPXSec ()
 
double XSec (const Interaction *i, KinePhaseSpace_t k) const
 Compute the cross section for the input interaction. More...
 
double Integral (const Interaction *i) const
 
bool ValidProcess (const Interaction *i) const
 Can this cross section algorithm handle the input process? More...
 
void Configure (const Registry &config)
 
void Configure (string config)
 
- Public Member Functions inherited from genie::XSecAlgorithmI
virtual ~XSecAlgorithmI ()
 
virtual bool ValidKinematics (const Interaction *i) const
 Is the input kinematical point a physically allowed one? More...
 
- Public Member Functions inherited from genie::Algorithm
virtual ~Algorithm ()
 
virtual void FindConfig (void)
 
virtual const RegistryGetConfig (void) const
 
RegistryGetOwnedConfig (void)
 
virtual const AlgIdId (void) const
 Get algorithm ID. More...
 
virtual AlgStatus_t GetStatus (void) const
 Get algorithm status. More...
 
virtual bool AllowReconfig (void) const
 
virtual AlgCmp_t Compare (const Algorithm *alg) const
 Compare with input algorithm. More...
 
virtual void SetId (const AlgId &id)
 Set algorithm ID. More...
 
virtual void SetId (string name, string config)
 
const AlgorithmSubAlg (const RgKey &registry_key) const
 
void AdoptConfig (void)
 
void AdoptSubstructure (void)
 
virtual void Print (ostream &stream) const
 Print algorithm info. More...
 

Private Member Functions

void LoadConfig (void)
 

Private Attributes

const XSecIntegratorIfXSecIntegrator
 diff. xsec integrator More...
 
double fWmin
 Minimum value of W. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from genie::Algorithm
static string BuildParamVectKey (const std::string &comm_name, unsigned int i)
 
static string BuildParamVectSizeKey (const std::string &comm_name)
 
- Protected Member Functions inherited from genie::XSecAlgorithmI
 XSecAlgorithmI ()
 
 XSecAlgorithmI (string name)
 
 XSecAlgorithmI (string name, string config)
 
- Protected Member Functions inherited from genie::Algorithm
 Algorithm ()
 
 Algorithm (string name)
 
 Algorithm (string name, string config)
 
void Initialize (void)
 
void DeleteConfig (void)
 
void DeleteSubstructure (void)
 
RegistryExtractLocalConfig (const Registry &in) const
 
RegistryExtractLowerConfig (const Registry &in, const string &alg_key) const
 Split an incoming configuration Registry into a block valid for the sub-algo identified by alg_key. More...
 
template<class T >
bool GetParam (const RgKey &name, T &p, bool is_top_call=true) const
 
template<class T >
bool GetParamDef (const RgKey &name, T &p, const T &def) const
 
template<class T >
int GetParamVect (const std::string &comm_name, std::vector< T > &v, bool is_top_call=true) const
 Handle to load vectors of parameters. More...
 
int GetParamVectKeys (const std::string &comm_name, std::vector< RgKey > &k, bool is_top_call=true) const
 
int AddTopRegistry (Registry *rp, bool owns=true)
 add registry with top priority, also update ownership More...
 
int AddLowRegistry (Registry *rp, bool owns=true)
 add registry with lowest priority, also update ownership More...
 
int MergeTopRegistry (const Registry &r)
 
int AddTopRegisties (const vector< Registry * > &rs, bool owns=false)
 Add registries with top priority, also udated Ownerships. More...
 
- Protected Attributes inherited from genie::Algorithm
bool fAllowReconfig
 
bool fOwnsSubstruc
 true if it owns its substructure (sub-algs,...) More...
 
AlgId fID
 algorithm name and configuration set More...
 
vector< Registry * > fConfVect
 
vector< boolfOwnerships
 ownership for every registry in fConfVect More...
 
AlgStatus_t fStatus
 algorithm execution status More...
 
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool) More...
 

Detailed Description

Nuebar cross section at the Glashow resonance (nuebar + e- -> W-). Is a concrete implementation of the XSecAlgorithmI interface.

T.K.Gaisser, F.Halzen and T.Stanev, Physics Reports 258:173 (1995)

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

May 04, 2005

Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 30 of file GLRESPXSec.h.

Constructor & Destructor Documentation

GLRESPXSec::GLRESPXSec ( )

Definition at line 27 of file GLRESPXSec.cxx.

27  :
28 XSecAlgorithmI("genie::GLRESPXSec")
29 {
30 
31 }
GLRESPXSec::GLRESPXSec ( string  config)

Definition at line 33 of file GLRESPXSec.cxx.

33  :
34 XSecAlgorithmI("genie::GLRESPXSec", config)
35 {
36 
37 }
static Config * config
Definition: config.cpp:1054
GLRESPXSec::~GLRESPXSec ( )
virtual

Definition at line 39 of file GLRESPXSec.cxx.

40 {
41 
42 }

Member Function Documentation

void GLRESPXSec::Configure ( const Registry config)
virtual

Configure the algorithm with an external registry The registry is merged with the top level registry if it is owned, Otherwise a copy of it is added with the highest priority

Reimplemented from genie::Algorithm.

Definition at line 158 of file GLRESPXSec.cxx.

159 {
160 
161  Algorithm::Configure(config);
162  this->LoadConfig();
163 }
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
void LoadConfig(void)
Definition: GLRESPXSec.cxx:171
void GLRESPXSec::Configure ( string  config)
virtual

Configure the algorithm from the AlgoConfigPool based on param_set string given in input An algorithm contains a vector of registries coming from different xml configuration files, which are loaded according a very precise prioriy This methods will load a number registries in order of priority: 1) "Tunable" parameter set from CommonParametes. This is loaded with the highest prioriry and it is designed to be used for tuning procedure Usage not expected from the user. 2) For every string defined in "CommonParame" the corresponding parameter set will be loaded from CommonParameter.xml 3) parameter set specified by the config string and defined in the xml file of the algorithm 4) if config is not "Default" also the Default parameter set from the same xml file will be loaded Effectively this avoids the repetion of a parameter when it is not changed in the requested configuration

Reimplemented from genie::Algorithm.

Definition at line 165 of file GLRESPXSec.cxx.

166 {
168  this->LoadConfig();
169 }
static Config * config
Definition: config.cpp:1054
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
void LoadConfig(void)
Definition: GLRESPXSec.cxx:171
double GLRESPXSec::Integral ( const Interaction i) const
virtual

Integrate the model over the kinematic phase space available to the input interaction (kinematical cuts can be included)

Implements genie::XSecAlgorithmI.

Definition at line 133 of file GLRESPXSec.cxx.

134 {
135  double xsec = fXSecIntegrator->Integrate(this,interaction);
136 
137  return xsec;
138 }
const XSecIntegratorI * fXSecIntegrator
diff. xsec integrator
Definition: GLRESPXSec.h:50
virtual double Integrate(const XSecAlgorithmI *model, const Interaction *interaction) const =0
void GLRESPXSec::LoadConfig ( void  )
private

Definition at line 171 of file GLRESPXSec.cxx.

172 {
173 
174  //-- load the differential cross section integrator
175  fXSecIntegrator = dynamic_cast<const XSecIntegratorI *> (this->SubAlg("XSec-Integrator"));
176  assert(fXSecIntegrator);
177 
178  GetParam( "Xsec-Wmin", fWmin ) ;
179 
180 
181 }
Cross Section Integrator Interface.
double fWmin
Minimum value of W.
Definition: GLRESPXSec.h:52
const XSecIntegratorI * fXSecIntegrator
diff. xsec integrator
Definition: GLRESPXSec.h:50
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Algorithm * SubAlg(const RgKey &registry_key) const
Definition: Algorithm.cxx:345
bool GLRESPXSec::ValidProcess ( const Interaction i) const
virtual

Can this cross section algorithm handle the input process?

Implements genie::XSecAlgorithmI.

Definition at line 140 of file GLRESPXSec.cxx.

141 {
142  if(interaction->TestBit(kISkipProcessChk)) return true;
143 
144  const InitialState & init_state = interaction->InitState();
145  const ProcessInfo & proc_info = interaction->ProcInfo();
146 
147  bool nuok = pdg::IsAntiNuE(init_state.ProbePdg());
148  bool nucok = !(init_state.Tgt().HitNucIsSet());
149  bool ccprcok = proc_info.IsWeakCC();
150 
151  if ( !nuok ) return false;
152  if ( !nucok ) return false;
153  if ( !ccprcok ) return false;
154 
155  return true;
156 }
bool IsWeakCC(void) const
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
Definition: ProcessInfo.h:46
int ProbePdg(void) const
Definition: InitialState.h:64
bool HitNucIsSet(void) const
Definition: Target.cxx:283
const Target & Tgt(void) const
Definition: InitialState.h:66
bool IsAntiNuE(int pdgc)
Definition: PDGUtils.cxx:170
const UInt_t kISkipProcessChk
if set, skip process validity checks
Definition: Interaction.h:47
Initial State information.
Definition: InitialState.h:48
double GLRESPXSec::XSec ( const Interaction i,
KinePhaseSpace_t  k 
) const
virtual

Compute the cross section for the input interaction.

Implements genie::XSecAlgorithmI.

Definition at line 44 of file GLRESPXSec.cxx.

46 {
47 
48  if(! this -> ValidProcess (interaction) ) return 0.;
49  if(! this -> ValidKinematics (interaction) ) return 0.;
50 
51  const InitialState & init_state = interaction -> InitState();
52 
53  double E = init_state.ProbeE(kRfLab);
54  double s = 2 * kElectronMass * E + kElectronMass2;
55 
56  // The W limit is because hadronization might have issues at low W (as in PYTHIA6).
57  // To be consistent the cross section must be computed in the W range where the events are generated.
58  if ( TMath::Sqrt(s)<fWmin ) return 0.;
59 
60  const Kinematics & kinematics = interaction -> Kine();
61  const XclsTag & xclstag = interaction -> ExclTag();
62  int final_lepton = xclstag.FinalLeptonPdg();
63 
64  double y = kinematics.y();
65  double s0 = 2 * kElectronMass * E;
66 
67  double Gw = PDGLibrary::Instance()->Find(kPdgWM)->Width(); //PDGLibrary::Instance()->Find(kPdgWM)->Width() //genhen=2.124
68  double gf = kGF2/kPi; //kGF2/kPi //genhen=1.16637e-05*1.16637e-05/3.141592653589793
69  double m_w = kMw; //kMw //genhen=80.425
70  double m_z = kMz; //kMz //genhen=91.1876
71  double Sin2thw = 1 - kMw2 / kMz2; //1 - kMw2 / kMz2 //genhen=0.2312
72  double branch = 64.41/10.63; //branching ratio hadrons/muons //genhen=67.96/10.57
73 
74  double Gw2 = TMath::Power(Gw, 2);
75  double m_w2 = TMath::Power(m_w,2);
76  double m_z2 = TMath::Power(m_z,2);
77  double Sin4thw = TMath::Power(Sin2thw,2);
78 
79  double prop = TMath::Power(1-s/m_w2, 2) + Gw2/m_w2;
80 
81  double xsec = 0;
82  if ( pdg::IsMuon(final_lepton) ) {
83  double ml2 = kMuonMass2;
84  xsec = s0*TMath::Power(1-y, 2) + (3*kElectronMass2+ml2)*(1-y) + kElectronMass*(kElectronMass2+ml2)/E;
85  xsec *= gf/prop;
86  }
87  else if ( pdg::IsTau(final_lepton) ) {
88  double ml2 = kTauMass2;
89  xsec = s0*TMath::Power(1-y, 2) + (3*kElectronMass2+ml2)*(1-y) + kElectronMass*(kElectronMass2+ml2)/E;
90  xsec *= gf/prop;
91  }
92  else if ( pdg::IsPion(final_lepton) ) {
93  double ml2 = kMuonMass2;
94  xsec = ( s0*TMath::Power(1-y, 2) + (3*kElectronMass2+ml2)*(1-y) + kElectronMass*(kElectronMass2+ml2)/E ) * branch;
95  xsec *= gf/prop;
96  }
97  else if ( pdg::IsElectron(final_lepton) ) {
98  double u = 2 * kElectronMass2 - 2 * kElectronMass * E * y;
99  double t = 2 * kElectronMass2 - s - u;
100  double L = Sin2thw - 1./2.;
101 
102  double x1 = L*m_z2*(s-m_w2) + m_w2*(u-m_z2);
103  double y1 = L * m_z2 * Gw * m_w;
104  double x2 = (u - m_z2) * (s - m_w2);
105  double y2 = (u - m_z2) * Gw * m_w;
106  double y3 = ( x1*x2 + y1*y2 ) / ( TMath::Power(x2,2) + TMath::Power(y2,2) );
107  double x3 = ( x2*y1 - x1*y2 ) / ( TMath::Power(x2,2) + TMath::Power(y2,2) );
108 
109  xsec = gf * s0 * ( Sin4thw/TMath::Power(u/m_z2-1,2) + (TMath::Power(x3,2)+TMath::Power(y3,2))*TMath::Power(t-kElectronMass2,2)/TMath::Power(s0,2) );
110  }
111 
112 
113  LOG("GLRESPXSec", pINFO) << "dxsec/dy (E= " << E << ", y= " << y << ") = " << xsec;
114 
115  //----- The algorithm computes dxsec/dy
116  // Check whether variable tranformation is needed
117  if(kps!=kPSyfE) {
119  xsec *= J;
120  }
121 
122  //----- If requested return the free electron xsec even for nuclear target
123  if( interaction->TestBit(kIAssumeFreeElectron) ) return xsec;
124 
125  //----- Scale for the number of scattering centers at the target
126  int Ne = init_state.Tgt().Z(); // num of scattering centers
127  xsec *= Ne;
128 
129  return xsec;
130 
131 }
bool IsPion(int pdgc)
Definition: PDGUtils.cxx:323
int FinalLeptonPdg(void) const
Definition: XclsTag.h:74
static const double kMw2
Definition: Constants.h:93
double J(double q0, double q3, double Enu, double ml)
Definition: MECUtils.cxx:147
const int kPdgWM
Definition: PDGCodes.h:192
static const double kMz2
Definition: Constants.h:94
double fWmin
Minimum value of W.
Definition: GLRESPXSec.h:52
Generated/set kinematical variables for an event.
Definition: Kinematics.h:39
static const double kElectronMass
Definition: Constants.h:70
Contains minimal information for tagging exclusive processes.
Definition: XclsTag.h:39
double y(bool selected=false) const
Definition: Kinematics.cxx:112
virtual bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
static const double kMz
Definition: Constants.h:92
bool ValidProcess(const Interaction *i) const
Can this cross section algorithm handle the input process?
Definition: GLRESPXSec.cxx:140
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
static const double kElectronMass2
Definition: Constants.h:83
static const double kTauMass2
Definition: Constants.h:85
static const double kMuonMass2
Definition: Constants.h:84
bool IsTau(int pdgc)
Definition: PDGUtils.cxx:205
int Z(void) const
Definition: Target.h:68
#define pINFO
Definition: Messenger.h:62
bool IsMuon(int pdgc)
Definition: PDGUtils.cxx:195
static const double kMw
Definition: Constants.h:91
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:57
genFinder * gf
E
Definition: 018_def.c:13
double Jacobian(const Interaction *const i, KinePhaseSpace_t f, KinePhaseSpace_t t)
Definition: KineUtils.cxx:130
TParticlePDG * Find(int pdgc, bool must_exist=true)
Definition: PDGLibrary.cxx:75
const Target & Tgt(void) const
Definition: InitialState.h:66
static const double kGF2
Definition: Constants.h:59
double ProbeE(RefFrame_t rf) const
static const double kPi
Definition: Constants.h:37
static QCString * s
Definition: config.cpp:1042
bool IsElectron(int pdgc)
Definition: PDGUtils.cxx:185
Initial State information.
Definition: InitialState.h:48
const UInt_t kIAssumeFreeElectron
Definition: Interaction.h:50

Member Data Documentation

double genie::GLRESPXSec::fWmin
private

Minimum value of W.

Definition at line 52 of file GLRESPXSec.h.

const XSecIntegratorI* genie::GLRESPXSec::fXSecIntegrator
private

diff. xsec integrator

Definition at line 50 of file GLRESPXSec.h.


The documentation for this class was generated from the following files: