GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
genie::XclsTag Class Reference

Contains minimal information for tagging exclusive processes. More...

#include <XclsTag.h>

Inheritance diagram for genie::XclsTag:
Inheritance graph
[legend]
Collaboration diagram for genie::XclsTag:
Collaboration graph
[legend]

Public Member Functions

 XclsTag ()
 
 XclsTag (const XclsTag &xcls)
 
 ~XclsTag ()
 
bool IsCharmEvent (void) const
 
bool IsInclusiveCharm (void) const
 
int CharmHadronPdg (void) const
 
bool IsStrangeEvent (void) const
 
bool IsInclusiveStrange (void) const
 
int StrangeHadronPdg (void) const
 
int NProtons (void) const
 
int NNeutrons (void) const
 
int NPi0 (void) const
 
int NPiPlus (void) const
 
int NPiMinus (void) const
 
int NNucleons (void) const
 
int NPions (void) const
 
int NRhos (void) const
 
int NSingleGammas (void) const
 
int NRho0 (void) const
 
int NRhoPlus (void) const
 
int NRhoMinus (void) const
 
bool KnownResonance (void) const
 
Resonance_t Resonance (void) const
 
int DecayMode (void) const
 
bool IsFinalQuarkEvent (void) const
 
int FinalQuarkPdg (void) const
 
bool IsFinalLeptonEvent (void) const
 
int FinalLeptonPdg (void) const
 
void SetCharm (int charm_pdgc=0)
 
void SetStrange (int strange_pdgc=0)
 
void SetNPions (int npi_plus, int npi_0, int npi_minus)
 
void SetNNucleons (int np, int nn)
 
void SetNProtons (int np)
 
void SetNNeutrons (int nn)
 
void SetNSingleGammas (int ng)
 
void SetNRhos (int nrho_plus, int nrho_0, int nrho_minus)
 
void UnsetCharm (void)
 
void UnsetStrange (void)
 
void ResetNPions (void)
 
void ResetNNucleons (void)
 
void ResetNSingleGammas (void)
 
void ResetNRhos (void)
 
void SetResonance (Resonance_t res)
 
void SetDecayMode (int decay_mode)
 
void SetFinalQuark (int finalquark_pdgc=0)
 
void SetFinalLepton (int finallepton_pdgc=0)
 
void Reset (void)
 reset object More...
 
void Copy (const XclsTag &xcls)
 copy input XclsTag object More...
 
string AsString (void) const
 pack into a string code More...
 
void Print (ostream &stream) const
 print More...
 
XclsTagoperator= (const XclsTag &xcls)
 copy More...
 

Private Attributes

bool fIsStrangeEvent
 true if we have strange production More...
 
bool fIsCharmEvent
 true if we have charm production More...
 
int fStrangeHadronPdg
 strange hadron pdg-code More...
 
int fCharmedHadronPdg
 charmed hadron pdg-code More...
 
int fNProtons
 

of p's in the hadronic system after this Xcls reaction (before FSI)

More...
 
int fNNeutrons
 

of n's in the hadronic system after this Xcls reaction (before FSI)

More...
 
int fNPi0
 

of pi^0's in the hadronic system after this Xcls reaction (before FSI)

More...
 
int fNPiPlus
 

of pi^+'s in the hadronic system after this Xcls reaction (before FSI)

More...
 
int fNPiMinus
 

of pi^-'s in the hadronic system after this Xcls reaction (before FSI)

More...
 
int fNSingleGammas
 

of single gammas in the hadronic system after this Xcls reaction (before FSI)

More...
 
int fNRho0
 

of rho^0's in the hadronic system after this Xcls reaction (before FSI)

More...
 
int fNRhoPlus
 

of rho^+'s in the hadronic system after this Xcls reaction (before FSI)

More...
 
int fNRhoMinus
 

of rho^-'s in the hadronic system after this Xcls reaction (before FSI)

More...
 
Resonance_t fResonance
 baryon resonance excited by probe More...
 
int fDecayMode
 
bool fIsFinalQuarkEvent
 true if we have define final quark More...
 
int fFinalQuarkPdg
 final quark pdg-code More...
 
bool fIsFinalLeptonEvent
 true if we have define final lepton More...
 
int fFinalLeptonPdg
 final lepton pdg-code More...
 

Friends

ostream & operator<< (ostream &stream, const XclsTag &xcls)
 print More...
 

Detailed Description

Contains minimal information for tagging exclusive processes.

Author
Costas Andreopoulos <c.andreopoulos cern.ch> University of Liverpool

Additions for single- and single- processes were installed by Marco Roda mroda.nosp@m.@liv.nosp@m.erpoo.nosp@m.l.ac.nosp@m..uk, University of Liverpool

Created:
December 08, 2004
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 39 of file XclsTag.h.

Constructor & Destructor Documentation

XclsTag::XclsTag ( )

Definition at line 36 of file XclsTag.cxx.

References Reset().

