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 10 of file L1AnalysisL1UpgradeTfMuon.h.

Member Enumeration Documentation

anonymous enum

Constructor & Destructor Documentation

L1Analysis::L1AnalysisL1UpgradeTfMuon::L1AnalysisL1UpgradeTfMuon ( )

Definition at line 3 of file L1AnalysisL1UpgradeTfMuon.cc.

4 {
5 }
L1Analysis::L1AnalysisL1UpgradeTfMuon::~L1AnalysisL1UpgradeTfMuon ( )

Definition at line 7 of file L1AnalysisL1UpgradeTfMuon.cc.

8 {
9 
10 }

Member Function Documentation

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

Definition at line 18 of file L1AnalysisL1UpgradeTfMuon.h.

References l1upgradetfmuon_.

Referenced by L1UpgradeTfMuonTreeProducer::L1UpgradeTfMuonTreeProducer().

18 {return &l1upgradetfmuon_;}
L1AnalysisL1UpgradeTfMuonDataFormat l1upgradetfmuon_
void L1Analysis::L1AnalysisL1UpgradeTfMuon::Reset ( )
inline
void L1Analysis::L1AnalysisL1UpgradeTfMuon::SetTfMuon ( const l1t::RegionalMuonCandBxCollection muon,
unsigned  maxL1UpgradeTfMuon 
)

Definition at line 12 of file L1AnalysisL1UpgradeTfMuon.cc.

References BXVector< T >::begin(), l1t::MicroGMTConfiguration::calcGlobalPhi(), BXVector< T >::end(), BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), l1upgradetfmuon_, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::nTfMuons, funct::pow(), L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonBx, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonGlobalPhi, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwEta, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwHF, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwPhi, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwPt, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwQual, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwSign, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonHwSignValid, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonLink, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonProcessor, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonTrackFinderType, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonTrAdd, L1Analysis::L1AnalysisL1UpgradeTfMuonDataFormat::tfMuonWh, and makeMuonMisalignmentScenario::wheel.

Referenced by L1UpgradeTfMuonTreeProducer::analyze(), and Reset().

13 {
14  for (int ibx = muon.getFirstBX(); ibx <= muon.getLastBX(); ++ibx) {
15  for (l1t::RegionalMuonCandBxCollection::const_iterator it = muon.begin(ibx); it != muon.end(ibx) && l1upgradetfmuon_.nTfMuons < maxL1UpgradeTfMuon; ++it){
16  if (it->hwPt() > 0) {
17 
18  l1upgradetfmuon_.tfMuonHwPt.push_back(it->hwPt());
19  l1upgradetfmuon_.tfMuonHwEta.push_back(it->hwEta());
20  l1upgradetfmuon_.tfMuonHwPhi.push_back(it->hwPhi());
21  l1upgradetfmuon_.tfMuonGlobalPhi.push_back(l1t::MicroGMTConfiguration::calcGlobalPhi(it->hwPhi(),it->trackFinderType(),it->processor()));
22  l1upgradetfmuon_.tfMuonHwSign.push_back(it->hwSign());
23  l1upgradetfmuon_.tfMuonHwSignValid.push_back(it->hwSignValid());
24  l1upgradetfmuon_.tfMuonHwQual.push_back(it->hwQual());
25  l1upgradetfmuon_.tfMuonLink.push_back(it->link());
26  l1upgradetfmuon_.tfMuonProcessor.push_back(it->processor());
27  l1upgradetfmuon_.tfMuonTrackFinderType.push_back(it->trackFinderType());
28  l1upgradetfmuon_.tfMuonHwHF.push_back(it->hwHF());
29  l1upgradetfmuon_.tfMuonBx.push_back(ibx);
30  std::map<int, int> trAdd;
31  trAdd = it->trackAddress();
32  int wheel = pow(-1,trAdd[0]) * trAdd[1];
33  l1upgradetfmuon_.tfMuonWh.push_back(wheel);
34  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[2]);
35  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[3]);
36  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[4]);
37  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[5]);
38 
39 
41  }
42  }
43  }
44 }
const_iterator end(int bx) const
L1AnalysisL1UpgradeTfMuonDataFormat l1upgradetfmuon_
static int calcGlobalPhi(int locPhi, tftype t, int proc)
int getFirstBX() const
int getLastBX() const
const_iterator begin(int bx) const
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
std::vector< RegionalMuonCand >::const_iterator const_iterator
Definition: BXVector.h:20

Member Data Documentation

L1AnalysisL1UpgradeTfMuonDataFormat L1Analysis::L1AnalysisL1UpgradeTfMuon::l1upgradetfmuon_
private

Definition at line 21 of file L1AnalysisL1UpgradeTfMuon.h.

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