CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Private Attributes
HT< T > Class Template Reference

#include <HT.h>

Public Types

typedef edm::Handle< THandler
 

Public Member Functions

 HT (Handler jetcoll, double ptThreshold, double maxAbsEta)
 

Public Attributes

int njet
 
double ScalarSum
 
TVector2 v
 

Private Attributes

double Hx
 
double Hy
 

Detailed Description

template<class T>
class HT< T >

Definition at line 21 of file HT.h.

Member Typedef Documentation

template<class T>
typedef edm::Handle<T> HT< T >::Handler

Definition at line 30 of file HT.h.

Constructor & Destructor Documentation

template<class T>
HT< T >::HT ( Handler  jetcoll,
double  ptThreshold,
double  maxAbsEta 
)
inline

Definition at line 31 of file HT.h.

References HT< T >::Hx, HT< T >::Hy, metsig::jet, HT< T >::njet, HT< T >::ScalarSum, and HT< T >::v.

31  : Hx(0), Hy(0), ScalarSum(0) {
32  typedef typename T::const_iterator Iter;
33  for (Iter jet = jetcoll->begin(); jet != jetcoll->end(); ++jet) {
34  if ((jet->pt() > ptThreshold) && (std::fabs(jet->eta()) < maxAbsEta)) {
35  njet++;
36  Hx += jet->px();
37  Hy += jet->py();
38  ScalarSum += jet->pt();
39  }
40  }
41  v = TVector2(Hx, Hy);
42  }
double ScalarSum
Definition: HT.h:28
double Hx
Definition: HT.h:23
double Hy
Definition: HT.h:23
int njet
Definition: HT.h:26
TVector2 v
Definition: HT.h:27

Member Data Documentation

template<class T>
double HT< T >::Hx
private

Definition at line 23 of file HT.h.

Referenced by HT< T >::HT().

template<class T>
double HT< T >::Hy
private

Definition at line 23 of file HT.h.

Referenced by HT< T >::HT().

template<class T>
int HT< T >::njet

Definition at line 26 of file HT.h.

Referenced by HT< T >::HT().

template<class T>
double HT< T >::ScalarSum

Definition at line 28 of file HT.h.

Referenced by SUSYDQMAnalyzer::analyze(), and HT< T >::HT().

template<class T>
TVector2 HT< T >::v

Definition at line 27 of file HT.h.

Referenced by SUSYDQMAnalyzer::analyze(), and HT< T >::HT().