CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1TMuon::DTCollector Class Reference

#include <DTCollector.h>

Inheritance diagram for L1TMuon::DTCollector:
L1TMuon::SubsystemCollector

Public Member Functions

 DTCollector (const edm::ParameterSet &)
 
virtual void extractPrimitives (const edm::Event &, const edm::EventSetup &, std::vector< TriggerPrimitive > &) const
 
 ~DTCollector ()
 
- Public Member Functions inherited from L1TMuon::SubsystemCollector
 SubsystemCollector (const edm::ParameterSet &)
 
virtual ~SubsystemCollector ()
 

Private Member Functions

int findBTIGroupForThetaDigi (const L1MuDTChambThDigi &, const int position) const
 
TriggerPrimitive processDigis (const L1MuDTChambPhDigi &, const int &segment_number) const
 
TriggerPrimitive processDigis (const L1MuDTChambThDigi &, const int bti_group) const
 
TriggerPrimitive processDigis (const L1MuDTChambPhDigi &, const L1MuDTChambThDigi &, const int bti_group) const
 

Private Attributes

std::unique_ptr< DTBunchCrossingCleaner_bxc
 
const int bx_max
 
const int bx_min
 

Additional Inherited Members

- Protected Attributes inherited from L1TMuon::SubsystemCollector
edm::InputTag _src
 

Detailed Description

Definition at line 22 of file DTCollector.h.

Constructor & Destructor Documentation

DTCollector::DTCollector ( const edm::ParameterSet ps)

Definition at line 13 of file DTCollector.cc.

References _bxc, L1TMuon::SubsystemCollector::_src, bx_max, bx_min, L1MuDTChambPhContainer::chPhiSegm1(), L1MuDTChambPhContainer::chPhiSegm2(), L1MuDTChambThContainer::chThetaSegm(), ev, extractPrimitives(), findBTIGroupForThetaDigi(), edm::Event::getByLabel(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), NULL, MillePedeFileConverter_cfg::out, processDigis(), relativeConstraints::station, groupFilesInBlocks::temp, and makeMuonMisalignmentScenario::wheel.

13  :
15  bx_min(ps.getParameter<int>("BX_min")),
16  bx_max(ps.getParameter<int>("BX_max")) {
17  if( ps.getParameter<bool>("runBunchCrossingCleaner") ) {
18  edm::ParameterSet bxccfg = ps.getParameterSet("bxCleanerCfg");
19  _bxc.reset(new DTBunchCrossingCleaner(bxccfg));
20  } else {
21  _bxc.reset(NULL);
22  }
23 }
T getParameter(std::string const &) const
#define NULL
Definition: scimark2.h:8
std::unique_ptr< DTBunchCrossingCleaner > _bxc
Definition: DTCollector.h:40
ParameterSet const & getParameterSet(std::string const &) const
SubsystemCollector(const edm::ParameterSet &)
L1TMuon::DTCollector::~DTCollector ( )
inline

Definition at line 25 of file DTCollector.h.

References extractPrimitives(), findBTIGroupForThetaDigi(), position, and processDigis().

25 {}

Member Function Documentation

virtual void L1TMuon::DTCollector::extractPrimitives ( const edm::Event ,
const edm::EventSetup ,
std::vector< TriggerPrimitive > &   
) const
virtual
int DTCollector::findBTIGroupForThetaDigi ( const L1MuDTChambThDigi digi,
const int  position 
) const
private

Definition at line 112 of file DTCollector.cc.

References DEFINE_EDM_PLUGIN(), mps_fire::i, L1MuDTChambThDigi::position(), and mps_fire::result.

Referenced by DTCollector(), L1TwinMux::DTCollector::DTCollector(), processDigis(), and ~DTCollector().

113  {
114  //if( digi.stNum() == 4 ) return -1; // there is no theta layer there
115  int result = -1;
116  for( int i = 0; i < 7; ++i ) {
117  if( digi.position(i) == pos ) result = i;
118  }
119  return result;
120 }
int position(const int i) const
TriggerPrimitive DTCollector::processDigis ( const L1MuDTChambPhDigi digi,
const int &  segment_number 
) const
private

Definition at line 92 of file DTCollector.cc.

References L1MuDTChambPhDigi::scNum(), L1MuDTChambPhDigi::stNum(), and L1MuDTChambPhDigi::whNum().

Referenced by DTCollector(), L1TwinMux::DTCollector::DTCollector(), and ~DTCollector().

93  {
94  DTChamberId detid(digi.whNum(),digi.stNum(),digi.scNum()+1);
95  return TriggerPrimitive(detid,digi,segment_number);
96 }
TriggerPrimitive DTCollector::processDigis ( const L1MuDTChambThDigi digi_th,
const int  bti_group 
) const
private

Definition at line 98 of file DTCollector.cc.

References L1MuDTChambThDigi::scNum(), L1MuDTChambThDigi::stNum(), and L1MuDTChambThDigi::whNum().

99  {
100  DTChamberId detid(digi_th.whNum(),digi_th.stNum(),digi_th.scNum()+1);
101  return TriggerPrimitive(detid,digi_th,bti_group);
102 }
TriggerPrimitive DTCollector::processDigis ( const L1MuDTChambPhDigi digi_phi,
const L1MuDTChambThDigi digi_theta,
const int  bti_group 
) const
private

Definition at line 104 of file DTCollector.cc.

References findBTIGroupForThetaDigi(), L1MuDTChambPhDigi::scNum(), L1MuDTChambPhDigi::stNum(), and L1MuDTChambPhDigi::whNum().

106  {
107  DTChamberId detid(digi_phi.whNum(),digi_phi.stNum(),digi_phi.scNum()+1);
108  return TriggerPrimitive(detid,digi_phi,digi_theta,bti_group);
109 }

Member Data Documentation

std::unique_ptr<DTBunchCrossingCleaner> L1TMuon::DTCollector::_bxc
private

Definition at line 40 of file DTCollector.h.

Referenced by DTCollector().

const int L1TMuon::DTCollector::bx_max
private

Definition at line 39 of file DTCollector.h.

Referenced by DTCollector().

const int L1TMuon::DTCollector::bx_min
private

Definition at line 39 of file DTCollector.h.

Referenced by DTCollector().