Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DMCThrown.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DMCThrown.h
4 // Created: Sun Apr 3 12:22:09 EDT 2005
5 // Creator: davidl (on Darwin Harriet.local 7.8.0 powerpc)
6 //
7 
8 #ifndef _DMCThrown_
9 #define _DMCThrown_
10 
11 #include "JANA/JObject.h"
12 #include "JANA/JFactory.h"
13 
14 #include "PID/DKinematicData.h"
15 
17  public:
19 
20  int type; ///< GEANT particle ID
21  int pdgtype; ///< PDG particle type (not used by GEANT)
22  int myid; ///< id of this particle from original generator
23  int parentid; ///< id of parent of this particle from original generator
24  int mech; ///< production mechanism of this partcle (generator specific)
25 
26  void toStrings(vector<pair<string,string> > &items)const{
28  AddString(items, "pdgtype", "%d", pdgtype);
29  AddString(items, "myid", "%d", myid);
30  AddString(items, "parentid", "%d", parentid);
31  AddString(items, "mech", "%d", mech);
32  }
33 
34 };
35 
36 #endif // _DMCThrown_
37 
int pdgtype
PDG particle type (not used by GEANT)
Definition: DMCThrown.h:21
int mech
production mechanism of this partcle (generator specific)
Definition: DMCThrown.h:24
int parentid
id of parent of this particle from original generator
Definition: DMCThrown.h:23
JOBJECT_PUBLIC(DMCThrown)
void toStrings(vector< pair< string, string > > &items) const
Definition: DMCThrown.h:26
void toStrings(vector< pair< string, string > > &items) const
int type
GEANT particle ID.
Definition: DMCThrown.h:20
int myid
id of this particle from original generator
Definition: DMCThrown.h:22