36  :
37 TObject()
38 {
39  this->Reset();
40 }
void Reset(void)
reset object
Definition: XclsTag.cxx:150
XclsTag::XclsTag ( const XclsTag xcls)

Definition at line 42 of file XclsTag.cxx.

References Copy(), and Reset().

42  :
43 TObject()
44 {
45  this->Reset();
46  this->Copy(xcls);
47 }
void Copy(const XclsTag &xcls)
copy input XclsTag object
Definition: XclsTag.cxx:173
void Reset(void)
reset object
Definition: XclsTag.cxx:150
XclsTag::~XclsTag ( )

Definition at line 49 of file XclsTag.cxx.

50 {
51 
52 }

Member Function Documentation

string XclsTag::AsString ( void  ) const

pack into a string code

Definition at line 212 of file XclsTag.cxx.

References fCharmedHadronPdg, fDecayMode, fFinalLeptonPdg, fFinalQuarkPdg, fIsCharmEvent, fIsFinalLeptonEvent, fIsFinalQuarkEvent, fIsStrangeEvent, fNNeutrons, fNPi0, fNPiMinus, fNPiPlus, fNProtons, fNRho0, fNRhoMinus, fNRhoPlus, fNSingleGammas, fResonance, fStrangeHadronPdg, and KnownResonance().

Referenced by genie::Interaction::AsString().

213 {
214 // codifies XclsTag state into a compact string
215 
216  ostringstream tag;
217 
218  bool need_separator = false;
219 
220  if(fIsCharmEvent) {
221  tag << "charm:";
223  else tag << "incl";
224  need_separator = true;
225  }
226 
227  if(fIsStrangeEvent) {
228  tag << "strange:";
230  else tag << "incl";
231  need_separator = true;
232  }
233 
234  bool multset =
235  fNProtons>0 || fNNeutrons>0 ||
236  fNPiPlus>0 || fNPiMinus>0 || fNPi0>0 ||
237  fNSingleGammas>0 ||
238  fNRho0>0 || fNRhoPlus>0 || fNRhoMinus>0 ;
239  if(multset) {
240  if(need_separator) tag << ";";
241  tag << "hmult:"
242  << "(p=" << fNProtons << ",n=" << fNNeutrons
243  << ",pi+=" << fNPiPlus << ",pi-=" << fNPiMinus << ",pi0=" << fNPi0
244  << ",gamma=" << fNSingleGammas
245  << ",rho+=" << fNRhoPlus << ",rho-=" << fNRhoMinus << ",rho0=" << fNRho0
246  << ")";
247  }
248 
249  if(this->KnownResonance()) {
250  if(need_separator) tag << ";";
251  tag << "res:" << fResonance;
252  }
253 
254  if(fDecayMode != -1) {
255  tag << "dec:" << fDecayMode;
256  }
257 
258  if(fIsFinalQuarkEvent) {
259  tag << "finalquark:" << fFinalQuarkPdg;
260  }
261 
262  if(fIsFinalLeptonEvent) {
263  tag << "finallepton:" << fFinalLeptonPdg;
264  }
265 
266  return tag.str();
267 }
int fNPiPlus
of pi^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:115
int fNSingleGammas
of single gammas in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:117
int fCharmedHadronPdg
charmed hadron pdg-code
Definition: XclsTag.h:111
int fFinalQuarkPdg
final quark pdg-code
Definition: XclsTag.h:124
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
bool fIsCharmEvent
true if we have charm production
Definition: XclsTag.h:109
bool KnownResonance(void) const
Definition: XclsTag.h:68
bool fIsStrangeEvent
true if we have strange production
Definition: XclsTag.h:108
int fStrangeHadronPdg
strange hadron pdg-code
Definition: XclsTag.h:110
bool fIsFinalLeptonEvent
true if we have define final lepton
Definition: XclsTag.h:125
int fNRhoPlus
of rho^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:119
int fDecayMode
Definition: XclsTag.h:122
int fNPi0
of pi^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:114
int fNRho0
of rho^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:118
bool fIsFinalQuarkEvent
true if we have define final quark
Definition: XclsTag.h:123
int fNProtons
of p&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:112
int fNRhoMinus
of rho^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:120
int fFinalLeptonPdg
final lepton pdg-code
Definition: XclsTag.h:126
Resonance_t fResonance
baryon resonance excited by probe
Definition: XclsTag.h:121
int fNPiMinus
of pi^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:116
int genie::XclsTag::CharmHadronPdg ( void  ) const
inline
void XclsTag::Copy ( const XclsTag xcls)

copy input XclsTag object

Definition at line 173 of file XclsTag.cxx.

References fCharmedHadronPdg, fDecayMode, fFinalLeptonPdg, fFinalQuarkPdg, fIsCharmEvent, fIsFinalLeptonEvent, fIsFinalQuarkEvent, fIsStrangeEvent, fNNeutrons, fNPi0, fNPiMinus, fNPiPlus, fNProtons, fNRho0, fNRhoMinus, fNRhoPlus, fNSingleGammas, fResonance, and fStrangeHadronPdg.

