#include "L1Trigger/L1TMuonEndCap/interface/EmulatorClasses.h"
#include "L1Trigger/L1TMuonEndCap/plugins/L1TMuonEndCapTrackProducer.h"
#include "L1Trigger/L1TMuonEndCap/interface/Forest.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "L1Trigger/L1TMuonEndCap/interface/getMaxPt.h"
#include "Geometry/CSCGeometry/interface/CSCGeometry.h"
#include "Geometry/Records/interface/MuonGeometryRecord.h"
#include "L1Trigger/CSCCommonTrigger/interface/CSCTriggerGeometry.h"
#include <fstream>
Go to the source code of this file.
Functions | |
float | CalculatePt (L1TMuon::InternalTrack track, const edm::EventSetup &es) |
float | getCLCT (float clct) |
float | getdEta (float deta) |
float | getdPhiFromBin (int dPhiBin, int bits, int max=512) |
float | getEta (float eta, int bits=5) |
float | getEtafromBin (int etaBin, int bits=5) |
int | getEtaInt (float eta, int bits=5) |
float | getNLBdPhi (float dPhi, int bits, int max=512) |
int | getNLBdPhiBin (float dPhi, int bits, int max=512) |
float | getPt (unsigned long Address) |
void | makeLUT () |
Variables | |
const char * | dirSchemeC = "L1Trigger/L1TMuon/data/emtf_luts/ModeVariables/trees" |
int | doComp = true |
const int | dPhiNLBMap_5bit [32] |
const int | dPhiNLBMap_5bit_256Max [32] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 23, 25, 28, 31, 34, 39, 46, 55, 68, 91, 136} |
const int | dPhiNLBMap_6bit_256Max [64] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 40, 42, 43, 45, 47, 49, 51, 53, 56, 58, 61, 65, 68, 73, 78, 83, 89, 97, 106, 116, 129, 145, 166, 193, 232} |
const int | dPhiNLBMap_7bit [128] |
const int | dPhiNLBMap_7bit_256Max [128] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 82, 83, 84, 86, 87, 88, 90, 91, 93, 94, 96, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 118, 120, 123, 125, 128, 131, 134, 138, 141, 145, 149, 153, 157, 161, 166, 171, 176, 182, 188, 194, 201, 209, 217, 225, 235, 245} |
const int | dPhiNLBMap_7bit_512Max [256] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 83, 84, 86, 87, 89, 91, 92, 94, 96, 98, 100, 102, 105, 107, 110, 112, 115, 118, 121, 124, 127, 131, 135, 138, 143, 147, 152, 157, 162, 168, 174, 181, 188, 196, 204, 214, 224, 235, 247, 261, 276, 294, 313, 336, 361, 391, 427, 470} |
const int | dPhiNLBMap_8bit [256] |
const int | dPhiNLBMap_8bit_512Max [256] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 164, 165, 166, 167, 168, 170, 171, 172, 174, 175, 176, 178, 179, 180, 182, 183, 185, 186, 188, 190, 191, 193, 194, 196, 198, 200, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 228, 230, 232, 235, 237, 240, 242, 245, 248, 250, 253, 256, 259, 262, 265, 268, 272, 275, 278, 282, 285, 289, 293, 297, 300, 305, 309, 313, 317, 322, 327, 331, 336, 341, 347, 352, 358, 363, 369, 375, 382, 388, 395, 402, 410, 417, 425, 433, 442, 450, 460, 469, 479, 490, 500} |
int | makeLUT_ = false |
int | ModeVariables_Scheme3 [13][6] |
const Double_t | ptscale [31] |
int | useCorr = false |
int | whichScheme = 3 |
float CalculatePt | ( | L1TMuon::InternalTrack | track, |
const edm::EventSetup & | es | ||
) |
add this bobby
add this bobby
add this bobby
Mode Variables ////
add this bobby
add this bobby
add this bobby
add this bobby
add this bobby
add this bobby
add this bobby
add this bobby
add this bobby
Definition at line 958 of file PtAssignment.h.
References gather_cfg::cout, doComp, eta, EnergyCorrector::etas, edm::EventSetup::get(), getCLCT(), getdEta(), getEta(), getEtaInt(), getNLBdPhi(), getNLBdPhiBin(), getPt(), L1TMuon::InternalTrack::getStubs(), glc, i, dqm-mbProfile::log, makeLUT(), makeLUT_, alignBH_cfg::mode, L1TMuon::InternalTrack::phis, alignCSCRings::s, findQualityFiles::size, funct::tan(), L1TMuon::InternalTrack::theta, GeomDet::toGlobal(), reco::tau::disc::TrackEta(), x(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by L1TMuonEndCapTrackProducer::produce().
float getCLCT | ( | float | clct | ) |
float getdEta | ( | float | deta | ) |
float getdPhiFromBin | ( | int | dPhiBin, |
int | bits, | ||
int | max = 512 |
||
) |
Definition at line 261 of file PtAssignment.h.
References bits, dPhiNLBMap_5bit_256Max, dPhiNLBMap_6bit_256Max, dPhiNLBMap_7bit_256Max, dPhiNLBMap_7bit_512Max, dPhiNLBMap_8bit_512Max, and bookConverter::max.
Referenced by getPt().
float getEta | ( | float | eta, |
int | bits = 5 |
||
) |
Definition at line 364 of file PtAssignment.h.
References bits, and edm::shift.
Referenced by MuonTrackValidator::analyze(), CalculatePt(), and GflashEMShowerProfile::getDistanceToOut().
float getEtafromBin | ( | int | etaBin, |
int | bits = 5 |
||
) |
Definition at line 395 of file PtAssignment.h.
References bits, and edm::shift.
Referenced by getPt().
int getEtaInt | ( | float | eta, |
int | bits = 5 |
||
) |
Definition at line 380 of file PtAssignment.h.
References bits, and edm::shift.
Referenced by CalculatePt(), and getPt().
float getNLBdPhi | ( | float | dPhi, |
int | bits, | ||
int | max = 512 |
||
) |
Definition at line 126 of file PtAssignment.h.
References bits, dPhiNLBMap_5bit_256Max, dPhiNLBMap_6bit_256Max, dPhiNLBMap_7bit_256Max, dPhiNLBMap_7bit_512Max, dPhiNLBMap_8bit_512Max, and bookConverter::max.
Referenced by CalculatePt().
int getNLBdPhiBin | ( | float | dPhi, |
int | bits, | ||
int | max = 512 |
||
) |
Definition at line 197 of file PtAssignment.h.
References bits, dPhiNLBMap_5bit_256Max, dPhiNLBMap_6bit_256Max, dPhiNLBMap_7bit_256Max, dPhiNLBMap_7bit_512Max, dPhiNLBMap_8bit_512Max, and bookConverter::max.
Referenced by CalculatePt().
float getPt | ( | unsigned long | Address | ) |
Mode Variables ////
Definition at line 410 of file PtAssignment.h.
References gather_cfg::cout, TauDecayModes::dec, dir, dirSchemeC, eta, EnergyCorrector::etas, event(), f, getdPhiFromBin(), getEtafromBin(), getEtaInt(), getMaxPT(), i, j, alignBH_cfg::mode, ModeVariables_Scheme3, Forest::predictEvents(), findQualityFiles::size, contentValuesCheck::ss, reco::tau::disc::TrackEta(), useCorr, whichScheme, and detailsBasic3DVector::y.
Referenced by MuonTrackValidator::analyze(), CalculatePt(), and makeLUT().
void makeLUT | ( | ) |
Definition at line 862 of file PtAssignment.h.
References getPt(), i, RPCpg::pts, and ptscale.
Referenced by CalculatePt().
const char* dirSchemeC = "L1Trigger/L1TMuon/data/emtf_luts/ModeVariables/trees" |
Definition at line 92 of file PtAssignment.h.
Referenced by getPt().
int doComp = true |
Definition at line 27 of file PtAssignment.h.
Referenced by CalculatePt().
const int dPhiNLBMap_5bit[32] |
Definition at line 111 of file PtAssignment.h.
Referenced by getAddress().
const int dPhiNLBMap_5bit_256Max[32] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 23, 25, 28, 31, 34, 39, 46, 55, 68, 91, 136} |
Definition at line 98 of file PtAssignment.h.
Referenced by getdPhiFromBin(), getNLBdPhi(), and getNLBdPhiBin().
const int dPhiNLBMap_6bit_256Max[64] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 40, 42, 43, 45, 47, 49, 51, 53, 56, 58, 61, 65, 68, 73, 78, 83, 89, 97, 106, 116, 129, 145, 166, 193, 232} |
Definition at line 100 of file PtAssignment.h.
Referenced by getdPhiFromBin(), getNLBdPhi(), and getNLBdPhiBin().
const int dPhiNLBMap_7bit[128] |
Definition at line 116 of file PtAssignment.h.
Referenced by getAddress().
const int dPhiNLBMap_7bit_256Max[128] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 82, 83, 84, 86, 87, 88, 90, 91, 93, 94, 96, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 118, 120, 123, 125, 128, 131, 134, 138, 141, 145, 149, 153, 157, 161, 166, 171, 176, 182, 188, 194, 201, 209, 217, 225, 235, 245} |
Definition at line 102 of file PtAssignment.h.
Referenced by getdPhiFromBin(), getNLBdPhi(), and getNLBdPhiBin().
const int dPhiNLBMap_7bit_512Max[256] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 83, 84, 86, 87, 89, 91, 92, 94, 96, 98, 100, 102, 105, 107, 110, 112, 115, 118, 121, 124, 127, 131, 135, 138, 143, 147, 152, 157, 162, 168, 174, 181, 188, 196, 204, 214, 224, 235, 247, 261, 276, 294, 313, 336, 361, 391, 427, 470} |
Definition at line 106 of file PtAssignment.h.
Referenced by getdPhiFromBin(), getNLBdPhi(), and getNLBdPhiBin().
const int dPhiNLBMap_8bit[256] |
Definition at line 121 of file PtAssignment.h.
const int dPhiNLBMap_8bit_512Max[256] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 164, 165, 166, 167, 168, 170, 171, 172, 174, 175, 176, 178, 179, 180, 182, 183, 185, 186, 188, 190, 191, 193, 194, 196, 198, 200, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 228, 230, 232, 235, 237, 240, 242, 245, 248, 250, 253, 256, 259, 262, 265, 268, 272, 275, 278, 282, 285, 289, 293, 297, 300, 305, 309, 313, 317, 322, 327, 331, 336, 341, 347, 352, 358, 363, 369, 375, 382, 388, 395, 402, 410, 417, 425, 433, 442, 450, 460, 469, 479, 490, 500} |
Definition at line 108 of file PtAssignment.h.
Referenced by getdPhiFromBin(), getNLBdPhi(), and getNLBdPhiBin().
int makeLUT_ = false |
Definition at line 28 of file PtAssignment.h.
Referenced by CalculatePt().
int ModeVariables_Scheme3[13][6] |
Definition at line 75 of file PtAssignment.h.
Referenced by getPt().
const Double_t ptscale[31] |
Definition at line 20 of file PtAssignment.h.
Referenced by L1TGMT::bookHistograms(), makeLUT(), and processPrediction().
int useCorr = false |
Definition at line 26 of file PtAssignment.h.
Referenced by getPt(), and L1RCTParametersOnlineProd::newObject().
int whichScheme = 3 |
Definition at line 30 of file PtAssignment.h.
Referenced by getPt().