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 34 of file ChamberSegmentUtility.h.

Constructor & Destructor Documentation

ChamberSegmentUtility::ChamberSegmentUtility ( )

Definition at line 36 of file ChamberSegmentUtility.cc.

37 {}

Member Function Documentation

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

Definition at line 46 of file ChamberSegmentUtility.cc.

47 {
48  cscseg.clear();
49  CSCSegmentCollection::range range = CSCSegments->get(sel);
50  for (CSCSegmentCollection::const_iterator segment = range.first;
51  segment!=range.second; ++segment) {
52  cscseg.push_back(*segment);
53  }
54  return cscseg;
55 }
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
edm::Handle< CSCSegmentCollection > CSCSegments
std::vector< CSCSegment > cscseg
vector< DTRecSegment4D > ChamberSegmentUtility::getDTSegmentsInChamber ( DTChamberId  sel)

Definition at line 58 of file ChamberSegmentUtility.cc.

59 {
60  dtseg.clear();
62  for (DTRecSegment4DCollection::const_iterator segment = range.first;
63  segment!=range.second; ++segment){
64  dtseg.push_back(*segment);
65  }
66  return dtseg;
67 }
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
std::vector< DTRecSegment4D > dtseg
edm::Handle< DTRecSegment4DCollection > all4DSegments
void ChamberSegmentUtility::initCSU ( const edm::Handle< DTRecSegment4DCollection > &  DTSegProd,
const edm::Handle< CSCSegmentCollection > &  CSCSegProd 
)

Definition at line 39 of file ChamberSegmentUtility.cc.

Referenced by DynamicTruncation::setProd().

40  {
41  all4DSegments = DTSegProd;
42  CSCSegments = CSCSegProd;
43 }
edm::Handle< CSCSegmentCollection > CSCSegments
edm::Handle< DTRecSegment4DCollection > all4DSegments

Member Data Documentation

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

Definition at line 53 of file ChamberSegmentUtility.h.

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

Definition at line 50 of file ChamberSegmentUtility.h.

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

Definition at line 55 of file ChamberSegmentUtility.h.

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

Definition at line 51 of file ChamberSegmentUtility.h.

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

Definition at line 52 of file ChamberSegmentUtility.h.

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

Definition at line 54 of file ChamberSegmentUtility.h.