CMS 3D CMS Logo

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

#include <L1AnalysisL1UpgradeTfMuon.h>

Public Types

enum  { TEST = 0 }
 

Public Member Functions

L1AnalysisL1UpgradeTfMuonDataFormatgetData ()
 
 L1AnalysisL1UpgradeTfMuon ()
 
void Reset ()
 
void SetTfMuon (const l1t::RegionalMuonCandBxCollection &muon, unsigned maxL1UpgradeTfMuon)
 
 ~L1AnalysisL1UpgradeTfMuon ()
 

Private Attributes

L1AnalysisL1UpgradeTfMuonDataFormat l1upgradetfmuon_
 

Detailed Description

Definition at line 9 of file L1AnalysisL1UpgradeTfMuon.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TEST 

Definition at line 11 of file L1AnalysisL1UpgradeTfMuon.h.

11 { TEST = 0 };

Constructor & Destructor Documentation

◆ L1AnalysisL1UpgradeTfMuon()

L1Analysis::L1AnalysisL1UpgradeTfMuon::L1AnalysisL1UpgradeTfMuon ( )

Definition at line 3 of file L1AnalysisL1UpgradeTfMuon.cc.

3 {}

◆ ~L1AnalysisL1UpgradeTfMuon()

L1Analysis::L1AnalysisL1UpgradeTfMuon::~L1AnalysisL1UpgradeTfMuon ( )

Definition at line 5 of file L1AnalysisL1UpgradeTfMuon.cc.

5 {}

Member Function Documentation

◆ getData()

L1AnalysisL1UpgradeTfMuonDataFormat* L1Analysis::L1AnalysisL1UpgradeTfMuon::getData ( void  )
inline

◆ Reset()

void L1Analysis::L1AnalysisL1UpgradeTfMuon::Reset ( )
inline

◆ SetTfMuon()

void L1Analysis::L1AnalysisL1UpgradeTfMuon::SetTfMuon ( const l1t::RegionalMuonCandBxCollection muon,
unsigned  maxL1UpgradeTfMuon 
)

Definition at line 7 of file L1AnalysisL1UpgradeTfMuon.cc.

8  {
9  for (int ibx = muon.getFirstBX(); ibx <= muon.getLastBX(); ++ibx) {
12  ++it) {
13  if (it->hwPt() > 0) {
14  l1upgradetfmuon_.tfMuonHwPt.push_back(it->hwPt());
15  l1upgradetfmuon_.tfMuonHwEta.push_back(it->hwEta());
16  l1upgradetfmuon_.tfMuonHwPhi.push_back(it->hwPhi());
18  l1t::MicroGMTConfiguration::calcGlobalPhi(it->hwPhi(), it->trackFinderType(), it->processor()));
19  l1upgradetfmuon_.tfMuonHwSign.push_back(it->hwSign());
20  l1upgradetfmuon_.tfMuonHwSignValid.push_back(it->hwSignValid());
21  l1upgradetfmuon_.tfMuonHwQual.push_back(it->hwQual());
22  l1upgradetfmuon_.tfMuonLink.push_back(it->link());
23  l1upgradetfmuon_.tfMuonProcessor.push_back(it->processor());
24  l1upgradetfmuon_.tfMuonTrackFinderType.push_back(it->trackFinderType());
25  l1upgradetfmuon_.tfMuonHwHF.push_back(it->hwHF());
26  l1upgradetfmuon_.tfMuonBx.push_back(ibx);
27  std::map<int, int> trAdd;
28  trAdd = it->trackAddress();
29  int wheel = pow(-1, trAdd[0]) * trAdd[1];
30  l1upgradetfmuon_.tfMuonWh.push_back(wheel);
31  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[2]);
32  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[3]);
33  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[4]);
34  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[5]);
35 
37  }
38  }
39  }
40 }

References l1t::MicroGMTConfiguration::calcGlobalPhi(), l1UpgradeTfMuonTree_cfi::maxL1UpgradeTfMuon, funct::pow(), and makeMuonMisalignmentScenario::wheel.

Referenced by L1UpgradeTfMuonTreeProducer::analyze().

Member Data Documentation

◆ l1upgradetfmuon_

L1AnalysisL1UpgradeTfMuonDataFormat L1Analysis::L1AnalysisL1UpgradeTfMuon::l1upgradetfmuon_
private

Definition at line 19 of file L1AnalysisL1UpgradeTfMuon.h.

Referenced by getData(), and Reset().

L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonBx
std::vector< short int > tfMuonBx
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:41
muon
Definition: MuonCocktails.h:17
BXVector< RegionalMuonCand >::const_iterator
std::vector< RegionalMuonCand >::const_iterator const_iterator
Definition: BXVector.h:18
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwPhi
std::vector< short int > tfMuonHwPhi
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:32
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonProcessor
std::vector< short int > tfMuonProcessor
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:38
L1Analysis::L1AnalysisL1UpgradeTfMuon::l1upgradetfmuon_
L1AnalysisL1UpgradeTfMuonDataFormat l1upgradetfmuon_
Definition: L1AnalysisL1UpgradeTfMuon.h:19
l1t::MicroGMTConfiguration::calcGlobalPhi
static int calcGlobalPhi(int locPhi, tftype t, int proc)
Definition: MicroGMTConfiguration.cc:11
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonTrAdd
std::vector< short int > tfMuonTrAdd
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:43
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonWh
std::vector< short int > tfMuonWh
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:42
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::nTfMuons
unsigned short int nTfMuons
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:29
l1UpgradeTfMuonTree_cfi.maxL1UpgradeTfMuon
maxL1UpgradeTfMuon
Definition: l1UpgradeTfMuonTree_cfi.py:10
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwHF
std::vector< short int > tfMuonHwHF
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:40
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwQual
std::vector< short int > tfMuonHwQual
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:36
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwSignValid
std::vector< short int > tfMuonHwSignValid
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:35
L1Analysis::L1AnalysisL1UpgradeTfMuon::TEST
Definition: L1AnalysisL1UpgradeTfMuon.h:11
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwSign
std::vector< short int > tfMuonHwSign
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:34
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwPt
std::vector< short int > tfMuonHwPt
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:30
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwEta
std::vector< short int > tfMuonHwEta
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:31
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonGlobalPhi
std::vector< short int > tfMuonGlobalPhi
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:33
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::Reset
void Reset()
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:11
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonLink
std::vector< short int > tfMuonLink
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:37
L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonTrackFinderType
std::vector< short int > tfMuonTrackFinderType
Definition: L1AnalysisL1UpgradeTfMuonDataFormat.h:39