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

◆ L1AnalysisRecoCluster()

L1Analysis::L1AnalysisRecoCluster::L1AnalysisRecoCluster ( )

Definition at line 5 of file L1AnalysisRecoCluster.cc.

5 {}

◆ ~L1AnalysisRecoCluster()

L1Analysis::L1AnalysisRecoCluster::~L1AnalysisRecoCluster ( )

Definition at line 7 of file L1AnalysisRecoCluster.cc.

7 {}

Member Function Documentation

◆ getData()

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

Definition at line 23 of file L1AnalysisRecoCluster.h.

23 { return &recoCluster_; }

References recoCluster_.

◆ Reset()

void L1Analysis::L1AnalysisRecoCluster::Reset ( )
inline

◆ Set() [1/2]

void L1Analysis::L1AnalysisRecoCluster::Set ( const reco::CaloClusterCollection caloClusterCollection,
unsigned  maxCl 
)

Definition at line 9 of file L1AnalysisRecoCluster.cc.

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 }

References funct::sin().

◆ Set() [2/2]

void L1Analysis::L1AnalysisRecoCluster::Set ( const reco::SuperClusterCollection superClusterCollection,
unsigned  maxCl 
)

Definition at line 22 of file L1AnalysisRecoCluster.cc.

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 }

References funct::sin(), and HLT_2018_cff::superClusters.

Member Data Documentation

◆ recoCluster_

L1AnalysisRecoClusterDataFormat L1Analysis::L1AnalysisRecoCluster::recoCluster_

Definition at line 27 of file L1AnalysisRecoCluster.h.

Referenced by getData(), and Reset().

L1Analysis::L1AnalysisRecoCluster::recoCluster_
L1AnalysisRecoClusterDataFormat recoCluster_
Definition: L1AnalysisRecoCluster.h:27
L1Analysis::L1AnalysisRecoClusterDataFormat::eta
std::vector< double > eta
Definition: L1AnalysisRecoClusterDataFormat.h:28
L1Analysis::L1AnalysisRecoClusterDataFormat::nClusters
unsigned nClusters
Definition: L1AnalysisRecoClusterDataFormat.h:27
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
L1Analysis::L1AnalysisRecoClusterDataFormat::phi
std::vector< double > phi
Definition: L1AnalysisRecoClusterDataFormat.h:29
HLT_2018_cff.superClusters
superClusters
Definition: HLT_2018_cff.py:13791
L1Analysis::L1AnalysisRecoClusterDataFormat::et
std::vector< double > et
Definition: L1AnalysisRecoClusterDataFormat.h:30
L1Analysis::L1AnalysisRecoClusterDataFormat::e
std::vector< double > e
Definition: L1AnalysisRecoClusterDataFormat.h:31
L1Analysis::L1AnalysisRecoClusterDataFormat::Reset
void Reset()
Definition: L1AnalysisRecoClusterDataFormat.h:19