Referenced by operator=(), genie::Interaction::SetExclTag(), and XclsTag().

174 {
179  fNProtons = xcls.fNProtons;
180  fNNeutrons = xcls.fNNeutrons;
181  fNPi0 = xcls.fNPi0;
182  fNPiPlus = xcls.fNPiPlus;
183  fNPiMinus = xcls.fNPiMinus;
185  fNRho0 = xcls.fNRho0;
186  fNRhoPlus = xcls.fNRhoPlus;
187  fNRhoMinus = xcls.fNRhoMinus;
188  fResonance = xcls.fResonance;
189  fDecayMode = xcls.fDecayMode;
194 }
int fNPiPlus
of pi^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:115
int fNSingleGammas
of single gammas in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:117
int fCharmedHadronPdg
charmed hadron pdg-code
Definition: XclsTag.h:111
int fFinalQuarkPdg
final quark pdg-code
Definition: XclsTag.h:124
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
bool fIsCharmEvent
true if we have charm production
Definition: XclsTag.h:109
bool fIsStrangeEvent
true if we have strange production
Definition: XclsTag.h:108
int fStrangeHadronPdg
strange hadron pdg-code
Definition: XclsTag.h:110
bool fIsFinalLeptonEvent
true if we have define final lepton
Definition: XclsTag.h:125
int fNRhoPlus
of rho^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:119
int fDecayMode
Definition: XclsTag.h:122
int fNPi0
of pi^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:114
int fNRho0
of rho^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:118
bool fIsFinalQuarkEvent
true if we have define final quark
Definition: XclsTag.h:123
int fNProtons
of p&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:112
int fNRhoMinus
of rho^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:120
int fFinalLeptonPdg
final lepton pdg-code
Definition: XclsTag.h:126
Resonance_t fResonance
baryon resonance excited by probe
Definition: XclsTag.h:121
int fNPiMinus
of pi^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:116
int genie::XclsTag::DecayMode ( void  ) const
inline
int genie::XclsTag::FinalLeptonPdg ( void  ) const
inline
int genie::XclsTag::FinalQuarkPdg ( void  ) const
inline
bool genie::XclsTag::IsCharmEvent ( void  ) const
inline
bool genie::XclsTag::IsFinalLeptonEvent ( void  ) const
inline

Definition at line 73 of file XclsTag.h.

References fIsFinalLeptonEvent.

Referenced by SaveGraphsToRootFile().

73 { return fIsFinalLeptonEvent; }
bool fIsFinalLeptonEvent
true if we have define final lepton
Definition: XclsTag.h:125
bool genie::XclsTag::IsFinalQuarkEvent ( void  ) const
inline

Definition at line 71 of file XclsTag.h.

References fIsFinalQuarkEvent.

Referenced by SaveGraphsToRootFile().

71 { return fIsFinalQuarkEvent; }
bool fIsFinalQuarkEvent
true if we have define final quark
Definition: XclsTag.h:123
bool XclsTag::IsInclusiveCharm ( void  ) const
bool XclsTag::IsInclusiveStrange ( void  ) const

Definition at line 71 of file XclsTag.cxx.

References IsStrangeEvent(), and StrangeHadronPdg().

Referenced by SaveGraphsToRootFile(), and genie::PaisQELLambdaPXSec::ValidProcess().

72 {
73  return ( this->IsStrangeEvent() && (this->StrangeHadronPdg() == 0) );
74 }
bool IsStrangeEvent(void) const
Definition: XclsTag.h:53
int StrangeHadronPdg(void) const
Definition: XclsTag.h:55
bool genie::XclsTag::IsStrangeEvent ( void  ) const
inline
bool genie::XclsTag::KnownResonance ( void  ) const
inline
int genie::XclsTag::NNeutrons ( void  ) const
inline

Definition at line 57 of file XclsTag.h.

References fNNeutrons.

Referenced by genie::SppChannel::FromInteraction(), and genie::AlamSimoAtharVacasSKPXSec2014::XSec().

57 { return fNNeutrons; }
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
int genie::XclsTag::NNucleons ( void  ) const
inline

Definition at line 61 of file XclsTag.h.

References fNNeutrons, and fNProtons.

Referenced by genie::SppChannel::FromInteraction().

61 { return fNNeutrons + fNProtons; }
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
int fNProtons
of p&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:112
int genie::XclsTag::NPi0 ( void  ) const
inline

Definition at line 58 of file XclsTag.h.

References fNPi0.

Referenced by genie::SppChannel::FromInteraction(), genie::COHHadronicSystemGenerator::getPionPDGCodeFromXclTag(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), SaveGraphsToRootFile(), and genie::KPhaseSpace::Threshold().

