CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1Analysis::L1AnalysisL1UpgradeTfMuonShower Class Reference

#include <L1AnalysisL1UpgradeTfMuonShower.h>

Public Types

enum  { TEST = 0 }
 

Public Member Functions

L1AnalysisL1UpgradeTfMuonShowerDataFormatgetData ()
 
 L1AnalysisL1UpgradeTfMuonShower ()
 
void Reset ()
 
void SetTfMuonShower (const l1t::RegionalMuonShowerBxCollection &muon, unsigned maxL1UpgradeTfMuonShower)
 
 ~L1AnalysisL1UpgradeTfMuonShower ()
 

Private Attributes

L1AnalysisL1UpgradeTfMuonShowerDataFormat l1upgradetfmuonshower_
 

Detailed Description

Definition at line 8 of file L1AnalysisL1UpgradeTfMuonShower.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ L1AnalysisL1UpgradeTfMuonShower()

L1Analysis::L1AnalysisL1UpgradeTfMuonShower::L1AnalysisL1UpgradeTfMuonShower ( )

Definition at line 3 of file L1AnalysisL1UpgradeTfMuonShower.cc.

3 {}

◆ ~L1AnalysisL1UpgradeTfMuonShower()

L1Analysis::L1AnalysisL1UpgradeTfMuonShower::~L1AnalysisL1UpgradeTfMuonShower ( )

Definition at line 5 of file L1AnalysisL1UpgradeTfMuonShower.cc.

5 {}

Member Function Documentation

◆ getData()

L1AnalysisL1UpgradeTfMuonShowerDataFormat* L1Analysis::L1AnalysisL1UpgradeTfMuonShower::getData ( void  )
inline

◆ Reset()

void L1Analysis::L1AnalysisL1UpgradeTfMuonShower::Reset ( )
inline

◆ SetTfMuonShower()

void L1Analysis::L1AnalysisL1UpgradeTfMuonShower::SetTfMuonShower ( const l1t::RegionalMuonShowerBxCollection muon,
unsigned  maxL1UpgradeTfMuonShower 
)

Definition at line 7 of file L1AnalysisL1UpgradeTfMuonShower.cc.

References BXVector< T >::begin(), l1t::emtf_pos, BXVector< T >::end(), BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), and l1UpgradeTfMuonShowerTree_cfi::maxL1UpgradeTfMuonShower.

Referenced by L1UpgradeTfMuonShowerTreeProducer::analyze().

8  {
9  for (int ibx = muonShower.getFirstBX(); ibx <= muonShower.getLastBX(); ++ibx) {
10  for (auto it = muonShower.begin(ibx);
11  it != muonShower.end(ibx) && l1upgradetfmuonshower_.nTfMuonShowers < maxL1UpgradeTfMuonShower;
12  ++it) {
13  if (it->isValid()) {
15  l1upgradetfmuonshower_.tfMuonShowerEndcap.push_back(it->trackFinderType() == l1t::tftype::emtf_pos ? 1 : -1);
16  l1upgradetfmuonshower_.tfMuonShowerSector.push_back(it->processor() + 1);
17  l1upgradetfmuonshower_.tfMuonShowerOneNominal.push_back(it->isOneNominalInTime());
18  l1upgradetfmuonshower_.tfMuonShowerOneTight.push_back(it->isOneTightInTime());
19  l1upgradetfmuonshower_.tfMuonShowerTwoLoose.push_back(it->isTwoLooseInTime());
21  }
22  }
23  }
24 }
L1AnalysisL1UpgradeTfMuonShowerDataFormat l1upgradetfmuonshower_

Member Data Documentation

◆ l1upgradetfmuonshower_

L1AnalysisL1UpgradeTfMuonShowerDataFormat L1Analysis::L1AnalysisL1UpgradeTfMuonShower::l1upgradetfmuonshower_
private

Definition at line 18 of file L1AnalysisL1UpgradeTfMuonShower.h.

Referenced by getData(), and Reset().