BaryonResList.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::BaryonResList
5 
6 \brief Encapsulates a list of baryon resonances.
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created May 03, 2004
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _BARYON_RES_LIST_H_
20 #define _BARYON_RES_LIST_H_
21 
22 #include <vector>
23 #include <iostream>
24 #include <string>
25 
27 
28 using std::vector;
29 using std::ostream;
30 using std::string;
31 
32 namespace genie {
33 
34 class BaryonResList;
35 ostream & operator << (ostream & stream, const BaryonResList & rl);
36 
38 {
39 public:
40 
41  BaryonResList();
43  virtual ~BaryonResList();
44 
45  void DecodeFromNameList (string list, string delimiter = ",");
46 
47  unsigned int NResonances (void) const;
48  string ResonanceName (unsigned int ires) const;
49  Resonance_t ResonanceId (unsigned int ires) const;
50  int ResonancePdgCode (unsigned int ires) const;
51  bool Find (Resonance_t res) const;
52 
53  void Clear (void);
54  void Copy (const BaryonResList & rl);
55  void Print (ostream & stream) const;
56 
57  friend ostream & operator << (ostream & stream, const BaryonResList & rl);
58 
59 private:
60 
61  vector<Resonance_t> * fResVec;
62 };
63 
64 } // genie namepace
65 
66 #endif // _BARYON_RES_LIST_H_
vector< Resonance_t > * fResVec
Definition: BaryonResList.h:61
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
void Copy(const BaryonResList &rl)
void DecodeFromNameList(string list, string delimiter=",")
string ResonanceName(unsigned int ires) const
Encapsulates a list of baryon resonances.
Definition: BaryonResList.h:37
enum genie::EResonance Resonance_t
unsigned int NResonances(void) const
void Print(ostream &stream) const
friend ostream & operator<<(ostream &stream, const BaryonResList &rl)
bool Find(Resonance_t res) const
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
int ResonancePdgCode(unsigned int ires) const
Resonance_t ResonanceId(unsigned int ires) const
enum BeamMode string