58 { return fNPi0; }
int fNPi0
of pi^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:114
int genie::XclsTag::NPiMinus ( void  ) const
inline
int genie::XclsTag::NPions ( void  ) const
inline

Definition at line 62 of file XclsTag.h.

References fNPi0, fNPiMinus, and fNPiPlus.

Referenced by genie::SppChannel::FromInteraction(), genie::KPhaseSpace::Q2Lim(), SaveGraphsToRootFile(), genie::KPhaseSpace::Threshold(), genie::KPhaseSpace::TLim(), and genie::KPhaseSpace::YLim().

62 { return fNPi0 + fNPiPlus + fNPiMinus; }
int fNPiPlus
of pi^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:115
int fNPi0
of pi^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:114
int fNPiMinus
of pi^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:116
int genie::XclsTag::NPiPlus ( void  ) const
inline
int genie::XclsTag::NProtons ( void  ) const
inline
int genie::XclsTag::NRho0 ( void  ) const
inline

Definition at line 65 of file XclsTag.h.

References fNRho0.

65 { return fNRho0; }
int fNRho0
of rho^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:118
int genie::XclsTag::NRhoMinus ( void  ) const
inline

Definition at line 67 of file XclsTag.h.

References fNRhoMinus.

67 { return fNRhoMinus; }
int fNRhoMinus
of rho^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:120
int genie::XclsTag::NRhoPlus ( void  ) const
inline

Definition at line 66 of file XclsTag.h.

References fNRhoPlus.

66 { return fNRhoPlus; }
int fNRhoPlus
of rho^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:119
int genie::XclsTag::NRhos ( void  ) const
inline

Definition at line 63 of file XclsTag.h.

References fNRho0, fNRhoMinus, and fNRhoPlus.

Referenced by SaveGraphsToRootFile().

63 { return fNRho0 + fNRhoPlus + fNRhoMinus; }
int fNRhoPlus
of rho^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:119
int fNRho0
of rho^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:118
int fNRhoMinus
of rho^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:120
int genie::XclsTag::NSingleGammas ( void  ) const
inline

Definition at line 64 of file XclsTag.h.

References fNSingleGammas.

Referenced by SaveGraphsToRootFile().

64 { return fNSingleGammas; }
int fNSingleGammas
of single gammas in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:117
XclsTag & XclsTag::operator= ( const XclsTag xcls)

copy

Definition at line 354 of file XclsTag.cxx.

References Copy().

355 {
356  this->Copy(xcls);
357  return (*this);
358 }
void Copy(const XclsTag &xcls)
copy input XclsTag object
Definition: XclsTag.cxx:173
void XclsTag::Print ( ostream &  stream) const

print

Definition at line 269 of file XclsTag.cxx.

References genie::utils::res::AsString(), genie::utils::print::BoolAsString(), fCharmedHadronPdg, fFinalLeptonPdg, fFinalQuarkPdg, genie::PDGLibrary::Find(), fIsCharmEvent, fIsFinalLeptonEvent, fIsFinalQuarkEvent, fIsStrangeEvent, fNNeutrons, fNPi0, fNPiMinus, fNPiPlus, fNProtons, fNRho0, fNRhoMinus, fNRhoPlus, fNSingleGammas, fResonance, fStrangeHadronPdg, genie::PDGLibrary::Instance(), and KnownResonance().

Referenced by genie::operator<<().

