Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:06:32

0001 ///////////////////////////////////////////////////////////////////////////////
0002 // File: SimG4HcalHitJetFinder.h
0003 // Jet finder class for analysis in SimG4HcalValidation
0004 ///////////////////////////////////////////////////////////////////////////////
0005 #ifndef Validation_HcalHits_SimG4HcalHitJetFinder_H
0006 #define Validation_HcalHits_SimG4HcalHitJetFinder_H
0007 
0008 #include "SimDataFormats/CaloHit/interface/CaloHit.h"
0009 #include "Validation/HcalHits/interface/SimG4HcalHitCluster.h"
0010 
0011 #include <vector>
0012 
0013 class SimG4HcalHitJetFinder {
0014 public:
0015   SimG4HcalHitJetFinder(double cone = 0.5);
0016   virtual ~SimG4HcalHitJetFinder();
0017 
0018   void setCone(double);
0019   void setInput(std::vector<CaloHit> *);
0020   std::vector<SimG4HcalHitCluster> *getClusters(bool);
0021   double rDist(const SimG4HcalHitCluster *, const CaloHit *) const;
0022   double rDist(const double, const double, const double, const double) const;
0023 
0024 private:
0025   double jetcone;
0026   std::vector<CaloHit> input;
0027   std::vector<SimG4HcalHitCluster> clusvector;
0028 };
0029 
0030 #endif