CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/TrackingTools/TrackAssociator/src/TrackAssociatorParameters.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    TrackAssociator
00004 // Class:      TrackAssociatorParameters
00005 // 
00006 /*
00007 
00008  Description: track associator parameters
00009 
00010 */
00011 //
00012 // Original Author:  Dmytro Kovalskyi
00013 // $Id: TrackAssociatorParameters.cc,v 1.7 2009/09/06 16:32:06 dmytro Exp $
00014 //
00015 //
00016 
00017 #include "TrackingTools/TrackAssociator/interface/TrackAssociatorParameters.h"
00018 
00019 
00020 void TrackAssociatorParameters::loadParameters( const edm::ParameterSet& iConfig )
00021 {
00022    dREcal = iConfig.getParameter<double>("dREcal");
00023    dRHcal = iConfig.getParameter<double>("dRHcal");
00024    dRMuon = iConfig.getParameter<double>("dRMuon");
00025    
00026    dREcalPreselection = iConfig.getParameter<double>("dREcalPreselection");
00027    dRHcalPreselection = iConfig.getParameter<double>("dRHcalPreselection");
00028    dRMuonPreselection = iConfig.getParameter<double>("dRMuonPreselection");
00029    dRPreshowerPreselection = iConfig.getParameter<double>("dRPreshowerPreselection");
00030    
00031    muonMaxDistanceX = iConfig.getParameter<double>("muonMaxDistanceX");
00032    muonMaxDistanceY = iConfig.getParameter<double>("muonMaxDistanceY");
00033    muonMaxDistanceSigmaX = iConfig.getParameter<double>("muonMaxDistanceSigmaX");
00034    muonMaxDistanceSigmaY = iConfig.getParameter<double>("muonMaxDistanceSigmaY");
00035    
00036    useEcal = iConfig.getParameter<bool>("useEcal");
00037    useHcal = iConfig.getParameter<bool>("useHcal");
00038    useHO   = iConfig.getParameter<bool>("useHO");
00039    useCalo = iConfig.getParameter<bool>("useCalo");
00040    useMuon = iConfig.getParameter<bool>("useMuon");
00041    usePreshower = iConfig.getParameter<bool>("usePreshower");
00042    
00043    theEBRecHitCollectionLabel       = iConfig.getParameter<edm::InputTag>("EBRecHitCollectionLabel");
00044    theEERecHitCollectionLabel       = iConfig.getParameter<edm::InputTag>("EERecHitCollectionLabel");
00045    theCaloTowerCollectionLabel      = iConfig.getParameter<edm::InputTag>("CaloTowerCollectionLabel");
00046    theHBHERecHitCollectionLabel     = iConfig.getParameter<edm::InputTag>("HBHERecHitCollectionLabel");
00047    theHORecHitCollectionLabel       = iConfig.getParameter<edm::InputTag>("HORecHitCollectionLabel");
00048    theDTRecSegment4DCollectionLabel = iConfig.getParameter<edm::InputTag>("DTRecSegment4DCollectionLabel");
00049    theCSCSegmentCollectionLabel     = iConfig.getParameter<edm::InputTag>("CSCSegmentCollectionLabel");
00050    
00051    accountForTrajectoryChangeCalo   = iConfig.getParameter<bool>("accountForTrajectoryChangeCalo");
00052    // accountForTrajectoryChangeMuon   = iConfig.getParameter<bool>("accountForTrajectoryChangeMuon");
00053    
00054    truthMatch = iConfig.getParameter<bool>("truthMatch");
00055    muonMaxDistanceSigmaY = iConfig.getParameter<double>("trajectoryUncertaintyTolerance");
00056 }
00057 
00058 TrackAssociatorParameters::TrackAssociatorParameters( const edm::ParameterSet& iConfig )
00059 {
00060    loadParameters( iConfig );
00061 }
00062