270 {
271  stream << "[-] [Exclusive Process Info] " << endl;
272 
273  stream << " |--> charm prod. : "
275  if(fIsCharmEvent) {
276  if(!fCharmedHadronPdg) stream << " [inclusive]";
277  else {
278  stream << " - Charm hadron PDG-code = " << fCharmedHadronPdg;
279 
280  TParticlePDG * chadr = PDGLibrary::Instance()->Find( fCharmedHadronPdg );
281  if(chadr)
282  stream << " (" << chadr->GetName() << ")";
283  }
284  }
285 
286  stream << " |--> strange prod. : "
288  if(fIsStrangeEvent) {
289  if(!fStrangeHadronPdg) stream << " [inclusive]";
290  else {
291  stream << " - Strange hadron PDG-code = " << fStrangeHadronPdg;
292 
293  TParticlePDG * chadr = PDGLibrary::Instance()->Find( fStrangeHadronPdg );
294  if(chadr)
295  stream << " (" << chadr->GetName() << ")";
296  }
297  }
298 
299  stream << endl;
300 
301  stream << " |--> f/s nucleons :"
302  << " N(p) = " << fNProtons
303  << " N(n) = " << fNNeutrons
304  << endl;
305 
306  stream << " |--> f/s pions :"
307  << " N(pi^0) = " << fNPi0
308  << " N(pi^+) = " << fNPiPlus
309  << " N(pi^-) = " << fNPiMinus
310  << endl;
311 
312  stream << " |--> f/s Other :"
313  << " N(gamma) = " << fNSingleGammas
314  << " N(Rho^0) = " << fNRho0
315  << " N(Rho^+) = " << fNRhoPlus
316  << " N(Rho^-) = " << fNRhoMinus
317  << endl;
318 
319  stream << " |--> resonance : ";
320  if(this->KnownResonance()) {
321  stream << res::AsString(fResonance);
322  } else {
323  stream << "[not set]";
324  }
325 
326  stream << endl;
327 
328  stream << " |--> final quark prod. : "
330  if(fIsFinalQuarkEvent) {
331  stream << " - Final Quark PDG-code = " << fFinalQuarkPdg;
332  TParticlePDG * chadr = PDGLibrary::Instance()->Find( fFinalQuarkPdg );
333  if(chadr) stream << " (" << chadr->GetName() << ")";
334  }
335 
336  stream << endl;
337 
338  stream << " |--> final lepton prod. : "
340  if(fIsFinalLeptonEvent) {
341  stream << " - Final Lepton PDG-code = " << fFinalLeptonPdg;
342  TParticlePDG * chadr = PDGLibrary::Instance()->Find( fFinalLeptonPdg );
343  if(chadr) stream << " (" << chadr->GetName() << ")";
344  }
345 
346  stream << endl;
347 }
int fNPiPlus
of pi^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:115
int fNSingleGammas
of single gammas in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:117
int fCharmedHadronPdg
charmed hadron pdg-code
Definition: XclsTag.h:111
int fFinalQuarkPdg
final quark pdg-code
Definition: XclsTag.h:124
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
bool fIsCharmEvent
true if we have charm production
Definition: XclsTag.h:109
bool KnownResonance(void) const
Definition: XclsTag.h:68
bool fIsStrangeEvent
true if we have strange production
Definition: XclsTag.h:108
int fStrangeHadronPdg
strange hadron pdg-code
Definition: XclsTag.h:110
bool fIsFinalLeptonEvent
true if we have define final lepton
Definition: XclsTag.h:125
int fNRhoPlus
of rho^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:119
int fNPi0
of pi^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:114
string BoolAsString(bool b)
Definition: PrintUtils.cxx:91
int fNRho0
of rho^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:118
bool fIsFinalQuarkEvent
true if we have define final quark
Definition: XclsTag.h:123
int fNProtons
of p&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:112
int fNRhoMinus
of rho^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:120
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:68
int fFinalLeptonPdg
final lepton pdg-code
Definition: XclsTag.h:126
const char * AsString(Resonance_t res)
resonance id -&gt; string
TParticlePDG * Find(int pdgc, bool must_exist=true)
Definition: PDGLibrary.cxx:86
Resonance_t fResonance
baryon resonance excited by probe
Definition: XclsTag.h:121
int fNPiMinus
of pi^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:116
void XclsTag::Reset ( void  )

reset object

Definition at line 150 of file XclsTag.cxx.

References fCharmedHadronPdg, fDecayMode, fFinalLeptonPdg, fFinalQuarkPdg, fIsCharmEvent, fIsFinalLeptonEvent, fIsFinalQuarkEvent, fIsStrangeEvent, fNNeutrons, fNPi0, fNPiMinus, fNPiPlus, fNProtons, fNRho0, fNRhoMinus, fNRhoPlus, fNSingleGammas, fResonance, fStrangeHadronPdg, and genie::kNoResonance.

Referenced by XclsTag().

151 {
152  fIsStrangeEvent = false ;
153  fIsCharmEvent = false ;
154  fStrangeHadronPdg = 0 ;
155  fCharmedHadronPdg = 0 ;
156  fNProtons = 0 ;
157  fNNeutrons = 0 ;
158  fNPi0 = 0 ;
159  fNPiPlus = 0 ;
160  fNPiMinus = 0 ;
161  fNSingleGammas = 0 ;
162  fNRho0 = 0 ;
163  fNRhoPlus = 0 ;
164  fNRhoMinus = 0 ;
166  fDecayMode = -1 ;
167  fIsFinalQuarkEvent = false;
168  fFinalQuarkPdg = 0;
169  fIsFinalLeptonEvent = false;
170  fFinalLeptonPdg = 0;
171 }
int fNPiPlus
of pi^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:115
int fNSingleGammas
of single gammas in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:117
int fCharmedHadronPdg
charmed hadron pdg-code
Definition: XclsTag.h:111
int fFinalQuarkPdg
final quark pdg-code
Definition: XclsTag.h:124
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
bool fIsCharmEvent
true if we have charm production
Definition: XclsTag.h:109
bool fIsStrangeEvent
true if we have strange production
Definition: XclsTag.h:108
int fStrangeHadronPdg
strange hadron pdg-code
Definition: XclsTag.h:110
bool fIsFinalLeptonEvent
true if we have define final lepton
Definition: XclsTag.h:125
int fNRhoPlus
of rho^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:119
int fDecayMode
Definition: XclsTag.h:122
int fNPi0
of pi^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:114
int fNRho0
of rho^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:118
bool fIsFinalQuarkEvent
true if we have define final quark
Definition: XclsTag.h:123
int fNProtons
of p&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:112
int fNRhoMinus
of rho^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:120
int fFinalLeptonPdg
final lepton pdg-code
Definition: XclsTag.h:126
Resonance_t fResonance
baryon resonance excited by probe
Definition: XclsTag.h:121
int fNPiMinus
of pi^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:116
void XclsTag::ResetNNucleons ( void  )

