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
 
std::vector< CSCSegmentcscseg
 
edm::Handle< CSCSegmentCollectionCSCSegments
 
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 30 of file ChamberSegmentUtility.h.

Constructor & Destructor Documentation

◆ ChamberSegmentUtility()

ChamberSegmentUtility::ChamberSegmentUtility ( )

Definition at line 28 of file ChamberSegmentUtility.cc.

28 {}

Member Function Documentation

◆ getCSCSegmentsInChamber()

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

Definition at line 36 of file ChamberSegmentUtility.cc.

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

36  {
37  cscseg.clear();
39  for (CSCSegmentCollection::const_iterator segment = range.first; segment != range.second; ++segment) {
40  cscseg.push_back(*segment);
41  }
42  return cscseg;
43 }
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
C::const_iterator const_iterator
constant access iterator type
Definition: RangeMap.h:43
edm::Handle< CSCSegmentCollection > CSCSegments
std::vector< CSCSegment > cscseg

◆ getDTSegmentsInChamber()

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

Definition at line 45 of file ChamberSegmentUtility.cc.

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

45  {
46  dtseg.clear();
48  for (DTRecSegment4DCollection::const_iterator segment = range.first; segment != range.second; ++segment) {
49  dtseg.push_back(*segment);
50  }
51  return dtseg;
52 }
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
C::const_iterator const_iterator
constant access iterator type
Definition: RangeMap.h:43
std::vector< DTRecSegment4D > dtseg
edm::Handle< DTRecSegment4DCollection > all4DSegments

◆ initCSU()

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

Definition at line 30 of file ChamberSegmentUtility.cc.

31  {
32  all4DSegments = DTSegProd;
33  CSCSegments = CSCSegProd;
34 }
edm::Handle< CSCSegmentCollection > CSCSegments
edm::Handle< DTRecSegment4DCollection > all4DSegments

Member Data Documentation

◆ all4DSegments

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

Definition at line 44 of file ChamberSegmentUtility.h.

◆ cscseg

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

Definition at line 46 of file ChamberSegmentUtility.h.

◆ CSCSegments

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

Definition at line 43 of file ChamberSegmentUtility.h.

◆ dtseg

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

Definition at line 45 of file ChamberSegmentUtility.h.