CMS 3D CMS Logo

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

#include <L1AnalysisBMTFInputs.h>

Public Member Functions

L1AnalysisBMTFInputsDataFormatgetData ()
 
 L1AnalysisBMTFInputs ()
 
void Reset ()
 
void SetBMPH (const edm::Handle< L1MuDTChambPhContainer > L1MuDTChambPhContainer, unsigned int maxDTPH)
 
void SetBMTH (const edm::Handle< L1MuDTChambThContainer > L1MuDTChambThContainer, unsigned int maxDTTH)
 
 ~L1AnalysisBMTFInputs ()
 

Private Attributes

L1AnalysisBMTFInputsDataFormat bmtf_
 

Detailed Description

Definition at line 19 of file L1AnalysisBMTFInputs.h.

Constructor & Destructor Documentation

◆ L1AnalysisBMTFInputs()

L1Analysis::L1AnalysisBMTFInputs::L1AnalysisBMTFInputs ( )

Definition at line 9 of file L1AnalysisBMTFInputs.cc.

9 {}

◆ ~L1AnalysisBMTFInputs()

L1Analysis::L1AnalysisBMTFInputs::~L1AnalysisBMTFInputs ( )

Definition at line 11 of file L1AnalysisBMTFInputs.cc.

11 {}

Member Function Documentation

◆ getData()

L1AnalysisBMTFInputsDataFormat* L1Analysis::L1AnalysisBMTFInputs::getData ( void  )
inline

Definition at line 28 of file L1AnalysisBMTFInputs.h.

28 { return &bmtf_; }

References bmtf_.

Referenced by L1UpgradeTfMuonTreeProducer::L1UpgradeTfMuonTreeProducer().

◆ Reset()

void L1Analysis::L1AnalysisBMTFInputs::Reset ( )
inline

◆ SetBMPH()

void L1Analysis::L1AnalysisBMTFInputs::SetBMPH ( const edm::Handle< L1MuDTChambPhContainer L1MuDTChambPhContainer,
unsigned int  maxDTPH 
)

Definition at line 13 of file L1AnalysisBMTFInputs.cc.

14  {
16 
17  bmtf_.phSize = PhContainer->size();
18  int iphtr = 0;
19  for (L1MuDTChambPhContainer::Phi_Container::const_iterator DTPhDigiItr = PhContainer->begin();
20  DTPhDigiItr != PhContainer->end();
21  ++DTPhDigiItr) {
22  if ((unsigned int)iphtr > maxDTPH - 1)
23  continue;
24  bmtf_.phBx.push_back(DTPhDigiItr->bxNum());
25  bmtf_.phTs2Tag.push_back(DTPhDigiItr->Ts2Tag());
26  bmtf_.phWh.push_back(DTPhDigiItr->whNum());
27  bmtf_.phSe.push_back(DTPhDigiItr->scNum());
28  bmtf_.phSt.push_back(DTPhDigiItr->stNum());
29  bmtf_.phAng.push_back(DTPhDigiItr->phi());
30  bmtf_.phBandAng.push_back(DTPhDigiItr->phiB());
31  bmtf_.phCode.push_back(DTPhDigiItr->code());
32 
33  iphtr++;
34  }
35 }

References L1MuDTChambPhContainer::getContainer(), and l1Tree_cfi::maxDTPH.

Referenced by L1UpgradeTfMuonTreeProducer::analyze().

◆ SetBMTH()

void L1Analysis::L1AnalysisBMTFInputs::SetBMTH ( const edm::Handle< L1MuDTChambThContainer L1MuDTChambThContainer,
unsigned int  maxDTTH 
)

Definition at line 37 of file L1AnalysisBMTFInputs.cc.

38  {
40 
41  int ithtr = 0;
42  bmtf_.thSize = ThContainer->size();
43 
44  for (L1MuDTChambThContainer::The_Container::const_iterator DTThDigiItr = ThContainer->begin();
45  DTThDigiItr != ThContainer->end();
46  ++DTThDigiItr) {
47  if ((unsigned int)ithtr > maxDTTH - 1)
48  continue;
49  bmtf_.thBx.push_back(DTThDigiItr->bxNum());
50  bmtf_.thWh.push_back(DTThDigiItr->whNum());
51  bmtf_.thSe.push_back(DTThDigiItr->scNum());
52  bmtf_.thSt.push_back(DTThDigiItr->stNum());
53 
54  ostringstream ss1, ss2;
55  ss1.clear();
56  ss2.clear();
57  ss1 << "9";
58  ss2 << "9";
59 
60  for (int j = 0; j < 7; j++) {
61  ss1 << DTThDigiItr->position(j);
62  ss2 << DTThDigiItr->code(j);
63  }
64  bmtf_.thTheta.push_back(stoi(ss1.str()));
65  bmtf_.thCode.push_back(stoi(ss2.str()));
66 
67  ithtr++;
68  }
69 }

