CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 20 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 funct::abs(), HT< T >::Hx, HT< T >::Hy, metsig::jet, HT< T >::njet, HT< T >::ScalarSum, and HT< T >::v.

31  :
32  Hx(0),
33  Hy(0),
34  ScalarSum(0)
35  {
36  typedef typename T::const_iterator Iter;
37  for (Iter jet = jetcoll->begin(); jet!=jetcoll->end(); ++jet){
38  if ((jet->pt()>ptThreshold) && (abs(jet->eta())<maxAbsEta)){
39  njet++;
40  Hx += jet->px();
41  Hy += jet->py();
42  ScalarSum += jet->pt();
43  }
44  }
45  v=TVector2(Hx,Hy);
46  }
double ScalarSum
Definition: HT.h:28
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
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 HT< T >::HT().

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

Definition at line 27 of file HT.h.

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