CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_4/src/L1TriggerConfig/DTTrackFinder/src/DTTrackFinderConfig.cc

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   Class: DTTrackFinderConfig
00004 //
00005 //   L1 DT Track Finder ESProducer
00006 //
00007 //
00008 //   $Date: 2009/05/12 09:53:37 $
00009 //   $Revision: 1.5 $
00010 //
00011 //   Author :
00012 //   J. Troconiz              UAM Madrid
00013 //
00014 //--------------------------------------------------
00015 
00016 #include "L1TriggerConfig/DTTrackFinder/interface/DTTrackFinderConfig.h"
00017 
00018 #include <iostream>
00019 #include <string>
00020 
00021 using namespace std;
00022 
00023 DTTrackFinderConfig::DTTrackFinderConfig(const edm::ParameterSet& pset) {
00024 
00025   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTExtLut);
00026   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPhiLut);
00027   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPtaLut);
00028   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTEtaPatternLut);
00029   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTQualPatternLut);
00030   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFParameters);
00031   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFMasks);
00032   
00033 }
00034 
00035 
00036 DTTrackFinderConfig::~DTTrackFinderConfig() {}
00037 
00038 
00039 auto_ptr<L1MuDTExtLut> DTTrackFinderConfig::produceL1MuDTExtLut(const L1MuDTExtLutRcd& iRecord) {
00040 
00041    auto_ptr<L1MuDTExtLut> extlut = auto_ptr<L1MuDTExtLut>( new L1MuDTExtLut() );
00042 
00043    if ( extlut->load() != 0 ) {
00044      cout << "Can not open files to load  extrapolation look-up tables for DTTrackFinder!" << endl;
00045    }
00046 
00047    return extlut;
00048 }
00049 
00050 auto_ptr<L1MuDTPhiLut> DTTrackFinderConfig::produceL1MuDTPhiLut(const L1MuDTPhiLutRcd& iRecord) {
00051 
00052    auto_ptr<L1MuDTPhiLut> philut = auto_ptr<L1MuDTPhiLut>( new L1MuDTPhiLut() );
00053 
00054    if ( philut->load() != 0 ) {
00055      cout << "Can not open files to load phi-assignment look-up tables for DTTrackFinder!" << endl;
00056    }
00057 
00058    return philut;
00059 }
00060 
00061 auto_ptr<L1MuDTPtaLut> DTTrackFinderConfig::produceL1MuDTPtaLut(const L1MuDTPtaLutRcd& iRecord) {
00062 
00063    auto_ptr<L1MuDTPtaLut> ptalut = auto_ptr<L1MuDTPtaLut>( new L1MuDTPtaLut() );
00064 
00065    if ( ptalut->load() != 0 ) {
00066      cout << "Can not open files to load pt-assignment look-up tables for DTTrackFinder!" << endl;
00067    }
00068 
00069    return ptalut;
00070 }
00071 
00072 auto_ptr<L1MuDTEtaPatternLut> DTTrackFinderConfig::produceL1MuDTEtaPatternLut(const L1MuDTEtaPatternLutRcd& iRecord) {
00073 
00074    auto_ptr<L1MuDTEtaPatternLut> etalut = auto_ptr<L1MuDTEtaPatternLut>( new L1MuDTEtaPatternLut() );
00075 
00076    if ( etalut->load() != 0 ) {
00077      cout << "Can not open files to load eta track finder look-up tables for DTTrackFinder!" << endl;
00078    }
00079 
00080    return etalut;
00081 }
00082 
00083 auto_ptr<L1MuDTQualPatternLut> DTTrackFinderConfig::produceL1MuDTQualPatternLut(const L1MuDTQualPatternLutRcd& iRecord) {
00084 
00085    auto_ptr<L1MuDTQualPatternLut> qualut = auto_ptr<L1MuDTQualPatternLut>( new L1MuDTQualPatternLut() );
00086 
00087    if ( qualut->load() != 0 ) {
00088      cout << "Can not open files to load eta matching look-up tables for DTTrackFinder!" << endl;
00089    }
00090 
00091    return qualut;
00092 }
00093 
00094 auto_ptr<L1MuDTTFParameters> DTTrackFinderConfig::produceL1MuDTTFParameters(const L1MuDTTFParametersRcd& iRecord) {
00095 
00096    auto_ptr<L1MuDTTFParameters> dttfpar = auto_ptr<L1MuDTTFParameters>( new L1MuDTTFParameters() );
00097 
00098    dttfpar->reset();
00099 
00100    return dttfpar;
00101 }
00102 
00103 auto_ptr<L1MuDTTFMasks> DTTrackFinderConfig::produceL1MuDTTFMasks(const L1MuDTTFMasksRcd& iRecord) {
00104 
00105    auto_ptr<L1MuDTTFMasks> dttfmsk = auto_ptr<L1MuDTTFMasks>( new L1MuDTTFMasks() );
00106 
00107    dttfmsk->reset();
00108 
00109    return dttfmsk;
00110 }
00111 
00112 DEFINE_FWK_EVENTSETUP_MODULE(DTTrackFinderConfig);