Bayeux  3.4.1
Core Foundation library for SuperNEMO
genbb_writer.h
Go to the documentation of this file.
1 /* Author(s): Arnaud Chapon <chapon@lpccaen.in2p3.fr>
3  * Creation date: 2010-01-20
4  * Last modified: 2012-06-22
5  *
6  * License:
7  * Copyright 2007-2012 F. Mauger
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or (at
12  * your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  *
23  * Description:
24  *
25  * Save GENBB event in a file
26  *
27  * History:
28  *
29  */
30 
31 #ifndef GENBB_HELP_GENBB_WRITER_H
32 #define GENBB_HELP_GENBB_WRITER_H 1
33 
34 // Standard library:
35 #include <string>
36 #include <iostream>
37 
38 // This project:
39 #include <geomtools/utils.h>
40 
41 namespace genbb {
42 
44  {
45 
46  public:
47 
48  void set_seed ( int seed_ );
49 
50  int get_seed() const;
51 
52  void set_npart ( int npart_ );
53 
54  int get_npart() const;
55 
56  void set_part_per_evt ( int part_per_evt_ );
57 
58  int get_part_per_evt() const;
59 
60  void set_type ( int type_ );
61 
62  int get_type() const;
63 
64  void set_Emin ( double Emin_ );
65 
66  double get_Emin() const;
67 
68  void set_Emax ( double Emax_ );
69 
70  double get_Emax() const;
71 
72  void set_phi_min ( double phi_min_ );
73 
74  double get_phi_min() const;
75 
76  void set_phi_max ( double phi_max_ );
77 
78  double get_phi_max() const;
79 
80  void set_outfile ( std::string fout_ );
81 
82  std::string get_outfile() const;
83 
84  void set_debug ( bool d_ );
85 
86  bool is_debug () const;
87 
88  void run ();
89 
90  void dump ( std::ostream & out_ ) const;
91 
93  genbb_writer ();
94 
96  virtual ~genbb_writer ();
97 
98  double myrandom ( double min_, double max_ );
99 
100  void init ();
101 
102  private:
103 
104  bool _debug_;
105  std::string _fout_;
106  int _npart_, _part_per_evt_;
107  int _type_, _seed_;
108  double _emin_, _emax_;
109  double _phi_min_, _phi_max_;
110 
111  };
112 
113 } // end of namespace genbb
114 
115 #endif // GENBB_HELP_GENBB_WRITER_H
116 
117 // Local Variables: --
118 // mode: c++ --
119 // End: --
Definition: genbb_writer.h:43
virtual ~genbb_writer()
Destructor.
double get_Emin() const
double get_phi_max() const
int get_type() const
int get_seed() const
void set_part_per_evt(int part_per_evt_)
genbb_writer()
Constructor.
void set_npart(int npart_)
void set_outfile(std::string fout_)
double myrandom(double min_, double max_)
void dump(std::ostream &out_) const
void set_phi_max(double phi_max_)
double get_phi_min() const
void set_Emin(double Emin_)
Top-level namespace of the Bayeux/genbb_help module library.
Definition: alpha_decay.h:51
bool is_debug() const
void set_Emax(double Emax_)
double get_Emax() const
void set_seed(int seed_)
void set_debug(bool d_)
std::string get_outfile() const
int get_part_per_evt() const
int get_npart() const
void set_phi_min(double phi_min_)
void set_type(int type_)