CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes | Private Attributes

HT< T > Class Template Reference

#include <HT.h>

List of all members.

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 abs, HT< T >::Hx, HT< T >::Hy, metsig::jet, HT< T >::njet, HT< T >::ScalarSum, and HT< T >::v.

                                                            :
    Hx(0),
    Hy(0),
    ScalarSum(0)  
  {
    typedef typename T::const_iterator Iter;
    for (Iter jet = jetcoll->begin(); jet!=jetcoll->end(); ++jet){
      if ((jet->pt()>ptThreshold) && (abs(jet->eta())<maxAbsEta)){
        njet++;
        Hx += jet->px();
        Hy += jet->py();
        ScalarSum += jet->pt();
      }
    }
    v=TVector2(Hx,Hy);
  }

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().