Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:52

0001 /****************************************************************************
0002 *
0003 * This is a part of TOTEM offline software.
0004 * Authors:
0005 *   Hubert Niewiadomski
0006 *   Jan Kašpar (jan.kaspar@gmail.com)
0007 *
0008 ****************************************************************************/
0009 
0010 #ifndef RecoPPS_Local_TotemRPClusterProducerAlgorithm
0011 #define RecoPPS_Local_TotemRPClusterProducerAlgorithm
0012 
0013 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0014 #include "SimDataFormats/TrackingHit/interface/PSimHit.h"
0015 
0016 #include "DataFormats/CTPPSDigi/interface/TotemRPDigi.h"
0017 #include "DataFormats/CTPPSReco/interface/TotemRPCluster.h"
0018 
0019 #include <vector>
0020 #include <set>
0021 
0022 class TotemRPClusterProducerAlgorithm {
0023 public:
0024   TotemRPClusterProducerAlgorithm(const edm::ParameterSet &param);
0025 
0026   ~TotemRPClusterProducerAlgorithm();
0027 
0028   int buildClusters(unsigned int detId, const std::vector<TotemRPDigi> &digi, std::vector<TotemRPCluster> &clusters);
0029 
0030 private:
0031   typedef std::set<TotemRPDigi> TotemRPDigiSet;
0032 
0033   TotemRPDigiSet strip_digi_set_;  ///< input digi set, strip by strip
0034 
0035   const edm::ParameterSet &param_;
0036 
0037   int verbosity_;
0038 };
0039 
0040 #endif