-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46860 from Parsifal-2045/Phase2MuonValidation
Implement Phase 2 Muon HLT validation
- Loading branch information
Showing
15 changed files
with
523 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef SimMuon_MCTruth_Phase2SeedToTrackProducer_h | ||
#define SimMuon_MCTruth_Phase2SeedToTrackProducer_h | ||
|
||
/** \class SeedToTrackProducer | ||
* | ||
* SeedToTrackProducerBase class specialized for Phase 2 | ||
* Muon seeds | ||
* | ||
* \author Luca Ferragina (INFN BO), 2024 | ||
*/ | ||
|
||
#include "SimMuon/MCTruth/plugins/SeedToTrackProducerBase.h" | ||
#include "DataFormats/MuonSeed/interface/L2MuonTrajectorySeedCollection.h" | ||
|
||
typedef SeedToTrackProducerBase<L2MuonTrajectorySeedCollection> Phase2SeedToTrackProducer; | ||
|
||
#endif |
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 |
---|---|---|
@@ -1,67 +1,17 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: SeedToTrackProducer | ||
// Class: SeedToTrackProducer | ||
// | ||
/**\class SeedToTrackProducer SeedToTrackProducer.cc | ||
hugues/SeedToTrackProducer/plugins/SeedToTrackProducer.cc | ||
Description: | ||
*/ | ||
// | ||
// Original Author: Hugues Brun | ||
// Created: Tue, 05 Nov 2013 13:42:04 GMT | ||
// $Id$ | ||
// | ||
// | ||
// system include files | ||
#include <memory> | ||
|
||
// user include files | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
#include "FWCore/Framework/interface/global/EDProducer.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include "MagneticField/Engine/interface/MagneticField.h" | ||
#include "MagneticField/Records/interface/IdealMagneticFieldRecord.h" | ||
|
||
#include "Geometry/CommonDetUnit/interface/GeomDet.h" | ||
#include "Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h" | ||
#include "Geometry/Records/interface/GlobalTrackingGeometryRecord.h" | ||
|
||
#include "TrackingTools/Records/interface/TransientRecHitRecord.h" | ||
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h" | ||
#include "TrackingTools/TransientTrack/interface/TransientTrack.h" | ||
#include "TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHitBuilder.h" | ||
|
||
#include "DataFormats/TrackReco/interface/Track.h" | ||
#include "DataFormats/TrackReco/interface/TrackFwd.h" | ||
#ifndef SimMuon_MCTruth_SeedToTrackProducer_h | ||
#define SimMuon_MCTruth_SeedToTrackProducer_h | ||
|
||
/** \class SeedToTrackProducer | ||
* | ||
* SeedToTrackProducerBase class specialized for Phase 1 | ||
* Muon seeds | ||
* | ||
* \author Luca Ferragina (INFN BO), 2024 | ||
*/ | ||
|
||
#include "SimMuon/MCTruth/plugins/SeedToTrackProducerBase.h" | ||
#include "DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h" | ||
|
||
// | ||
// class declaration | ||
// | ||
|
||
typedef math::Error<5>::type CovarianceMatrix; | ||
|
||
class SeedToTrackProducer : public edm::global::EDProducer<> { | ||
public: | ||
explicit SeedToTrackProducer(const edm::ParameterSet &); | ||
|
||
private: | ||
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const final; | ||
TrajectoryStateOnSurface seedTransientState(const TrajectorySeed &, | ||
const MagneticField &, | ||
const GlobalTrackingGeometry &) const; | ||
// ----------member data --------------------------- | ||
|
||
edm::EDGetTokenT<TrajectorySeedCollection> L2seedsTagT_; | ||
edm::EDGetTokenT<edm::View<TrajectorySeed>> L2seedsTagS_; | ||
typedef SeedToTrackProducerBase<TrajectorySeedCollection> SeedToTrackProducer; | ||
|
||
const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> theMGFieldToken; | ||
const edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord> theTrackingGeometryToken; | ||
const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> theTopoToken; | ||
}; | ||
#endif |
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,70 @@ | ||
#ifndef SimMuon_MCTruth_SeedToTrackProducerBase_h | ||
#define SimMuon_MCTruth_SeedToTrackProducerBase_h | ||
|
||
/** \class SeedToTrackProducerBase | ||
* | ||
* Base class used to produce MuonTracks from seeds | ||
* | ||
* \author Hugues Brun | ||
* Created: Tue, 05 Nov 2013 13:42:04 GMT | ||
* | ||
* Modified to be templated on the seed collection type | ||
* to make it compatible with Phase 2 seeds | ||
* \author Luca Ferragina (INFN BO), 2024 | ||
*/ | ||
|
||
// system include files | ||
#include <memory> | ||
|
||
// user include files | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
#include "FWCore/Framework/interface/global/EDProducer.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include "MagneticField/Engine/interface/MagneticField.h" | ||
#include "MagneticField/Records/interface/IdealMagneticFieldRecord.h" | ||
|
||
#include "Geometry/CommonDetUnit/interface/GeomDet.h" | ||
#include "Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h" | ||
#include "Geometry/Records/interface/GlobalTrackingGeometryRecord.h" | ||
|
||
#include "TrackingTools/Records/interface/TransientRecHitRecord.h" | ||
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h" | ||
#include "TrackingTools/TransientTrack/interface/TransientTrack.h" | ||
#include "TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHitBuilder.h" | ||
|
||
#include "DataFormats/TrackReco/interface/Track.h" | ||
#include "DataFormats/TrackReco/interface/TrackFwd.h" | ||
#include "DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h" | ||
|
||
// | ||
// class declaration | ||
// | ||
|
||
typedef math::Error<5>::type CovarianceMatrix; | ||
|
||
template <typename SeedCollection> | ||
class SeedToTrackProducerBase : public edm::global::EDProducer<> { | ||
public: | ||
explicit SeedToTrackProducerBase(const edm::ParameterSet &); | ||
|
||
private: | ||
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const final; | ||
|
||
using SeedType = typename SeedCollection::value_type; | ||
TrajectoryStateOnSurface seedTransientState(const SeedType &, | ||
const MagneticField &, | ||
const GlobalTrackingGeometry &) const; | ||
// ----------member data --------------------------- | ||
|
||
edm::EDGetTokenT<SeedCollection> L2seedsTagT_; | ||
edm::EDGetTokenT<edm::View<TrajectorySeed>> L2seedsTagS_; | ||
|
||
const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> theMGFieldToken; | ||
const edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord> theTrackingGeometryToken; | ||
const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> theTopoToken; | ||
}; | ||
|
||
#endif |
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.