-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new EXO regional tracking iteration.
- Loading branch information
Showing
30 changed files
with
863 additions
and
29 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
Configuration/ProcessModifiers/python/displacedRegionalTracking_cff.py
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,5 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
# This modifier is for activating displacedRegionalStep step for phase1 tracking | ||
|
||
displacedRegionalTracking = cms.Modifier() |
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,11 @@ | ||
<use name="DataFormats/Candidate"/> | ||
<use name="DataFormats/Common"/> | ||
<use name="DataFormats/GeometrySurface"/> | ||
<use name="DataFormats/GeometryVector"/> | ||
<use name="DataFormats/Math"/> | ||
<use name="TrackingTools/GeomPropagators"/> | ||
<use name="TrackingTools/TrajectoryState"/> | ||
<use name="TrackingTools/TransientTrack"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |
Binary file added
BIN
+691 KB
...isplacedRegionalTracking/data/FullDataWithR_Phi-64-126-256_16-32-64_F-256-128-64_Model.pb
Binary file not shown.
Binary file added
BIN
+409 KB
...DisplacedRegionalTracking/data/FullDataWithR_Phi-64-128-256_16-32-64_F-128-64-32_Model.pb
Binary file not shown.
Binary file added
BIN
+688 KB
...ker/DisplacedRegionalTracking/data/FullData_Phi-64-126-256_16-32-64_F-256-128-64_Model.pb
Binary file not shown.
Binary file added
BIN
+408 KB
...cker/DisplacedRegionalTracking/data/FullData_Phi-64-128-256_16-32-64_F-128-64-32_Model.pb
Binary file not shown.
Binary file added
BIN
+674 KB
...racker/DisplacedRegionalTracking/data/MS-15_Phi-64-128-256_16-32-64_F-256-128-32_Model.pb
Binary file not shown.
66 changes: 66 additions & 0 deletions
66
RecoTracker/DisplacedRegionalTracking/interface/DisplacedVertexCluster.h
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,66 @@ | ||
#ifndef RecoTracker_DisplacedRegionalTracking_DisplacedVertexCluster_h | ||
#define RecoTracker_DisplacedRegionalTracking_DisplacedVertexCluster_h | ||
|
||
#include <cmath> | ||
#include <limits> | ||
#include <list> | ||
#include <utility> | ||
|
||
#include "DataFormats/Common/interface/View.h" | ||
#include "DataFormats/Candidate/interface/VertexCompositeCandidate.h" | ||
#include "DataFormats/Math/interface/Vector3D.h" | ||
|
||
class DisplacedVertexCluster; | ||
typedef std::list<DisplacedVertexCluster>::iterator DisplacedVertexClusterItr; | ||
|
||
class DisplacedVertexCluster { | ||
public: | ||
static constexpr double kInvalidDouble = std::numeric_limits<double>::quiet_NaN(); | ||
|
||
DisplacedVertexCluster() | ||
: valid_(false), rParam2_(kInvalidDouble), sumOfCenters_(0.0, 0.0, 0.0), centerOfMass_(0.0, 0.0, 0.0) {} | ||
|
||
DisplacedVertexCluster(const edm::View<reco::VertexCompositeCandidate> &, const unsigned, const double); | ||
|
||
~DisplacedVertexCluster() { constituents_.clear(); } | ||
|
||
bool valid() const { return valid_; } | ||
double rParam2() const { return rParam2_; } | ||
double rParam() const { return sqrt(rParam2()); } | ||
const std::vector<const reco::VertexCompositeCandidate *> &constituents() const { return constituents_; } | ||
const reco::VertexCompositeCandidate *constituent(const unsigned i) const { return constituents_.at(i); } | ||
unsigned nConstituents() const { return constituents_.size(); } | ||
const math::XYZVector &sumOfCenters() const { return sumOfCenters_; } | ||
const math::XYZVector ¢erOfMass() const { return centerOfMass_; } | ||
|
||
double vx() const { return centerOfMass().x(); } | ||
double vy() const { return centerOfMass().y(); } | ||
double vz() const { return centerOfMass().z(); } | ||
|
||
void merge(const DisplacedVertexCluster &other); | ||
void setInvalid() { valid_ = false; } | ||
|
||
// struct representing the distance between two DisplacedVertexCluster objects | ||
struct Distance { | ||
public: | ||
Distance(DisplacedVertexClusterItr entity0, DisplacedVertexClusterItr entity1) : entities_(entity0, entity1) {} | ||
double distance2() const; | ||
double distance() const { return sqrt(distance2()); } | ||
std::pair<DisplacedVertexClusterItr, DisplacedVertexClusterItr> &entities() { return entities_; } | ||
const std::pair<DisplacedVertexClusterItr, DisplacedVertexClusterItr> &entities() const { return entities_; } | ||
|
||
private: | ||
std::pair<DisplacedVertexClusterItr, DisplacedVertexClusterItr> entities_; | ||
}; | ||
|
||
typedef std::list<Distance>::iterator DistanceItr; | ||
|
||
private: | ||
bool valid_; | ||
double rParam2_; | ||
std::vector<const reco::VertexCompositeCandidate *> constituents_; | ||
math::XYZVector sumOfCenters_; | ||
math::XYZVector centerOfMass_; | ||
}; | ||
|
||
#endif |
11 changes: 11 additions & 0 deletions
11
RecoTracker/DisplacedRegionalTracking/plugins/BuildFile.xml
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,11 @@ | ||
<use name="DataFormats/BeamSpot"/> | ||
<use name="DataFormats/Candidate"/> | ||
<use name="DataFormats/Common"/> | ||
<use name="DataFormats/Math"/> | ||
<use name="DataFormats/VertexReco"/> | ||
<use name="FWCore/Framework"/> | ||
<use name="FWCore/ParameterSet"/> | ||
<use name="FWCore/Utilities"/> | ||
<use name="PhysicsTools/TensorFlow"/> | ||
<use name="RecoTracker/DisplacedRegionalTracking"/> | ||
<flags EDM_PLUGIN="1"/> |
Oops, something went wrong.