-
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 #32813 from eyigitba/EMTF_add_displaced_muons_Feb21
EMTF Emulator Update to Add Displaced Muon pT & Dxy Assignment
- Loading branch information
Showing
16 changed files
with
421 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef L1TMuonEndCap_PtAssignmentEngineDxy_h | ||
#define L1TMuonEndCap_PtAssignmentEngineDxy_h | ||
|
||
#include <cstdint> | ||
#include <cstdlib> | ||
#include <cmath> | ||
#include <string> | ||
#include <vector> | ||
#include <array> | ||
|
||
#include "L1Trigger/L1TMuonEndCap/interface/Common.h" | ||
#include "L1Trigger/L1TMuonEndCap/interface/PtAssignmentEngineAux2017.h" | ||
#include "PhysicsTools/TensorFlow/interface/TensorFlow.h" | ||
#include "FWCore/ParameterSet/interface/FileInPath.h" | ||
|
||
class PtAssignmentEngineDxy { | ||
public: | ||
explicit PtAssignmentEngineDxy(); | ||
virtual ~PtAssignmentEngineDxy(); | ||
|
||
void configure(int verbose, const std::string pbFileNameDxy); | ||
|
||
const PtAssignmentEngineAux2017& aux() const; | ||
|
||
virtual void calculate_pt_dxy(const EMTFTrack& track, emtf::Feature& feature, emtf::Prediction& prediction) const; | ||
|
||
virtual void preprocessing_dxy(const EMTFTrack& track, emtf::Feature& feature) const; | ||
|
||
virtual void call_tensorflow_dxy(const emtf::Feature& feature, emtf::Prediction& prediction) const; | ||
|
||
protected: | ||
int verbose_; | ||
|
||
tensorflow::GraphDef* graphDefDxy_; | ||
tensorflow::Session* sessionDxy_; | ||
std::string pbFileNameDxy_; | ||
std::string pbFilePathDxy_; | ||
std::string inputNameDxy_; | ||
std::vector<std::string> outputNamesDxy_; | ||
}; | ||
|
||
#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
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
Oops, something went wrong.