Definition at line 115 of file XclsTag.cxx.

References fNNeutrons, and fNProtons.

116 {
117  fNProtons = 0;
118  fNNeutrons = 0;
119 }
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
int fNProtons
of p&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:112
void XclsTag::ResetNPions ( void  )

Definition at line 108 of file XclsTag.cxx.

References fNPi0, fNPiMinus, and fNPiPlus.

109 {
110  fNPi0 = 0;
111  fNPiPlus = 0;
112  fNPiMinus = 0;
113 }
int fNPiPlus
of pi^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:115
int fNPi0
of pi^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:114
int fNPiMinus
of pi^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:116
void XclsTag::ResetNRhos ( void  )

Definition at line 121 of file XclsTag.cxx.

References fNRho0, fNRhoMinus, and fNRhoPlus.

122 {
123  fNRho0 = 0;
124  fNRhoPlus = 0;
125  fNRhoMinus = 0;
126 }
int fNRhoPlus
of rho^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:119
int fNRho0
of rho^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:118
int fNRhoMinus
of rho^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:120
void genie::XclsTag::ResetNSingleGammas ( void  )
inline

Definition at line 89 of file XclsTag.h.

References fNSingleGammas.

89 { fNSingleGammas = 0 ;}
int fNSingleGammas
of single gammas in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:117
Resonance_t genie::XclsTag::Resonance ( void  ) const
inline
void XclsTag::SetCharm ( int  charm_pdgc = 0)

Definition at line 59 of file XclsTag.cxx.

References fCharmedHadronPdg, and fIsCharmEvent.

Referenced by genie::DISInteractionListGenerator::CreateInteractionList(), genie::DMDISInteractionListGenerator::CreateInteractionList(), genie::QELInteractionListGenerator::CreateInteractionListCharmCC(), genie::QPMDISPXSec::XSec(), and genie::QPMDMDISPXSec::XSec().

60 {
61  fIsCharmEvent = true;
62  fCharmedHadronPdg = charm_pdgc; // leave as 0 (default) for inclusive charm
63 }
int fCharmedHadronPdg
charmed hadron pdg-code
Definition: XclsTag.h:111
bool fIsCharmEvent
true if we have charm production
Definition: XclsTag.h:109
void XclsTag::SetDecayMode ( int  decay_mode)

Definition at line 133 of file XclsTag.cxx.

References fDecayMode.

Referenced by genie::Interaction::HNL(), genie::Interaction::NDecay(), and genie::Interaction::NOsc().

134 {
135  fDecayMode = decay_mode;
136 }
int fDecayMode
Definition: XclsTag.h:122
void XclsTag::SetFinalLepton ( int  finallepton_pdgc = 0)

Definition at line 144 of file XclsTag.cxx.

References fFinalLeptonPdg, and fIsFinalLeptonEvent.

Referenced by genie::HELeptonInteractionListGenerator::GLRESInteraction(), genie::HELeptonInteractionListGenerator::HENuElectronInteraction(), and genie::HELeptonInteractionListGenerator::PhotonRESInteraction().

145 {
146  fIsFinalLeptonEvent = true;
147  fFinalLeptonPdg = finallepton_pdgc; // leave as 0 (default) for inclusive charm
148 }
bool fIsFinalLeptonEvent
true if we have define final lepton
Definition: XclsTag.h:125
int fFinalLeptonPdg
final lepton pdg-code
Definition: XclsTag.h:126
void XclsTag::SetFinalQuark ( int  finalquark_pdgc = 0)

Definition at line 138 of file XclsTag.cxx.

References fFinalQuarkPdg, and fIsFinalQuarkEvent.

Referenced by genie::HEDISInteractionListGenerator::CreateHEDISlist(), genie::Interaction::DISCC(), and genie::Interaction::DISNC().

139 {
140  fIsFinalQuarkEvent = true;
141  fFinalQuarkPdg = finalquark_pdgc; // leave as 0 (default) for inclusive charm
142 }
int fFinalQuarkPdg
final quark pdg-code
Definition: XclsTag.h:124
bool fIsFinalQuarkEvent
true if we have define final quark
Definition: XclsTag.h:123
void genie::XclsTag::SetNNeutrons ( int  nn)
inline

Definition at line 82 of file XclsTag.h.

References fNNeutrons.

Referenced by genie::DFRInteractionListGenerator::CreateInteractionList(), and genie::SKInteractionListGenerator::CreateInteractionList().

