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.

References recoCluster_.

23 { return &recoCluster_; }
L1AnalysisRecoClusterDataFormat 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.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, 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_

◆ Set() [2/2]

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

Definition at line 22 of file L1AnalysisRecoCluster.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, funct::sin(), and HLT_2023v12_cff::superClusters.

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

◆ recoCluster_

L1AnalysisRecoClusterDataFormat L1Analysis::L1AnalysisRecoCluster::recoCluster_

Definition at line 27 of file L1AnalysisRecoCluster.h.

Referenced by getData(), and Reset().