CMS 3D CMS Logo

commons.h
Go to the documentation of this file.
1 #ifndef RecoHGCal_TICL_interface_commons_h
2 #define RecoHGCal_TICL_interface_commons_h
3 #include <vector>
7 
8 namespace ticl {
9 
10  //constants
11  constexpr double mpion = 0.13957;
12  constexpr float mpion2 = mpion * mpion;
13 
15  if (pdgId == 111) {
17  } else {
18  pdgId = std::abs(pdgId);
19  if (pdgId == 22) {
21  } else if (pdgId == 11) {
23  } else if (pdgId == 13) {
25  } else {
26  bool isHadron = (pdgId > 100 and pdgId < 900) or (pdgId > 1000 and pdgId < 9000);
27  if (isHadron) {
28  if (charge != 0) {
30  } else {
32  }
33  } else {
35  }
36  }
37  }
38  }
39 
40  // verbosity levels for ticl algorithms
42 
43 } // namespace ticl
44 
45 #endif
constexpr double mpion
Definition: commons.h:11
Trackster::ParticleType tracksterParticleTypeFromPdgId(int pdgId, int charge)
Definition: commons.h:14
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
constexpr float mpion2
Definition: commons.h:12
Definition: Common.h:8
VerbosityLevel
Definition: commons.h:41