82 { fNNeutrons = nn; }
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
void XclsTag::SetNNucleons ( int  np,
int  nn 
)

Definition at line 95 of file XclsTag.cxx.

References fNNeutrons, and fNProtons.

Referenced by genie::RSPPInteractionListGenerator::AddFinalStateInfo().

96 {
97  fNProtons = np;
98  fNNeutrons = nn;
99 }
int fNNeutrons
of n&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:113
int fNProtons
of p&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:112
void XclsTag::SetNPions ( int  npi_plus,
int  npi_0,
int  npi_minus 
)

Definition at line 88 of file XclsTag.cxx.

References fNPi0, fNPiMinus, and fNPiPlus.

Referenced by genie::RSPPInteractionListGenerator::AddFinalStateInfo(), genie::DFRInteractionListGenerator::CreateInteractionList(), genie::COHInteractionListGenerator::CreateInteractionList(), and genie::hnl::Decayer::GenerateDecayProducts().

89 {
90  fNPiPlus = npi_plus;
91  fNPi0 = npi_0;
92  fNPiMinus = npi_minus;
93 }
int fNPiPlus
of pi^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:115
int fNPi0
of pi^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:114
int fNPiMinus
of pi^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:116
void genie::XclsTag::SetNProtons ( int  np)
inline

Definition at line 81 of file XclsTag.h.

References fNProtons.

Referenced by genie::DFRInteractionListGenerator::CreateInteractionList(), and genie::SKInteractionListGenerator::CreateInteractionList().

81 { fNProtons = np; }
int fNProtons
of p&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:112
void XclsTag::SetNRhos ( int  nrho_plus,
int  nrho_0,
int  nrho_minus 
)

Definition at line 101 of file XclsTag.cxx.

References fNRho0, fNRhoMinus, and fNRhoPlus.

102 {
103  fNRhoPlus = nrho_plus;
104  fNRho0 = nrho_0;
105  fNRhoMinus = nrho_minus;
106 }
int fNRhoPlus
of rho^+&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:119
int fNRho0
of rho^0&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:118
int fNRhoMinus
of rho^-&#39;s in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:120
void genie::XclsTag::SetNSingleGammas ( int  ng)
inline

Definition at line 83 of file XclsTag.h.

References fNSingleGammas.

Referenced by genie::COHInteractionListGenerator::CreateInteractionList().

83 { fNSingleGammas = ng ; }
int fNSingleGammas
of single gammas in the hadronic system after this Xcls reaction (before FSI)
Definition: XclsTag.h:117
void XclsTag::SetResonance ( Resonance_t  res)
void XclsTag::SetStrange ( int  strange_pdgc = 0)

Definition at line 76 of file XclsTag.cxx.

References fIsStrangeEvent, and fStrangeHadronPdg.

Referenced by genie::SKInteractionListGenerator::CreateInteractionList(), and genie::QELInteractionListGenerator::CreateInteractionListStrangeCC().

77 {
78  fIsStrangeEvent = true;
79  fStrangeHadronPdg = strange_pdgc; // leave as 0 (default) for inclusive strange
80 }
bool fIsStrangeEvent
true if we have strange production
Definition: XclsTag.h:108
int fStrangeHadronPdg
strange hadron pdg-code
Definition: XclsTag.h:110
int genie::XclsTag::StrangeHadronPdg ( void  ) const
inline
void XclsTag::UnsetCharm ( void  )

Definition at line 65 of file XclsTag.cxx.

References fCharmedHadronPdg, and fIsCharmEvent.

Referenced by genie::QPMDISPXSec::XSec(), and genie::QPMDMDISPXSec::XSec().

66 {
67  fIsCharmEvent = false;
69 }
int fCharmedHadronPdg
charmed hadron pdg-code
Definition: XclsTag.h:111
bool fIsCharmEvent
true if we have charm production
Definition: XclsTag.h:109
void XclsTag::UnsetStrange ( void  )

Definition at line 82 of file XclsTag.cxx.

References fIsStrangeEvent, and fStrangeHadronPdg.

83 {
84  fIsStrangeEvent = false;
86 }
bool fIsStrangeEvent
true if we have strange production
Definition: XclsTag.h:108
int fStrangeHadronPdg
strange hadron pdg-code
Definition: XclsTag.h:110

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const XclsTag xcls 
)
friend

print

Definition at line 29 of file XclsTag.cxx.

30  {
31  xcls.Print(stream);
32  return stream;
33  }
void Print(ostream &stream) const
print
Definition: XclsTag.cxx:269

Member Data Documentation

int genie::XclsTag::fCharmedHadronPdg
private

charmed hadron pdg-code

Definition at line 111 of file XclsTag.h.

Referenced by AsString(), CharmHadronPdg(), Copy(), Print(), Reset(), SetCharm(), and UnsetCharm().

int genie::XclsTag::fDecayMode
private

Definition at line 122 of file XclsTag.h.

Referenced by AsString(), Copy(), DecayMode(), Reset(), and SetDecayMode().

