Skip to content

Commit

Permalink
TBout analyzer (cms-sw#114)
Browse files Browse the repository at this point in the history
* Reviewed.

* one merge error fixed, but a problem remains

* fixed second error.

* Update AnalyzerTBout.cc

Co-authored-by: Ian Tomalin <[email protected]>
  • Loading branch information
tschuh and tomalin committed May 31, 2022
1 parent 3072da0 commit e7aaa09
Show file tree
Hide file tree
Showing 11 changed files with 461 additions and 25 deletions.
14 changes: 7 additions & 7 deletions L1Trigger/TrackFindingTracklet/plugins/L1FPGATrackProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ L1FPGATrackProducer::L1FPGATrackProducer(edm::ParameterSet const& iConfig)
}

produces<std::vector<TTTrack<Ref_Phase2TrackerDigi_>>>("Level1TTTracks").setBranchAlias("Level1TTTracks");
// book ED output token for clock and bit accurate TrackBuilder tracks
edPutTokenTracks_ = produces<Streams>("Level1TTTracks");
// book ED output token for clock and bit accurate TrackBuilder stubs
edPutTokenStubs_ = produces<StreamsStub>("Level1TTTracks");

asciiEventOutName_ = iConfig.getUntrackedParameter<string>("asciiFileName", "");

Expand All @@ -258,7 +254,11 @@ L1FPGATrackProducer::L1FPGATrackProducer(edm::ParameterSet const& iConfig)
tableTREFile = iConfig.getParameter<edm::FileInPath>("tableTREFile");
}

// book ES product to assign tracks and stubs to InputRouter input channel and TrackBuilder output channel
// book ED output token for clock and bit accurate tracks
edPutTokenTracks_ = produces<Streams>("Level1TTTracks");
// book ED output token for clock and bit accurate stubs
edPutTokenStubs_ = produces<StreamsStub>("Level1TTTracks");
// book ES product
esGetTokenChannelAssignment_ = esConsumes<ChannelAssignment, ChannelAssignmentRcd, Transition::BeginRun>();
esGetToken_ = esConsumes<tt::Setup, tt::SetupRcd, edm::Transition::BeginRun>();
// initial ES products
Expand Down Expand Up @@ -316,9 +316,9 @@ L1FPGATrackProducer::L1FPGATrackProducer(edm::ParameterSet const& iConfig)
cms::Exception exception("ConfigurationNotSupported.");
exception.addContext("L1FPGATrackProducer::produce");
if (settings.doMultipleMatches())
exception << "Stroing of TrackBuilder output does not support doMultipleMatches.";
exception << "Storing of TrackBuilder output does not support doMultipleMatches.";
if (settings.removalType() != "")
exception << "Stroing of TrackBuilder output does not support duplicate removal.";
exception << "Storing of TrackBuilder output does not support duplicate removal.";
throw exception;
}
}
Expand Down
3 changes: 2 additions & 1 deletion L1Trigger/TrackFindingTracklet/python/Analyzer_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
from L1Trigger.TrackFindingTracklet.Analyzer_cfi import TrackFindingTrackletAnalyzer_params
from L1Trigger.TrackFindingTracklet.Producer_cfi import TrackFindingTrackletProducer_params

TrackFindingTrackletAnalyzerTBout = cms.EDAnalyzer( 'trklet::AnalyzerTBout', TrackFindingTrackletAnalyzer_params, TrackFindingTrackletProducer_params )
TrackFindingTrackletAnalyzerTracklet = cms.EDAnalyzer( 'trklet::AnalyzerTracklet', TrackFindingTrackletAnalyzer_params, TrackFindingTrackletProducer_params )
TrackFindingTrackletAnalyzerKFin = cms.EDAnalyzer( 'trklet::AnalyzerKFin', TrackFindingTrackletAnalyzer_params, TrackFindingTrackletProducer_params )
TrackFindingTrackletAnalyzerKF = cms.EDAnalyzer( 'trackerTFP::AnalyzerKF', TrackFindingTrackletAnalyzer_params, TrackFindingTrackletProducer_params )
TrackFindingTrackletAnalyzerKFout = cms.EDAnalyzer( 'trklet::AnalyzerKFout', TrackFindingTrackletAnalyzer_params, TrackFindingTrackletProducer_params )
TrackFindingTrackletAnalyzerTT = cms.EDAnalyzer( 'trklet::AnalyzerTT', TrackFindingTrackletAnalyzer_params, TrackFindingTrackletProducer_params )
TrackFindingTrackletAnalyzerTT = cms.EDAnalyzer( 'trklet::AnalyzerTT', TrackFindingTrackletAnalyzer_params, TrackFindingTrackletProducer_params )
1 change: 1 addition & 0 deletions L1Trigger/TrackFindingTracklet/python/Customize_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def fwConfig(process):
process.TTTracksFromTrackletEmulation.DoMultipleMatches = False
process.TTTracksFromTrackletEmulation.StoreTrackBuilderOutput = True
process.ChannelAssignment.UseDuplicateRemoval = False
process.TrackTriggerSetup.KalmanFilter.NumWorker = 8

# configures track finding s/w to behave as a subchain of processing steps
def reducedConfig(process):
Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/TrackFindingTracklet/python/Producer_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
TrackFindingTrackletProducerKF = cms.EDProducer( 'trackerTFP::ProducerKF', TrackFindingTrackletProducer_params )
TrackFindingTrackletProducerTT = cms.EDProducer( 'trklet::ProducerTT', TrackFindingTrackletProducer_params )
TrackFindingTrackletProducerAS = cms.EDProducer( 'trklet::ProducerAS', TrackFindingTrackletProducer_params )
TrackFindingTrackletProducerKFout = cms.EDProducer( 'trklet::ProducerKFout', TrackFindingTrackletProducer_params )
TrackFindingTrackletProducerKFout = cms.EDProducer( 'trklet::ProducerKFout', TrackFindingTrackletProducer_params )
1 change: 1 addition & 0 deletions L1Trigger/TrackFindingTracklet/python/Producer_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

InputTag = cms.InputTag( "TTTracksFromTrackletEmulation", "Level1TTTracks"), #
InputTagDTC = cms.InputTag( "TrackerDTCProducer", "StubAccepted"), #
LabelTBout = cms.string ( "TrackFindingTrackletProducerTBout" ), #
LabelKFin = cms.string ( "TrackFindingTrackletProducerKFin" ), #
LabelKF = cms.string ( "TrackFindingTrackletProducerKF" ), #
LabelTT = cms.string ( "TrackFindingTrackletProducerTT" ), #
Expand Down
Loading

0 comments on commit e7aaa09

Please sign in to comment.