-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNuclide.h
46 lines (37 loc) · 1.08 KB
/
Nuclide.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Author: ESGonzalez
Date: 2/20/18
*/
#ifndef __NUCLIDE_H__
#define __NUCLIDE_H__
#include <iostream>
#include <memory>
#include <stack>
#include <vector>
#include <cmath>
#include <string>
#include <cassert>
#include "Particle.h"
#include "Reaction.h"
typedef std::shared_ptr< Particle > Part_ptr;
typedef std::shared_ptr< Reaction > Reaction_ptr;
class Nuclide
{
private:
std::string nuclideName;
std::vector< Reaction_ptr > reactions;
public:
// Constructor/Destructor
Nuclide( std::string label ) : nuclideName( label ) {};
~Nuclide() {};
// Adders/Setters
void addReaction ( Reaction_ptr newReaction ) { reactions.push_back( newReaction ); };
// Getters
std::string name() { return nuclideName; };
std::vector< Reaction_ptr > getReactions() { return reactions; };
double getTotalXS ( Part_ptr p );
double getXS ( Part_ptr p, std::string reactionName );
// Functions
Reaction_ptr sampleReaction( Part_ptr p );
};
#endif