forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes to timing info for ticlv5 (cms-sw#23)
* Adding missing track variables to the dumper * add configurable local time for UncalibRechits * change the computation of the trackster time * Add track time variables to Dumper * ticlv5: compute candidate time at the vertex * fix warning in TICLCandidate validation * code checks and code format * replace InpuTag with std::string in hgcalValidator_cfi * ticlv5: producer for just merging the two clue3d collections * ticlv5: customise dumper for ticlv5 * ticlv5: fix TICLCandidate constructor * ticlv5: add boundary time and change simTICLCandidate time * ticlv5: remove track quality and fix TICLCandidateProducer * ticlv5: trackster time computation - add the possibiility to compute local trackster time in PatternReconition plugins - fix arguments order in assignPCA * ticlv5: set local time in customiseForTICLv5 * code-format and code-checks * ticlv5: fix tracksters in input to candidates in TICLDumper * change 1 and 1. to 1.f * ticlv5: fix candidates creation --------- Co-authored-by: Felice Pantaleo <felice.pantaleo@cern.ch> Co-authored-by: Wahid Redjeb <wahid.redjeb.wr@gmail.com>
- Loading branch information
1 parent
35d72ad
commit ad32f8f
Showing
36 changed files
with
643 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Author: Felice Pantaleo, Wahid Redjeb, Aurora Perego (CERN) - felice.pantaleo@cern.ch, wahid.redjeb@cern.ch, aurora.perego@cern.ch | ||
// Date: 12/2023 | ||
#include "FWCore/Framework/interface/stream/EDProducer.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" | ||
#include "FWCore/ParameterSet/interface/PluginDescription.h" | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
#include "FWCore/Utilities/interface/ESGetToken.h" | ||
#include "FWCore/Framework/interface/ESHandle.h" | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
#include "DataFormats/HGCalReco/interface/Trackster.h" | ||
|
||
using namespace ticl; | ||
|
||
class MergedTrackstersProducer : public edm::stream::EDProducer<> { | ||
public: | ||
explicit MergedTrackstersProducer(const edm::ParameterSet &ps); | ||
~MergedTrackstersProducer() override{}; | ||
void produce(edm::Event &, const edm::EventSetup &) override; | ||
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions); | ||
|
||
private: | ||
edm::EDGetTokenT<std::vector<Trackster>> egamma_tracksters_token_; | ||
|
||
edm::EDGetTokenT<std::vector<Trackster>> general_tracksters_token_; | ||
}; | ||
|
||
MergedTrackstersProducer::MergedTrackstersProducer(const edm::ParameterSet &ps) | ||
: egamma_tracksters_token_( | ||
consumes<std::vector<ticl::Trackster>>(ps.getParameter<edm::InputTag>("egamma_tracksters"))), | ||
general_tracksters_token_( | ||
consumes<std::vector<ticl::Trackster>>(ps.getParameter<edm::InputTag>("had_tracksters"))) { | ||
produces<std::vector<Trackster>>(); | ||
} | ||
|
||
void MergedTrackstersProducer::produce(edm::Event &evt, const edm::EventSetup &es) { | ||
auto resultTracksters = std::make_unique<std::vector<Trackster>>(); | ||
auto const &egamma_tracksters = evt.get(egamma_tracksters_token_); | ||
auto const &had_tracksters = evt.get(general_tracksters_token_); | ||
for (auto const &eg_trackster : egamma_tracksters) { | ||
resultTracksters->push_back(eg_trackster); | ||
} | ||
for (auto const &had_trackster : had_tracksters) { | ||
resultTracksters->push_back(had_trackster); | ||
} | ||
|
||
evt.put(std::move(resultTracksters)); | ||
} | ||
|
||
void MergedTrackstersProducer::fillDescriptions(edm::ConfigurationDescriptions &descriptions) { | ||
edm::ParameterSetDescription desc; | ||
desc.add<edm::InputTag>("egamma_tracksters", edm::InputTag("ticlTrackstersCLUE3DEM")); | ||
desc.add<edm::InputTag>("had_tracksters", edm::InputTag("ticlTrackstersCLUE3DHAD")); | ||
descriptions.add("mergedTrackstersProducer", desc); | ||
} | ||
|
||
DEFINE_FWK_MODULE(MergedTrackstersProducer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.