CMS 3D CMS Logo

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 31 of file HT.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file HT.h.

References metsig::jet, and refitMuons_cfi::ptThreshold.

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

Member Data Documentation

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

Definition at line 24 of file HT.h.

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

Definition at line 24 of file HT.h.

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

Definition at line 27 of file HT.h.

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

Definition at line 29 of file HT.h.

Referenced by SUSYDQMAnalyzer::analyze().

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

Definition at line 28 of file HT.h.

Referenced by SUSYDQMAnalyzer::analyze().