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

A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types (Elastic, Quasi Elastic, Deep Inelastic, Resonant Single Pion Production, Coherent Pion Production). More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Framework/Interaction/ProcessInfo.h"

Inheritance diagram for genie::ProcessInfo:

Public Member Functions

 ProcessInfo ()
 
 ProcessInfo (ScatteringType_t sc_type, InteractionType_t int_type)
 
 ProcessInfo (const ProcessInfo &proc)
 
 ~ProcessInfo ()
 
void Set (ScatteringType_t sc_type, InteractionType_t int_type)
 
bool IsQuasiElastic (void) const
 
bool IsDarkMatterElastic (void) const
 
bool IsDeepInelastic (void) const
 
bool IsDarkMatterDeepInelastic (void) const
 
bool IsResonant (void) const
 
bool IsCoherent (void) const
 
bool IsCoherentElas (void) const
 
bool IsSingleKaon (void) const
 
bool IsElectronScattering (void) const
 
bool IsNuElectronElastic (void) const
 
bool IsInverseMuDecay (void) const
 
bool IsIMDAnnihilation (void) const
 
bool IsInverseBetaDecay (void) const
 
bool IsGlashowResonance (void) const
 
bool IsAMNuGamma (void) const
 
bool IsMEC (void) const
 
bool IsDiffractive (void) const
 
bool IsEM (void) const
 
bool IsWeak (void) const
 
bool IsWeakCC (void) const
 
bool IsWeakNC (void) const
 
bool IsWeakMix (void) const
 
bool IsDarkMatter (void) const
 
ScatteringType_t ScatteringTypeId (void) const
 
InteractionType_t InteractionTypeId (void) const
 
string ScatteringTypeAsString (void) const
 
string InteractionTypeAsString (void) const
 
void Reset (void)
 
void Copy (const ProcessInfo &proc)
 
bool Compare (const ProcessInfo &proc) const
 
string AsString (void) const
 
void Print (ostream &stream) const
 
bool operator== (const ProcessInfo &proc) const
 
ProcessInfooperator= (const ProcessInfo &proc)
 

Private Attributes

ScatteringType_t fScatteringType
 scattering type (QEL, RES, DIS, ...) More...
 
InteractionType_t fInteractionType
 interaction type (Weak CC/NC, E/M, ...) More...
 

Friends

ostream & operator<< (ostream &stream, const ProcessInfo &proc)
 

Detailed Description

A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types (Elastic, Quasi Elastic, Deep Inelastic, Resonant Single Pion Production, Coherent Pion Production).

Author
Costas Andreopoulos <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

Changes required to implement the GENIE Boosted Dark Matter module were installed by Josh Berger (Univ. of Wisconsin)

May 04, 2004

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

Definition at line 44 of file ProcessInfo.h.

Constructor & Destructor Documentation

ProcessInfo::ProcessInfo ( )

Definition at line 35 of file ProcessInfo.cxx.

References Reset().

35  :
36 TObject()
37 {
38  this->Reset();
39 }
ProcessInfo::ProcessInfo ( ScatteringType_t  sc_type,
InteractionType_t  int_type 
)

Definition at line 41 of file ProcessInfo.cxx.

42  :
43 TObject(),
44 fScatteringType(sc_type),
45 fInteractionType(int_type)
46 {
47 
48 }
ScatteringType_t fScatteringType
scattering type (QEL, RES, DIS, ...)
Definition: ProcessInfo.h:105
InteractionType_t fInteractionType
interaction type (Weak CC/NC, E/M, ...)
Definition: ProcessInfo.h:106
ProcessInfo::ProcessInfo ( const ProcessInfo proc)

Definition at line 50 of file ProcessInfo.cxx.

References Copy().

50  :
51 TObject()
52 {
53  this->Copy(proc);
54 }
void Copy(const ProcessInfo &proc)
ProcessInfo::~ProcessInfo ( )

