CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ChamberSegmentUtility Class Reference

#include <ChamberSegmentUtility.h>

Public Member Functions

 ChamberSegmentUtility ()
 
std::vector< CSCSegmentgetCSCSegmentsInChamber (CSCDetId)
 
std::vector< DTRecSegment4DgetDTSegmentsInChamber (DTChamberId)
 
void initCSU (const edm::Handle< DTRecSegment4DCollection > &, const edm::Handle< CSCSegmentCollection > &)
 

Private Attributes

edm::Handle< DTRecSegment4DCollectionall4DSegments
 
edm::ESHandle< CSCGeometrycscGeometry
 
std::vector< CSCSegmentcscseg
 
edm::Handle< CSCSegmentCollectionCSCSegments
 
edm::ESHandle< DTGeometrydtGeom
 
std::vector< DTRecSegment4Ddtseg
 

Detailed Description

Class: ChamberSegmentUtility

Description: utility class for the dynamical truncation algorithm

Authors : D. Pagano & G. Bruno - UCL Louvain

Definition at line 33 of file ChamberSegmentUtility.h.

Constructor & Destructor Documentation

◆ ChamberSegmentUtility()

ChamberSegmentUtility::ChamberSegmentUtility ( )

Definition at line 36 of file ChamberSegmentUtility.cc.

36 {}

Member Function Documentation

◆ getCSCSegmentsInChamber()

vector< CSCSegment > ChamberSegmentUtility::getCSCSegmentsInChamber ( CSCDetId  sel)

Definition at line 44 of file ChamberSegmentUtility.cc.

44  {
45  cscseg.clear();
47  for (CSCSegmentCollection::const_iterator segment = range.first; segment != range.second; ++segment) {
48  cscseg.push_back(*segment);
49  }
50  return cscseg;
51 }

References FastTimerService_cff::range, and EgammaValidation_Wenu_cff::sel.

◆ getDTSegmentsInChamber()

vector< DTRecSegment4D > ChamberSegmentUtility::getDTSegmentsInChamber ( DTChamberId  sel)

Definition at line 53 of file ChamberSegmentUtility.cc.

53  {
54  dtseg.clear();
56  for (DTRecSegment4DCollection::const_iterator segment = range.first; segment != range.second; ++segment) {
57  dtseg.push_back(*segment);
58  }
59  return dtseg;
60 }

References FastTimerService_cff::range, and EgammaValidation_Wenu_cff::sel.

◆ initCSU()

void ChamberSegmentUtility::initCSU ( const edm::Handle< DTRecSegment4DCollection > &  DTSegProd,
const edm::Handle< CSCSegmentCollection > &  CSCSegProd 
)

Definition at line 38 of file ChamberSegmentUtility.cc.

39  {
40  all4DSegments = DTSegProd;
41  CSCSegments = CSCSegProd;
42 }

Referenced by DynamicTruncation::setProd().

Member Data Documentation

◆ all4DSegments

edm::Handle<DTRecSegment4DCollection> ChamberSegmentUtility::all4DSegments
private

Definition at line 49 of file ChamberSegmentUtility.h.

◆ cscGeometry

edm::ESHandle<CSCGeometry> ChamberSegmentUtility::cscGeometry
private

Definition at line 46 of file ChamberSegmentUtility.h.

◆ cscseg

std::vector<CSCSegment> ChamberSegmentUtility::cscseg
private

Definition at line 51 of file ChamberSegmentUtility.h.

◆ CSCSegments

edm::Handle<CSCSegmentCollection> ChamberSegmentUtility::CSCSegments
private

Definition at line 47 of file ChamberSegmentUtility.h.

◆ dtGeom

edm::ESHandle<DTGeometry> ChamberSegmentUtility::dtGeom
private

Definition at line 48 of file ChamberSegmentUtility.h.

◆ dtseg

std::vector<DTRecSegment4D> ChamberSegmentUtility::dtseg
private

Definition at line 50 of file ChamberSegmentUtility.h.

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
ChamberSegmentUtility::all4DSegments
edm::Handle< DTRecSegment4DCollection > all4DSegments
Definition: ChamberSegmentUtility.h:49
ChamberSegmentUtility::dtseg
std::vector< DTRecSegment4D > dtseg
Definition: ChamberSegmentUtility.h:50
ChamberSegmentUtility::cscseg
std::vector< CSCSegment > cscseg
Definition: ChamberSegmentUtility.h:51
edm::RangeMap::const_iterator
C::const_iterator const_iterator
constant access iterator type
Definition: RangeMap.h:43
edm::RangeMap::range
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33
ChamberSegmentUtility::CSCSegments
edm::Handle< CSCSegmentCollection > CSCSegments
Definition: ChamberSegmentUtility.h:47