00001 00002 // File: SimG4HcalHitJetFinder.h 00003 // Jet finder class for analysis in SimG4HcalValidation 00005 #ifndef Validation_HcalHits_SimG4HcalHitJetFinder_H 00006 #define Validation_HcalHits_SimG4HcalHitJetFinder_H 00007 00008 #include "SimDataFormats/CaloHit/interface/CaloHit.h" 00009 #include "Validation/HcalHits/interface/SimG4HcalHitCluster.h" 00010 00011 #include <vector> 00012 00013 class SimG4HcalHitJetFinder { 00014 00015 public: 00016 00017 SimG4HcalHitJetFinder(double cone=0.5); 00018 virtual ~SimG4HcalHitJetFinder(); 00019 00020 void setCone(double); 00021 void setInput(std::vector<CaloHit> *); 00022 std::vector<SimG4HcalHitCluster> * getClusters(bool); 00023 double rDist(const SimG4HcalHitCluster* , const CaloHit*) const; 00024 double rDist(const double, const double, const double, const double) const; 00025 00026 private : 00027 00028 double jetcone; 00029 std::vector<CaloHit> input; 00030 std::vector<SimG4HcalHitCluster> clusvector; 00031 00032 }; 00033 00034 #endif