test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Mustache.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaCoreTools_Mustache_h
2 #define RecoEcal_EgammaCoreTools_Mustache_h
3 
4 #include <vector>
8 
9 
10 
11 namespace reco {
12  namespace MustacheKernel {
13  bool inMustache(const float maxEta, const float maxPhi,
14  const float ClustE, const float ClusEta,
15  const float ClusPhi);
16  bool inDynamicDPhiWindow(const float seedEta, const float seedPhi,
17  const float ClustE, const float ClusEta,
18  const float clusPhi);
19 
20  }
21 
22  class Mustache {
23 
24  public:
26  int & nclusters, float & EoutsideMustache);
27  void MustacheID(const std::vector<const CaloCluster*>&,
28  int & nclusers,
29  float & EoutsideMustache);
30  void MustacheID(const reco::SuperCluster& sc,
31  int & nclusters,
32  float & EoutsideMustache);
33 
34 
35  void MustacheClust(const std::vector<CaloCluster>& clusters,
36  std::vector<unsigned int>& insideMust,
37  std::vector<unsigned int>& outsideMust);
38 
39  void FillMustacheVar(const std::vector<CaloCluster>& clusters);
40  //return Functions for Mustache Variables:
41  float MustacheE(){return Energy_In_Mustache_;}
45  int InsideMust(){return included_;}
46  int OutsideMust(){return excluded_;}
47  private:
48  template<class RandomAccessPtrIterator>
49  void MustacheID(const RandomAccessPtrIterator&,
50  const RandomAccessPtrIterator&,
51  int& nclusters,
52  float& EoutsideMustache);
53 
58  int excluded_;
59  int included_;
60  };
61 
62 
63 }
64 
65 #endif
float MustacheEOut()
Definition: Mustache.h:42
void MustacheID(const CaloClusterPtrVector &clusters, int &nclusters, float &EoutsideMustache)
Definition: Mustache.cc:162
void MustacheClust(const std::vector< CaloCluster > &clusters, std::vector< unsigned int > &insideMust, std::vector< unsigned int > &outsideMust)
Definition: Mustache.cc:216
float Energy_In_Mustache_
Definition: Mustache.h:54
bool inDynamicDPhiWindow(const float seedEta, const float seedPhi, const float ClustE, const float ClusEta, const float clusPhi)
Definition: Mustache.cc:73
int OutsideMust()
Definition: Mustache.h:46
double maxEta
float LowestMustClust()
Definition: Mustache.h:44
float LowestClusterEInMustache_
Definition: Mustache.h:57
float MustacheEtOut()
Definition: Mustache.h:43
float Et_Outside_Mustache_
Definition: Mustache.h:56
int InsideMust()
Definition: Mustache.h:45
float Energy_Outside_Mustache_
Definition: Mustache.h:55
void FillMustacheVar(const std::vector< CaloCluster > &clusters)
Definition: Mustache.cc:254
float MustacheE()
Definition: Mustache.h:41
bool inMustache(const float maxEta, const float maxPhi, const float ClustE, const float ClusEta, const float ClusPhi)
Definition: Mustache.cc:9