int genie::XclsTag::fFinalLeptonPdg
private

final lepton pdg-code

Definition at line 126 of file XclsTag.h.

Referenced by AsString(), Copy(), FinalLeptonPdg(), Print(), Reset(), and SetFinalLepton().

int genie::XclsTag::fFinalQuarkPdg
private

final quark pdg-code

Definition at line 124 of file XclsTag.h.

Referenced by AsString(), Copy(), FinalQuarkPdg(), Print(), Reset(), and SetFinalQuark().

bool genie::XclsTag::fIsCharmEvent
private

true if we have charm production

Definition at line 109 of file XclsTag.h.

Referenced by AsString(), Copy(), IsCharmEvent(), Print(), Reset(), SetCharm(), and UnsetCharm().

bool genie::XclsTag::fIsFinalLeptonEvent
private

true if we have define final lepton

Definition at line 125 of file XclsTag.h.

Referenced by AsString(), Copy(), IsFinalLeptonEvent(), Print(), Reset(), and SetFinalLepton().

bool genie::XclsTag::fIsFinalQuarkEvent
private

true if we have define final quark

Definition at line 123 of file XclsTag.h.

Referenced by AsString(), Copy(), IsFinalQuarkEvent(), Print(), Reset(), and SetFinalQuark().

bool genie::XclsTag::fIsStrangeEvent
private

true if we have strange production

Definition at line 108 of file XclsTag.h.

Referenced by AsString(), Copy(), IsStrangeEvent(), Print(), Reset(), SetStrange(), and UnsetStrange().

int genie::XclsTag::fNNeutrons
private

of n's in the hadronic system after this Xcls reaction (before FSI)

Definition at line 113 of file XclsTag.h.

Referenced by AsString(), Copy(), NNeutrons(), NNucleons(), Print(), Reset(), ResetNNucleons(), SetNNeutrons(), and SetNNucleons().

int genie::XclsTag::fNPi0
private

of pi^0's in the hadronic system after this Xcls reaction (before FSI)

Definition at line 114 of file XclsTag.h.

Referenced by AsString(), Copy(), NPi0(), NPions(), Print(), Reset(), ResetNPions(), and SetNPions().

int genie::XclsTag::fNPiMinus
private

of pi^-'s in the hadronic system after this Xcls reaction (before FSI)

Definition at line 116 of file XclsTag.h.

Referenced by AsString(), Copy(), NPiMinus(), NPions(), Print(), Reset(), ResetNPions(), and SetNPions().

int genie::XclsTag::fNPiPlus
private

of pi^+'s in the hadronic system after this Xcls reaction (before FSI)

Definition at line 115 of file XclsTag.h.

Referenced by AsString(), Copy(), NPions(), NPiPlus(), Print(), Reset(), ResetNPions(), and SetNPions().

int genie::XclsTag::fNProtons
private

of p's in the hadronic system after this Xcls reaction (before FSI)

Definition at line 112 of file XclsTag.h.

Referenced by AsString(), Copy(), NNucleons(), NProtons(), Print(), Reset(), ResetNNucleons(), SetNNucleons(), and SetNProtons().

int genie::XclsTag::fNRho0
private

of rho^0's in the hadronic system after this Xcls reaction (before FSI)

Definition at line 118 of file XclsTag.h.

Referenced by AsString(), Copy(), NRho0(), NRhos(), Print(), Reset(), ResetNRhos(), and SetNRhos().

int genie::XclsTag::fNRhoMinus
private

of rho^-'s in the hadronic system after this Xcls reaction (before FSI)

Definition at line 120 of file XclsTag.h.

Referenced by AsString(), Copy(), NRhoMinus(), NRhos(), Print(), Reset(), ResetNRhos(), and SetNRhos().

int genie::XclsTag::fNRhoPlus
private

of rho^+'s in the hadronic system after this Xcls reaction (before FSI)

Definition at line 119 of file XclsTag.h.

Referenced by AsString(), Copy(), NRhoPlus(), NRhos(), Print(), Reset(), ResetNRhos(), and SetNRhos().

int genie::XclsTag::fNSingleGammas
private

of single gammas in the hadronic system after this Xcls reaction (before FSI)

Definition at line 117 of file XclsTag.h.

Referenced by AsString(), Copy(), NSingleGammas(), Print(), Reset(), ResetNSingleGammas(), and SetNSingleGammas().

Resonance_t genie::XclsTag::fResonance
private

baryon resonance excited by probe

Definition at line 121 of file XclsTag.h.

Referenced by AsString(), Copy(), KnownResonance(), Print(), Reset(), Resonance(), and SetResonance().

int genie::XclsTag::fStrangeHadronPdg
private

strange hadron pdg-code

Definition at line 110 of file XclsTag.h.

Referenced by AsString(), Copy(), Print(), Reset(), SetStrange(), StrangeHadronPdg(), and UnsetStrange().


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