00001 #ifndef DeDxTools_H 00002 #define DeDxTools_H 00003 #include <vector> 00004 #include "DataFormats/TrackReco/interface/DeDxHit.h" 00005 #include "DataFormats/TrackReco/interface/TrackDeDxHits.h" 00006 #include "DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h" 00007 #include "DataFormats/DetId/interface/DetId.h" 00008 #include "TrackingTools/PatternTools/interface/Trajectory.h" 00009 00010 namespace DeDxTools { 00011 00012 struct RawHits { 00013 double charge; 00014 double angleCosine; 00015 DetId detId; 00016 const TrajectoryMeasurement* trajectoryMeasurement; 00017 int NSaturating; 00018 }; 00019 00020 void trajectoryRawHits(const edm::Ref<std::vector<Trajectory> >& trajectory, std::vector<RawHits>& hits, bool usePixel, bool useStrip); 00021 double genericAverage (const reco::DeDxHitCollection &, float expo = 1.); 00022 } 00023 00024 #endif