CMS 3D CMS Logo

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 17 of file L1AnalysisRecoCluster.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisRecoCluster::L1AnalysisRecoCluster ( )

Definition at line 5 of file L1AnalysisRecoCluster.cc.

5 {}
L1Analysis::L1AnalysisRecoCluster::~L1AnalysisRecoCluster ( )

Definition at line 7 of file L1AnalysisRecoCluster.cc.

7 {}

Member Function Documentation

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

Definition at line 23 of file L1AnalysisRecoCluster.h.

References recoCluster_.

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

Definition at line 9 of file L1AnalysisRecoCluster.cc.

References L1Analysis::L1AnalysisRecoClusterDataFormat::e, L1Analysis::L1AnalysisRecoClusterDataFormat::et, L1Analysis::L1AnalysisRecoClusterDataFormat::eta, L1Analysis::L1AnalysisRecoClusterDataFormat::nClusters, L1Analysis::L1AnalysisRecoClusterDataFormat::phi, recoCluster_, and funct::sin().

9  {
11  for (reco::CaloClusterCollection::const_iterator it = caloClusters.begin();
12  it != caloClusters.end() && recoCluster_.nClusters < maxCl;
13  it++) {
14  recoCluster_.eta.push_back(it->eta());
15  recoCluster_.phi.push_back(it->phi());
16  recoCluster_.et.push_back(it->energy() * sin(it->position().theta()));
17  recoCluster_.e.push_back(it->energy());
19  }
20 }
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 22 of file L1AnalysisRecoCluster.cc.

References L1Analysis::L1AnalysisRecoClusterDataFormat::e, L1Analysis::L1AnalysisRecoClusterDataFormat::et, L1Analysis::L1AnalysisRecoClusterDataFormat::eta, L1Analysis::L1AnalysisRecoClusterDataFormat::nClusters, L1Analysis::L1AnalysisRecoClusterDataFormat::phi, recoCluster_, and funct::sin().

22  {
24 
25  for (reco::SuperClusterCollection::const_iterator it = superClusters.begin();
26  it != superClusters.end() && recoCluster_.nClusters < maxCl;
27  it++) {
28  recoCluster_.eta.push_back(it->eta());
29  recoCluster_.phi.push_back(it->phi());
30  recoCluster_.et.push_back(it->energy() * sin(it->position().theta()));
31  recoCluster_.e.push_back(it->energy());
33  }
34 }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
L1AnalysisRecoClusterDataFormat recoCluster_

Member Data Documentation

L1AnalysisRecoClusterDataFormat L1Analysis::L1AnalysisRecoCluster::recoCluster_

Definition at line 27 of file L1AnalysisRecoCluster.h.

Referenced by getData(), Reset(), and Set().