FairRoot/PandaRoot
PH_HEPEVT_Interface.h
Go to the documentation of this file.
1 #ifndef _PH_HEPEVT_Interface_included_
2 #define _PH_HEPEVT_Interface_included_
3 
4 #include <vector>
5 #include "PhotosBranch.h"
6 #include "PhotosParticle.h"
7 
8 namespace Photospp
9 {
10 
11 const static int NMXHEP = 10000;
12 const static double NO_BOOST_THRESHOLD=1.0e-8;
13 
14 extern "C"
15 {
17  extern struct
18  {
19  int nevhep;
20  int nhep;
21  int isthep[NMXHEP];
22  int idhep[NMXHEP];
23  int jmohep[NMXHEP][2];
24  int jdahep[NMXHEP][2];
25  double phep[NMXHEP][5];
26  double vhep[NMXHEP][4];
27  // COMMON/PH_HEPEVT/NEVHEP,NHEP,ISTHEP(NMXHEP),IDHEP(NMXHEP),
28  // &JMOHEP(2,NMXHEP),JDAHEP(2,NMXHEP),PHEP(5,NMXHEP),VHEP(4,NMXHEP)
29  } ph_hepevt_;
30 
31  extern struct
32  {
33  int qedrad[NMXHEP];
34  } ph_phoqed_;
35 
37  extern "C" void phodmp_();
38 }
39 
41 {
42 public:
44  static int set(PhotosBranch* branch);
45 
47  static void get();
48 
50  static void prepare();
51 
53  static void check_ME_channel();
54 
56  static void complete();
57 
59  static void clear();
60 public:
62  static int decay_idx;
64  static int ME_channel;
65 private:
67  static void add_particle(int i, PhotosParticle * particle,
68  int first_mother, int last_mother,
69  int first_daughter, int last_daughter);
70 
72  static std::vector<PhotosParticle*> m_particle_list;
73 };
74 
75 } // namespace Photospp
76 #endif
double vhep[NMXHEP][4]
Int_t i
Definition: run_full.C:25
void phodmp_()
int isthep[NMXHEP]
static std::vector< PhotosParticle * > m_particle_list
static const double NO_BOOST_THRESHOLD
const int particle
static const int NMXHEP
static void add_particle(int i, PhotosParticle *particle, int first_mother, int last_mother, int first_daughter, int last_daughter)
int idhep[NMXHEP]
struct Photospp::@32 ph_hepevt_
int qedrad[NMXHEP]
double phep[NMXHEP][5]
static int set(PhotosBranch *branch)
struct Photospp::@33 ph_phoqed_
int jdahep[NMXHEP][2]
int jmohep[NMXHEP][2]