Definition at line 56 of file ProcessInfo.cxx.

57 {
58 
59 }

Member Function Documentation

string ProcessInfo::AsString ( void  ) const

Definition at line 194 of file ProcessInfo.cxx.

References InteractionTypeAsString(), ScatteringTypeAsString(), and runNovaSAM::stream.

195 {
196  ostringstream stream;
197 
198  stream << "<"
199  << this->ScatteringTypeAsString()
200  << " - "
201  << this->InteractionTypeAsString()
202  << ">";
203 
204  return stream.str();
205 }
string ScatteringTypeAsString(void) const
string InteractionTypeAsString(void) const
bool ProcessInfo::Compare ( const ProcessInfo proc) const

Definition at line 225 of file ProcessInfo.cxx.

References fInteractionType, and fScatteringType.

Referenced by operator==().

226 {
227  return (
230  );
231 }
ScatteringType_t fScatteringType
scattering type (QEL, RES, DIS, ...)
Definition: ProcessInfo.h:105
InteractionType_t fInteractionType
interaction type (Weak CC/NC, E/M, ...)
Definition: ProcessInfo.h:106
void ProcessInfo::Copy ( const ProcessInfo proc)

Definition at line 233 of file ProcessInfo.cxx.

References fInteractionType, and fScatteringType.

Referenced by operator=(), ProcessInfo(), and genie::Interaction::SetProcInfo().

234 {
237 }
ScatteringType_t fScatteringType
scattering type (QEL, RES, DIS, ...)
Definition: ProcessInfo.h:105
InteractionType_t fInteractionType
interaction type (Weak CC/NC, E/M, ...)
Definition: ProcessInfo.h:106
string ProcessInfo::InteractionTypeAsString ( void  ) const

Definition at line 213 of file ProcessInfo.cxx.

References genie::InteractionType::AsString(), and fInteractionType.

