CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
G4ProcessTypeEnumerator.h
Go to the documentation of this file.
1 #ifndef G4ProcessTypeEnumerator_H
2 #define G4ProcessTypeEnumerator_H
3 
4 #include "G4VProcess.hh"
5 
7 
8 public:
9 
12 
13  inline unsigned int processId(const G4VProcess* p)
14  {
15  unsigned int id = 0;
16  if(p) { id = p->GetProcessSubType(); }
17  return id;
18  }
19  inline int processIdLong(const G4VProcess* p)
20  {
21  int id = 0;
22  if(p) { id = p->GetProcessSubType(); }
23  return id;
24  }
25 
27 
28  int processId(const std::string& name);
29 
30 };
31 #endif
32 
unsigned int processId(const G4VProcess *p)
int processIdLong(const G4VProcess *p)