79 edm::LogWarning(
"L1TPhase2OuterTrackerTkMET") <<
"cant find tracks" << std::endl;
82 if (!L1VertexHandle.
isValid()) {
83 edm::LogWarning(
"L1TPhase2OuterTrackerTkMET") <<
"cant find vertex" << std::endl;
92 int nTracks_counter = 0;
94 float zVTX = L1VertexHandle->begin()->zvertex();
95 unsigned int tkCnt = 0;
96 for (
const auto& trackIter : *TTTrackHandle) {
98 float pt = tempTrackPtr->momentum().perp();
99 float phi = tempTrackPtr->momentum().phi();
100 float eta = tempTrackPtr->momentum().eta();
102 theStubs = trackIter.getStubRefs();
103 int nstubs = (
int)theStubs.size();
105 float chi2dof = tempTrackPtr->chi2Red();
106 float bendchi2 = tempTrackPtr->stubPtConsistency();
107 float z0 = tempTrackPtr->z0();
120 for (
unsigned int istub = 0; istub < (
unsigned int)theStubs.size(); istub++) {
121 DetId detId(theStubs.at(istub)->getDetId());
133 if (fabs(
eta) >= 0 && fabs(
eta) < 0.7)
135 else if (fabs(
eta) >= 0.7 && fabs(
eta) < 1.0)
137 else if (fabs(
eta) >= 1.0 && fabs(
eta) < 1.2)
139 else if (fabs(
eta) >= 1.2 && fabs(
eta) < 1.6)
141 else if (fabs(
eta) >= 1.6 && fabs(
eta) < 2.0)
143 else if (fabs(
eta) >= 2.0 && fabs(
eta) <= 2.4)
167 float et =
sqrt(sumPx * sumPx + sumPy * sumPy);
168 double etmiss_PU =
sqrt(sumPx_PU * sumPx_PU + sumPy_PU * sumPy_PU);
T getParameter(std::string const &) const
unsigned int tobLayer(const DetId &id) const
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
MonitorElement * Track_Chi2Dof
Sin< T >::type sin(const T &t)
MonitorElement * Track_NPSstubs
MonitorElement * Track_Eta
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
edm::EDGetTokenT< std::vector< TTTrack< Ref_Phase2TrackerDigi_ > > > ttTrackToken_
std::string topFolderName_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * TkMET_PU
Cos< T >::type cos(const T &t)
MonitorElement * TkMET_QualityCuts
L1TPhase2OuterTrackerTkMET(const edm::ParameterSet &)
bool getData(T &iHolder) const
static constexpr auto TOB
Class to store the L1 Track Trigger stubs.
MonitorElement * Track_BendChi2
edm::EDGetTokenT< l1t::TkPrimaryVertexCollection > pvToken
MonitorElement * Track_NStubs
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * Track_Pt
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > m_topoToken
unsigned int tidRing(const DetId &id) const
Log< level::Warning, false > LogWarning
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
static constexpr auto TID
~L1TPhase2OuterTrackerTkMET() override
MonitorElement * Track_VtxZ
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)