References L1MuDTChambThContainer::getContainer(), dqmiolumiharvest::j, and l1Tree_cfi::maxDTTH.

Referenced by L1UpgradeTfMuonTreeProducer::analyze().

Member Data Documentation

◆ bmtf_

L1AnalysisBMTFInputsDataFormat L1Analysis::L1AnalysisBMTFInputs::bmtf_
private

Definition at line 31 of file L1AnalysisBMTFInputs.h.

Referenced by getData(), and Reset().

L1Analysis::L1AnalysisBMTFInputsDataFormat::thSe
std::vector< int > thSe
Definition: L1AnalysisBMTFInputsDataFormat.h:48
L1Analysis::L1AnalysisBMTFInputsDataFormat::Reset
void Reset()
Definition: L1AnalysisBMTFInputsDataFormat.h:11
l1Tree_cfi.maxDTPH
maxDTPH
Definition: l1Tree_cfi.py:52
L1MuDTChambPhContainer
Definition: L1MuDTChambPhContainer.h:33
L1MuDTChambPhContainer::getContainer
Phi_Container const * getContainer() const
Definition: L1MuDTChambPhContainer.cc:41
L1Analysis::L1AnalysisBMTFInputsDataFormat::phWh
std::vector< int > phWh
Definition: L1AnalysisBMTFInputsDataFormat.h:37
L1Analysis::L1AnalysisBMTFInputsDataFormat::phAng
std::vector< float > phAng
Definition: L1AnalysisBMTFInputsDataFormat.h:40
L1Analysis::L1AnalysisBMTFInputsDataFormat::thBx
std::vector< int > thBx
Definition: L1AnalysisBMTFInputsDataFormat.h:46
L1Analysis::L1AnalysisBMTFInputsDataFormat::thSize
int thSize
Definition: L1AnalysisBMTFInputsDataFormat.h:45
l1Tree_cfi.maxDTTH
maxDTTH
Definition: l1Tree_cfi.py:53
L1Analysis::L1AnalysisBMTFInputsDataFormat::phSe
std::vector< int > phSe
Definition: L1AnalysisBMTFInputsDataFormat.h:38
L1Analysis::L1AnalysisBMTFInputsDataFormat::thTheta
std::vector< int > thTheta
Definition: L1AnalysisBMTFInputsDataFormat.h:50
L1MuDTChambThContainer::getContainer
The_Container const * getContainer() const
Definition: L1MuDTChambThContainer.cc:41
L1Analysis::L1AnalysisBMTFInputsDataFormat::phTs2Tag
std::vector< int > phTs2Tag
Definition: L1AnalysisBMTFInputsDataFormat.h:43
L1Analysis::L1AnalysisBMTFInputsDataFormat::phCode
std::vector< int > phCode
Definition: L1AnalysisBMTFInputsDataFormat.h:42
L1MuDTChambThContainer::The_Container
std::vector< L1MuDTChambThDigi > The_Container
Definition: L1MuDTChambThContainer.h:35
L1Analysis::L1AnalysisBMTFInputsDataFormat::thSt
std::vector< int > thSt
Definition: L1AnalysisBMTFInputsDataFormat.h:49
L1Analysis::L1AnalysisBMTFInputsDataFormat::thWh
std::vector< int > thWh
Definition: L1AnalysisBMTFInputsDataFormat.h:47
L1MuDTChambPhContainer::Phi_Container
std::vector< L1MuDTChambPhDigi > Phi_Container
Definition: L1MuDTChambPhContainer.h:35
L1Analysis::L1AnalysisBMTFInputsDataFormat::phBx
std::vector< int > phBx
Definition: L1AnalysisBMTFInputsDataFormat.h:36
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
L1MuDTChambThContainer
Definition: L1MuDTChambThContainer.h:33
L1Analysis::L1AnalysisBMTFInputs::bmtf_
L1AnalysisBMTFInputsDataFormat bmtf_
Definition: L1AnalysisBMTFInputs.h:31
L1Analysis::L1AnalysisBMTFInputsDataFormat::phSize
int phSize
Definition: L1AnalysisBMTFInputsDataFormat.h:35
L1Analysis::L1AnalysisBMTFInputsDataFormat::thCode
std::vector< int > thCode
Definition: L1AnalysisBMTFInputsDataFormat.h:51
L1Analysis::L1AnalysisBMTFInputsDataFormat::phBandAng
std::vector< float > phBandAng
Definition: L1AnalysisBMTFInputsDataFormat.h:41
L1Analysis::L1AnalysisBMTFInputsDataFormat::phSt
std::vector< int > phSt
Definition: L1AnalysisBMTFInputsDataFormat.h:39