54 maxPt_(iConfig.getParameter<double>(
"maxPt")),
55 highPtTracks_(iConfig.getParameter<
int>(
"highPtTracks")),
56 debug_(iConfig.getParameter<
bool>(
"debug")) {
71 if (!L1TTTrackHandle.
isValid()) {
72 LogError(
"L1TrackerEtMissProducer") <<
"\nWarning: L1TTTrackCollection not found in the event. Exit\n";
76 if (!L1TTTrackAssociatedHandle.
isValid()) {
77 LogError(
"L1TrackerEtMissProducer") <<
"\nWarning: L1TTTrackAssociatedCollection not found in the event. Exit\n";
88 int numqualitytracks = 0;
89 int numassoctracks = 0;
91 for (
const auto&
track : *L1TTTrackHandle) {
92 float pt =
track->momentum().perp();
104 if (
std::find(L1TTTrackAssociatedHandle->begin(), L1TTTrackAssociatedHandle->end(),
track) !=
105 L1TTTrackAssociatedHandle->end()) {
117 float et =
sqrt(sumPx * sumPx + sumPy * sumPy);
118 double etphi = atan2(sumPy, sumPx);
125 <<
"Px: " << sumPx <<
"| Py: " << sumPy <<
"\n" 128 <<
"MET: " <<
et <<
"| Phi: " << etphi <<
"\n" 130 <<
"# Tracks after quality cuts: " << L1TTTrackHandle->size() <<
"\n" 131 <<
"# Tacks after additional highPt Cuts: " << numqualitytracks <<
"\n" 132 <<
"# Tracks associated to vertex: " << numassoctracks <<
"\n" 133 <<
"========================================================" edm::RefVector< L1TTTrackCollectionType > L1TTTrackRefCollectionType
std::vector< TkEtMiss > TkEtMissCollection
Log< level::Info, true > LogVerbatim
std::vector< L1TTTrackType > L1TTTrackCollectionType
const edm::EDGetTokenT< L1TTTrackRefCollectionType > trackToken_
Sin< T >::type sin(const T &t)
const std::string L1MetCollectionName
Log< level::Error, false > LogError
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< reco::MET > METCollection
collection of MET objects
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
TTTrack< Ref_Phase2TrackerDigi_ > L1TTTrackType
Cos< T >::type cos(const T &t)
#define DEFINE_FWK_MODULE(type)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const edm::EDGetTokenT< L1TTTrackRefCollectionType > vtxAssocTrackToken_
Class to store the L1 Track Trigger tracks.
L1TrackerEtMissProducer(const edm::ParameterSet &)