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>
8 
9 namespace ticl {
10 
11  //constants
12  constexpr double mpion = 0.13957;
13  constexpr float mpion2 = mpion * mpion;
15 
17  if (pdgId == 111) {
19  } else {
20  pdgId = std::abs(pdgId);
21  if (pdgId == 22) {
23  } else if (pdgId == 11) {
25  } else if (pdgId == 13) {
27  } else {
28  bool isHadron = (pdgId > 100 and pdgId < 900) or (pdgId > 1000 and pdgId < 9000);
29  if (isHadron) {
30  if (charge != 0) {
32  } else {
34  }
35  } else {
37  }
38  }
39  }
40  }
41 
42  // verbosity levels for ticl algorithms
44 
45 } // namespace ticl
46 
47 #endif
constexpr double mpion
Definition: commons.h:12
Trackster::ParticleType tracksterParticleTypeFromPdgId(int pdgId, int charge)
Definition: commons.h:16
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:16
math::XYZVectorF Vector
Definition: commons.h:14
constexpr float mpion2
Definition: commons.h:13
Definition: Common.h:8
VerbosityLevel
Definition: commons.h:43