test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
L1Analysis::L1AnalysisRecoCluster Struct Reference

#include <L1AnalysisRecoCluster.h>

Public Member Functions

L1AnalysisRecoClusterDataFormatgetData ()
 
 L1AnalysisRecoCluster ()
 
void Reset ()
 
void Set (const reco::CaloClusterCollection &caloClusterCollection, unsigned maxCl)
 
void Set (const reco::SuperClusterCollection &superClusterCollection, unsigned maxCl)
 
 ~L1AnalysisRecoCluster ()
 

Public Attributes

L1AnalysisRecoClusterDataFormat recoCluster_
 

Detailed Description

Definition at line 18 of file L1AnalysisRecoCluster.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisRecoCluster::L1AnalysisRecoCluster ( )

Definition at line 5 of file L1AnalysisRecoCluster.cc.

6 {
7 }
L1Analysis::L1AnalysisRecoCluster::~L1AnalysisRecoCluster ( )

Definition at line 10 of file L1AnalysisRecoCluster.cc.

11 {
12 }

Member Function Documentation

L1AnalysisRecoClusterDataFormat* L1Analysis::L1AnalysisRecoCluster::getData ( void  )
inline

Definition at line 25 of file L1AnalysisRecoCluster.h.

References recoCluster_.

25 {return &recoCluster_;}
L1AnalysisRecoClusterDataFormat recoCluster_
void L1Analysis::L1AnalysisRecoCluster::Reset ( void  )
inline
void L1Analysis::L1AnalysisRecoCluster::Set ( const reco::CaloClusterCollection caloClusterCollection,
unsigned  maxCl 
)

Definition at line 14 of file L1AnalysisRecoCluster.cc.

References funct::sin().

15 {
17  for(reco::CaloClusterCollection::const_iterator it=caloClusters.begin(); it!=caloClusters.end() && recoCluster_.nClusters<maxCl; it++)
18  {
19  recoCluster_.eta.push_back( it->eta() );
20  recoCluster_.phi.push_back( it->phi() );
21  recoCluster_.et.push_back ( it->energy() * sin( it->position().theta() ) );
22  recoCluster_.e.push_back ( it->energy() );
24  }
25 
26 }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
L1AnalysisRecoClusterDataFormat recoCluster_
void L1Analysis::L1AnalysisRecoCluster::Set ( const reco::SuperClusterCollection superClusterCollection,
unsigned  maxCl 
)

Definition at line 28 of file L1AnalysisRecoCluster.cc.

References funct::sin().

29 {
31 
32  for(reco::SuperClusterCollection::const_iterator it=superClusters.begin(); it!=superClusters.end() && recoCluster_.nClusters<maxCl; it++)
33  {
34  recoCluster_.eta.push_back(it->eta());
35  recoCluster_.phi.push_back(it->phi());
36  recoCluster_.et.push_back (it->energy() * sin( it->position().theta() ) );
37  recoCluster_.e.push_back (it->energy());
39  }
40 
41 }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
L1AnalysisRecoClusterDataFormat recoCluster_

Member Data Documentation

L1AnalysisRecoClusterDataFormat L1Analysis::L1AnalysisRecoCluster::recoCluster_

Definition at line 29 of file L1AnalysisRecoCluster.h.

Referenced by getData(), and Reset().