CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DeDxTools.h
Go to the documentation of this file.
1 #ifndef DeDxTools_H
2 #define DeDxTools_H
3 #include <vector>
16 
17 namespace DeDxTools {
18 
19  struct RawHits {
20  double charge;
21  double angleCosine;
25  };
26 
27  inline const SiStripCluster* GetCluster(const TrackerSingleRecHit * hit) { return &hit->stripCluster();}
28  inline const SiStripCluster* GetCluster(const TrackerSingleRecHit & hit) {return &hit.stripCluster();}
29  void trajectoryRawHits(const edm::Ref<std::vector<Trajectory> >& trajectory, std::vector<RawHits>& hits, bool usePixel, bool useStrip);
30  double genericAverage (const reco::DeDxHitCollection &, float expo = 1.);
31  bool shapeSelection(const std::vector<uint8_t> & ampls);
32 }
33 
34 #endif
const SiStripCluster * GetCluster(const TrackerSingleRecHit *hit)
Definition: DeDxTools.h:27
void trajectoryRawHits(const edm::Ref< std::vector< Trajectory > > &trajectory, std::vector< RawHits > &hits, bool usePixel, bool useStrip)
Definition: DeDxTools.cc:10
std::vector< DeDxHit > DeDxHitCollection
Definition: DeDxHit.h:49
double angleCosine
Definition: DeDxTools.h:21
Definition: DetId.h:18
bool shapeSelection(const std::vector< uint8_t > &ampls)
Definition: DeDxTools.cc:133
const TrajectoryMeasurement * trajectoryMeasurement
Definition: DeDxTools.h:23
SiStripCluster const & stripCluster() const
double genericAverage(const reco::DeDxHitCollection &, float expo=1.)
Definition: DeDxTools.cc:121