Referenced by genie::Interaction::AsString(), AsString(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor(), and Print().

214 {
216  return interaction_type;
217 }
InteractionType_t fInteractionType
interaction type (Weak CC/NC, E/M, ...)
Definition: ProcessInfo.h:106
interaction_type
Definition: Constants.h:110
static string AsString(InteractionType_t type)
InteractionType_t ProcessInfo::InteractionTypeId ( void  ) const
bool ProcessInfo::IsAMNuGamma ( void  ) const
bool ProcessInfo::IsCoherent ( void  ) const
bool ProcessInfo::IsCoherentElas ( void  ) const
bool ProcessInfo::IsDarkMatter ( void  ) const
bool ProcessInfo::IsDarkMatterDeepInelastic ( void  ) const
bool ProcessInfo::IsDarkMatterElastic ( void  ) const
bool ProcessInfo::IsDeepInelastic ( void  ) const
bool ProcessInfo::IsDiffractive ( void  ) const
bool ProcessInfo::IsElectronScattering ( void  ) const
bool ProcessInfo::IsEM ( void  ) const
bool ProcessInfo::IsGlashowResonance ( void  ) const

Definition at line 134 of file ProcessInfo.cxx.

References fScatteringType, and genie::kScGlashowResonance.

Referenced by genie::InitialStateAppender::AddStruckParticle(), supernova::SnovaGen::MakeMCTruth(), and genie::KPhaseSpace::Threshold().

135 {
137 }
ScatteringType_t fScatteringType
scattering type (QEL, RES, DIS, ...)
Definition: ProcessInfo.h:105
bool ProcessInfo::IsIMDAnnihilation ( void  ) const
bool ProcessInfo::IsInverseBetaDecay ( void  ) const
bool ProcessInfo::IsInverseMuDecay ( void  ) const
bool ProcessInfo::IsMEC ( void  ) const
bool ProcessInfo::IsNuElectronElastic ( void  ) const
bool ProcessInfo::IsQuasiElastic ( void  ) const
bool ProcessInfo::IsResonant ( void  ) const
bool ProcessInfo::IsSingleKaon ( void  ) const
bool ProcessInfo::IsWeak ( void  ) const
bool ProcessInfo::IsWeakCC ( void  ) const

Definition at line 164 of file ProcessInfo.cxx.

References fInteractionType, and genie::kIntWeakCC.

Referenced by AcceptEvent(), genie::HadronizationModelBase::ApplyRijk(), genie::PythiaHadronization::AssertValidity(), genie::QPMDISStrucFuncBase::Calculate(), genie::COHHadronicSystemGenerator::CalculateHadronicSystem_AlvarezRuso(), genie::COHKinematicsGenerator::CheckKinematics(), novarwgt::ConvertGenieEvent(), ConvertToGHad(), ConvertToGST(), genie::RESInteractionListGenerator::CreateInteractionList(), genie::utils::gsl::d5XSecAR::DoEval(), genie::utils::gsl::d5Xsec_dEldOmegaldOmegapi::DoEval(), genie::utils::gsl::d4Xsec_dEldThetaldOmegapi::DoEval(), genie::utils::gsl::d3Xsec_dOmegaldThetapi::DoEval(), genie::BergerSehgalFMCOHPiPXSec2015::ExactKinematicTerm(), genie::BergerSehgalCOHPiPXSec2015::ExactKinematicTerm(), genie::SppChannel::FromInteraction(), genie::Interaction::FSPrimLeptonPdg(), GenerateEvent(), genie::DISInteractionListGenerator::GetHitQuarks(), genie::PythiaHadronization::Hadronize(), genie::EmpiricalMECPXSec2015::Integral(), IsWeak(), main(), genie::utils::ghep::NeutReactionCode(), genie::utils::ghep::NuanceReactionCode(), genie::utils::nuclear::NuclQELXSecSuppression(), genie::BergerSehgalFMCOHPiPXSec2015::PionCOMAbsMomentum(), genie::BergerSehgalCOHPiPXSec2015::PionCOMAbsMomentum(), genie::COHKinematicsGenerator::pionMass(), genie::KPhaseSpace::Q2Lim(), genie::Interaction::RecoilNucleonPdg(), SaveGraphsToRootFile(), genie::COHKinematicsGenerator::SetKinematics(), genie::KPhaseSpace::Threshold(), genie::KPhaseSpace::TLim(), genie::GLRESPXSec::ValidProcess(), genie::AlamSimoAtharVacasSKPXSec2014::ValidProcess(), genie::LwlynSmithQELCCPXSec::ValidProcess(), genie::SmithMonizQELCCPXSec::ValidProcess(), genie::NievesQELCCPXSec::ValidProcess(), genie::EmpiricalMECPXSec2015::XSec(), genie::ReinDFRPXSec::XSec(), genie::QPMDISPXSec::XSec(), genie::AlvarezRusoCOHPiPXSec::XSec(), genie::BergerSehgalFMCOHPiPXSec2015::XSec(), genie::BergerSehgalCOHPiPXSec2015::XSec(), genie::NuElectronPXSec::XSec(), genie::ReinSehgalCOHPiPXSec::XSec(), genie::ReinSehgalRESPXSec::XSec(), genie::BSKLNBaseRESPXSec2014::XSec(), and genie::KPhaseSpace::YLim().

165 {
166  return (fInteractionType == kIntWeakCC);
167 }
InteractionType_t fInteractionType
interaction type (Weak CC/NC, E/M, ...)
Definition: ProcessInfo.h:106
bool ProcessInfo::IsWeakMix ( void  ) const

Definition at line 179 of file ProcessInfo.cxx.

References fInteractionType, and genie::kIntWeakMix.

Referenced by genie::Interaction::FSPrimLeptonPdg(), IsWeak(), supernova::SnovaGen::MakeMCTruth(), and SaveGraphsToRootFile().

180 {
181  return (fInteractionType == kIntWeakMix);
182 }
InteractionType_t fInteractionType
interaction type (Weak CC/NC, E/M, ...)
Definition: ProcessInfo.h:106
bool ProcessInfo::IsWeakNC ( void  ) const
ProcessInfo & ProcessInfo::operator= ( const ProcessInfo proc)

Definition at line 251 of file ProcessInfo.cxx.

References Copy().

252 {
253  this->Copy(proc);
254  return (*this);
255 }
void Copy(const ProcessInfo &proc)
bool ProcessInfo::operator== ( const ProcessInfo proc) const

Definition at line 246 of file ProcessInfo.cxx.

References Compare().

247 {
248  return this->Compare(proc);
249 }
bool Compare(const ProcessInfo &proc) const
void ProcessInfo::Print ( ostream &  stream) const

Definition at line 239 of file ProcessInfo.cxx.

References allTimeWatchdog::endl, InteractionTypeAsString(), and ScatteringTypeAsString().

Referenced by ClassImp().

240 {
241  stream << "[-] [Process-Info] " << endl
242  << " |--> Interaction : " << this->InteractionTypeAsString() << endl
243  << " |--> Scattering : " << this->ScatteringTypeAsString() << endl;
244 }
string ScatteringTypeAsString(void) const
string InteractionTypeAsString(void) const
void ProcessInfo::Reset ( void  )

Definition at line 61 of file ProcessInfo.cxx.

References fInteractionType, fScatteringType, genie::kIntNull, and genie::kScNull.

Referenced by ProcessInfo().

62 {
65 }
ScatteringType_t fScatteringType
scattering type (QEL, RES, DIS, ...)
Definition: ProcessInfo.h:105
InteractionType_t fInteractionType
interaction type (Weak CC/NC, E/M, ...)
Definition: ProcessInfo.h:106
string ProcessInfo::ScatteringTypeAsString ( void  ) const

Definition at line 207 of file ProcessInfo.cxx.

References genie::ScatteringType::AsString(), and fScatteringType.

Referenced by genie::Interaction::AsString(), AsString(), and Print().

208 {
209  string scattering_type = ScatteringType::AsString(fScatteringType);
210  return scattering_type;
211 }
ScatteringType_t fScatteringType
scattering type (QEL, RES, DIS, ...)
Definition: ProcessInfo.h:105
static string AsString(ScatteringType_t type)
ScatteringType_t ProcessInfo::ScatteringTypeId ( void  ) const

Definition at line 189 of file ProcessInfo.cxx.

References fScatteringType.

Referenced by novarwgt::ConvertGenieEvent().

190 {
191  return fScatteringType;
192 }
ScatteringType_t fScatteringType
scattering type (QEL, RES, DIS, ...)
Definition: ProcessInfo.h:105
void ProcessInfo::Set ( ScatteringType_t  sc_type,
InteractionType_t  int_type 
)

Definition at line 219 of file ProcessInfo.cxx.

References fInteractionType, and fScatteringType.

Referenced by cafrwgt::CAFReweight::RetrieveGHEP().

220 {
221  fScatteringType = sc_type;
222  fInteractionType = int_type;
223 }
ScatteringType_t fScatteringType
scattering type (QEL, RES, DIS, ...)
Definition: ProcessInfo.h:105
InteractionType_t fInteractionType
interaction type (Weak CC/NC, E/M, ...)
Definition: ProcessInfo.h:106

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const ProcessInfo proc 
)
friend

Member Data Documentation

InteractionType_t genie::ProcessInfo::fInteractionType
private

interaction type (Weak CC/NC, E/M, ...)

Definition at line 106 of file ProcessInfo.h.

Referenced by Compare(), Copy(), InteractionTypeAsString(), InteractionTypeId(), IsDarkMatter(), IsEM(), IsWeakCC(), IsWeakMix(), IsWeakNC(), Reset(), and Set().

ScatteringType_t genie::ProcessInfo::fScatteringType
private

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