-
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.
- Loading branch information
Showing
8 changed files
with
313 additions
and
294 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#ifndef DataFormatsL1TCorrelator_TkTriplet_h | ||
#define DataFormatsL1TCorrelator_TkTriplet_h | ||
|
||
// Original author: G Karathanasis, | ||
// Original author: G Karathanasis, | ||
// [email protected], CU Boulder | ||
// -*- C++ -*- | ||
// Package: L1Trigger | ||
// Class : TkTriplet | ||
// Description: Class to store the output of track-triplet producer, which used by L1T to create X->3h candidates (like W->3pi). | ||
// Description: Class to store the output of track-triplet producer, which used by L1T to create X->3h candidates (like W->3pi). | ||
|
||
#include "DataFormats/L1Trigger/interface/L1Candidate.h" | ||
#include "DataFormats/Common/interface/Ref.h" | ||
|
@@ -24,13 +24,16 @@ namespace l1t { | |
TkTriplet(); | ||
|
||
TkTriplet(const LorentzVector& p4, int charge); | ||
TkTriplet(const LorentzVector& p4, int charge, | ||
double pair_mass_max, double pair_mass_min, | ||
double pair_dz_max, double pair_dz_min, | ||
TkTriplet(const LorentzVector& p4, | ||
int charge, | ||
double pair_mass_max, | ||
double pair_mass_min, | ||
double pair_dz_max, | ||
double pair_dz_min, | ||
std::vector<edm::Ptr<L1TTTrackType>> trkPtrList); | ||
|
||
~TkTriplet() override {}; | ||
~TkTriplet() override{}; | ||
|
||
int getTripletCharge() const; | ||
double getPairMassMax() const; | ||
double getPairMassMin() const; | ||
|
@@ -43,10 +46,9 @@ namespace l1t { | |
int charge_; | ||
double pair_mass_max_; | ||
double pair_mass_min_; | ||
double pair_dz_max_; | ||
double pair_dz_max_; | ||
double pair_dz_min_; | ||
std::vector<edm::Ptr<L1TTTrackType>> trkPtrList_; | ||
|
||
}; | ||
} // namespace l1t | ||
|
||
|
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,7 +1,7 @@ | ||
#ifndef DataFormatsL1TCorrelator_TkTripletFwd_h | ||
#define DataFormatsL1TCorrelator_TkTripletFwd_h | ||
|
||
// Original author: G Karathanasis, | ||
// Original author: G Karathanasis, | ||
// [email protected], CU Boulder | ||
// -*- C++ -*- | ||
// | ||
|
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,35 +1,27 @@ | ||
// Original Author: George Karathanasis, | ||
// [email protected], CU Boulder | ||
// [email protected], CU Boulder | ||
// -*- C++ -*- | ||
// Package: L1Trigger | ||
// Class : TkTriplet | ||
// Description: Class to store the output of track-triplet producer, which used by L1T to create X->3h candidates (like W->3pi). | ||
// Description: Class to store the output of track-triplet producer, which used by L1T to create X->3h candidates (like W->3pi). | ||
|
||
#include "DataFormats/L1TCorrelator/interface/TkTriplet.h" | ||
|
||
using namespace l1t; | ||
|
||
|
||
TkTriplet::TkTriplet() | ||
: charge_(-99.), | ||
pair_mass_max_(-99), | ||
pair_mass_min_(-99), | ||
pair_dz_max_(-99), | ||
pair_dz_min_(-99) {} | ||
|
||
: charge_(-99.), pair_mass_max_(-99), pair_mass_min_(-99), pair_dz_max_(-99), pair_dz_min_(-99) {} | ||
|
||
TkTriplet::TkTriplet(const LorentzVector& p4, int charge) | ||
: L1Candidate(p4), | ||
charge_(charge), | ||
pair_mass_max_(-99), | ||
pair_mass_min_(-99), | ||
pair_dz_max_(-99), | ||
pair_dz_min_(-99){} | ||
|
||
TkTriplet::TkTriplet(const LorentzVector& p4, int charge, | ||
double pair_mass_max, double pair_mass_min, | ||
double pair_dz_max, double pair_dz_min, | ||
std::vector<edm::Ptr<L1TTTrackType>> trkPtrList ) | ||
: L1Candidate(p4), charge_(charge), pair_mass_max_(-99), pair_mass_min_(-99), pair_dz_max_(-99), pair_dz_min_(-99) {} | ||
|
||
TkTriplet::TkTriplet(const LorentzVector& p4, | ||
int charge, | ||
double pair_mass_max, | ||
double pair_mass_min, | ||
double pair_dz_max, | ||
double pair_dz_min, | ||
std::vector<edm::Ptr<L1TTTrackType>> trkPtrList) | ||
: L1Candidate(p4), | ||
charge_(charge), | ||
pair_mass_max_(pair_mass_max), | ||
|
@@ -38,28 +30,17 @@ TkTriplet::TkTriplet(const LorentzVector& p4, int charge, | |
pair_dz_min_(pair_dz_min), | ||
trkPtrList_(trkPtrList) {} | ||
|
||
|
||
int TkTriplet::bx() const { | ||
// in the producer TkJetProducer.cc, we keep only jets with bx = 0 | ||
return 0; | ||
} | ||
|
||
int TkTriplet::getTripletCharge () const{ | ||
return charge_; | ||
} | ||
int TkTriplet::getTripletCharge() const { return charge_; } | ||
|
||
double TkTriplet::getPairMassMax () const{ | ||
return pair_mass_max_; | ||
} | ||
double TkTriplet::getPairMassMax() const { return pair_mass_max_; } | ||
|
||
double TkTriplet::getPairMassMin () const{ | ||
return pair_mass_min_; | ||
} | ||
double TkTriplet::getPairMassMin() const { return pair_mass_min_; } | ||
|
||
double TkTriplet::getPairDzMax () const{ | ||
return pair_dz_max_; | ||
} | ||
double TkTriplet::getPairDzMax() const { return pair_dz_max_; } | ||
|
||
double TkTriplet::getPairDzMin () const{ | ||
return pair_dz_min_; | ||
} | ||
double TkTriplet::getPairDzMin() const { return pair_dz_min_; } |
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.