00001 #ifndef LaserAlignment_LaserBeamClusterizer_h 00002 #define LaserAlignment_LaserBeamClusterizer_h 00003 00012 #include "DataFormats/Common/interface/DetSetVector.h" 00013 #include "DataFormats/SiStripCluster/interface/SiStripCluster.h" 00014 #include "DataFormats/SiStripDigi/interface/SiStripDigi.h" 00015 #include "DataFormats/LaserAlignment/interface/LASBeamProfileFit.h" 00016 00017 #include <iostream> 00018 #include <vector> 00019 #include <algorithm> 00020 00021 class LaserBeamClusterizer 00022 { 00023 public: 00024 typedef std::vector<LASBeamProfileFit> BeamFitContainer; 00025 typedef BeamFitContainer::const_iterator BeamFitIterator; 00026 00028 LaserBeamClusterizer() {}; 00030 ~LaserBeamClusterizer() {}; 00031 00033 void clusterizeDetUnit(const edm::DetSet<SiStripDigi>& input, edm::DetSet<SiStripCluster>& output, 00034 BeamFitIterator beginFit, BeamFitIterator endFit, 00035 unsigned int detId, double ClusterWidth); 00036 }; 00037 #endif 00038