forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #8 from dtp2-tpg-am/AM_106X_FactorizeFilterAndAsso…
…ciator AM 10_6_X factorize filter and associator
- Loading branch information
Showing
7 changed files
with
884 additions
and
660 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
#ifndef Phase2L1Trigger_DTTrigger_MuonPathAssociator_cc | ||
#define Phase2L1Trigger_DTTrigger_MuonPathAssociator_cc | ||
|
||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
#include "FWCore/Framework/interface/EDProducer.h" | ||
#include "FWCore/Framework/interface/ESHandle.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/Framework/interface/Run.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include "DataFormats/MuonDetId/interface/DTChamberId.h" | ||
#include "DataFormats/MuonDetId/interface/DTSuperLayerId.h" | ||
#include "DataFormats/MuonDetId/interface/DTLayerId.h" | ||
#include "DataFormats/MuonDetId/interface/DTWireId.h" | ||
#include "DataFormats/DTDigi/interface/DTDigiCollection.h" | ||
//#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhContainer.h" | ||
//#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhDigi.h" | ||
//#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h" | ||
//#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThDigi.h" | ||
// | ||
#include "L1Trigger/DTPhase2Trigger/interface/muonpath.h" | ||
#include "L1Trigger/DTPhase2Trigger/interface/analtypedefs.h" | ||
#include "L1Trigger/DTPhase2Trigger/interface/constants.h" | ||
|
||
#include "Geometry/Records/interface/MuonGeometryRecord.h" | ||
#include "Geometry/DTGeometry/interface/DTGeometry.h" | ||
#include "Geometry/DTGeometry/interface/DTLayer.h" | ||
|
||
#include <iostream> | ||
#include <fstream> | ||
|
||
// =============================================================================== | ||
// Previous definitions and declarations | ||
// =============================================================================== | ||
|
||
// =============================================================================== | ||
// Class declarations | ||
// =============================================================================== | ||
|
||
class MuonPathAssociator { | ||
public: | ||
// Constructors and destructor | ||
MuonPathAssociator(const edm::ParameterSet& pset); | ||
virtual ~MuonPathAssociator(); | ||
|
||
// Main methods | ||
void initialise(const edm::EventSetup& iEventSetup); | ||
void run(edm::Event& iEvent, const edm::EventSetup& iEventSetup, edm::Handle<DTDigiCollection> digis, | ||
std::vector<metaPrimitive> &inMPaths, std::vector<metaPrimitive> &outMPaths); | ||
|
||
|
||
void finish(); | ||
|
||
// Other public methods | ||
|
||
// Public attributes | ||
edm::ESHandle<DTGeometry> dtGeo; | ||
|
||
|
||
private: | ||
|
||
// Private methods | ||
void correlateMPaths(edm::Handle<DTDigiCollection> digis, std::vector<metaPrimitive> &inMPaths, std::vector<metaPrimitive> &outMPaths); | ||
|
||
// void associate(metaPrimitive MP, std::vector<metaPrimitive> &outMP); | ||
|
||
bool hasPosRF(int wh,int sec) { return wh>0 || (wh==0 && sec%4>1); } | ||
|
||
// Private attributes | ||
double dT0_correlate_TP; | ||
double minx_match_2digis; | ||
Bool_t debug; | ||
|
||
//shift | ||
std::string shift_filename; | ||
std::map<int,float> shiftinfo; | ||
|
||
}; | ||
|
||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#ifndef Phase2L1Trigger_DTTrigger_MuonPathFilter_cc | ||
#define Phase2L1Trigger_DTTrigger_MuonPathFilter_cc | ||
|
||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
#include "FWCore/Framework/interface/EDProducer.h" | ||
#include "FWCore/Framework/interface/ESHandle.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/Framework/interface/Run.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include "DataFormats/MuonDetId/interface/DTChamberId.h" | ||
#include "DataFormats/MuonDetId/interface/DTSuperLayerId.h" | ||
#include "DataFormats/MuonDetId/interface/DTLayerId.h" | ||
#include "DataFormats/MuonDetId/interface/DTWireId.h" | ||
#include "DataFormats/DTDigi/interface/DTDigiCollection.h" | ||
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhContainer.h" | ||
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhDigi.h" | ||
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h" | ||
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThDigi.h" | ||
|
||
#include "L1Trigger/DTPhase2Trigger/interface/muonpath.h" | ||
#include "L1Trigger/DTPhase2Trigger/interface/analtypedefs.h" | ||
#include "L1Trigger/DTPhase2Trigger/interface/constants.h" | ||
#include "L1Trigger/DTPhase2Trigger/interface/MuonPathFilter.h" | ||
|
||
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambContainer.h" | ||
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambDigi.h" | ||
|
||
#include "CalibMuon/DTDigiSync/interface/DTTTrigBaseSync.h" | ||
#include "CalibMuon/DTDigiSync/interface/DTTTrigSyncFactory.h" | ||
|
||
#include "L1Trigger/DTSectorCollector/interface/DTSectCollPhSegm.h" | ||
#include "L1Trigger/DTSectorCollector/interface/DTSectCollThSegm.h" | ||
|
||
#include "Geometry/Records/interface/MuonGeometryRecord.h" | ||
#include "Geometry/DTGeometry/interface/DTGeometry.h" | ||
#include "Geometry/DTGeometry/interface/DTLayer.h" | ||
|
||
#include <iostream> | ||
#include <fstream> | ||
|
||
|
||
// =============================================================================== | ||
// Previous definitions and declarations | ||
// =============================================================================== | ||
|
||
// =============================================================================== | ||
// Class declarations | ||
// =============================================================================== | ||
|
||
class MuonPathFilter { | ||
public: | ||
// Constructors and destructor | ||
MuonPathFilter(const edm::ParameterSet& pset); | ||
virtual ~MuonPathFilter(); | ||
|
||
// Main methods | ||
void initialise(const edm::EventSetup& iEventSetup); | ||
void run(edm::Event& iEvent, const edm::EventSetup& iEventSetup, std::vector<metaPrimitive> &inMPath, std::vector<metaPrimitive> &outMPath); | ||
|
||
void finish(); | ||
|
||
// Other public methods | ||
|
||
// Public attributes | ||
int areCousins(metaPrimitive mp1, metaPrimitive mp2); | ||
int rango(metaPrimitive mp); | ||
void printmP(metaPrimitive mP); | ||
|
||
private: | ||
// Private methods | ||
void filterCousins(std::vector<metaPrimitive> &inMPath, std::vector<metaPrimitive> &outMPath); | ||
void filterTanPhi(std::vector<metaPrimitive> &inMPath, std::vector<metaPrimitive> &outMPath); | ||
|
||
|
||
// Private attributes | ||
Bool_t debug; | ||
bool filter_cousins; | ||
double tanPhiTh; | ||
}; | ||
|
||
|
||
#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.