Skip to content

Commit 58df6f8

Browse files
committed
Version with comments, ExtWheels exception and t0phi
1 parent 974b39f commit 58df6f8

File tree

3 files changed

+195
-93
lines changed

3 files changed

+195
-93
lines changed

L1Trigger/DTTriggerPhase2/interface/MPThetaMatching.h

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MPThetaMatching : public MPFilter {
1818
public:
1919
// Constructors and destructor
2020
MPThetaMatching(const edm::ParameterSet &pset);
21-
~MPThetaMatching() override = default;
21+
~MPThetaMatching() override; // = default;
2222

2323
// Main methods
2424
void initialise(const edm::EventSetup &iEventSetup) override;
@@ -30,11 +30,11 @@ class MPThetaMatching : public MPFilter {
3030
const edm::EventSetup &iEventSetup,
3131
std::vector<cmsdt::metaPrimitive> &allMPaths,
3232
std::vector<cmsdt::metaPrimitive> &inMPaths,
33-
std::vector<cmsdt::metaPrimitive> &outMPaths) override {};
33+
std::vector<cmsdt::metaPrimitive> &outMPaths) override{};
3434
void run(edm::Event &iEvent,
3535
const edm::EventSetup &iEventSetup,
3636
MuonPathPtrs &inMPath,
37-
MuonPathPtrs &outMPath) override {};
37+
MuonPathPtrs &outMPath) override{};
3838

3939
void finish() override;
4040

@@ -48,12 +48,14 @@ class MPThetaMatching : public MPFilter {
4848
float zFE[5] = {-658.9, -393.3, 126.4, 393.3, 658.9}; //cm
4949
float xFE[3] = {218 / 2., 266.8 / 2., 315 / 2.}; //cm
5050
float ZRES_CONV = 65536. / 1500;
51+
int totOUTtheta, totINtheta, totOUTphi, totINphi;
52+
int nothetaOUTphi, st4OUTphi, hqOUTphi, nophiOUTtheta;
5153

5254
private:
5355
// Private methods
5456
std::vector<cmsdt::metaPrimitive> filter(std::vector<cmsdt::metaPrimitive> inMPs,
55-
// int th_option,
56-
// int th_quality,
57+
// int th_option,
58+
// int th_quality,
5759
double shift_back);
5860

5961
bool isThereThetaMPInChamber(int sector, int wheel, int station, std::vector<cmsdt::metaPrimitive> thetaMPs);
@@ -64,8 +66,11 @@ class MPThetaMatching : public MPFilter {
6466
const std::tuple<cmsdt::metaPrimitive, cmsdt::metaPrimitive, float> &b) {
6567
return std::get<2>(a) < std::get<2>(b);
6668
};
67-
void orderAndSave(std::vector<std::tuple<cmsdt::metaPrimitive, cmsdt::metaPrimitive, float>> deltaTimePosPhiCands,
68-
std::vector<cmsdt::metaPrimitive> *outMPaths, std::vector<cmsdt::metaPrimitive> *savedThetas);
69+
void orderAndSave(std::vector<std::tuple<cmsdt::metaPrimitive, cmsdt::metaPrimitive, float>> deltaTimePosPhiCands,
70+
std::vector<cmsdt::metaPrimitive> *outMPaths,
71+
std::vector<cmsdt::metaPrimitive> *savedThetas);
72+
73+
//float computePosRefX(cmsdt::metaPrimitive);
6974

7075
// Private attributes
7176
const bool debug_;

L1Trigger/DTTriggerPhase2/python/dtTriggerPhase2PrimitiveDigis_cfi.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
import FWCore.ParameterSet.Config as cms
23

34
from L1TriggerConfig.DTTPGConfigProducers.L1DTTPGConfigFromDB_cff import *
@@ -24,9 +25,9 @@
2425
scenario = cms.int32(0), #0 for mc, 1 for data, 2 for slice test
2526
df_extended = cms.int32(0), # DF: 0 for standard, 1 for extended, 2 for both
2627
co_option = cms.int32(1), # coincidence w.r.t. : -1 = off, 0 = co all, 1 = co phi, 2 = co theta
27-
co_quality = cms.int32(1), # quality cut (>X) for coincidence TP
28-
th_option = cms.int32(1), # save 1st, 2nd, 3rd,... closest phi TP to theta TP. 0 disables filtering, i.e. saves all
29-
th_quality = cms.int32(5), # quality cut (>X) for Theta matching: Phi TPs above this quality are not filtered
28+
co_quality = cms.int32(1), # quality cut (>X) for coincidence TP: request TPs to be above this cut
29+
th_option = cms.int32(1), # save 1st, 2nd,... closest Phi-Theta pair. 0 disables filtering (saves all)
30+
th_quality = cms.int32(2), # quality cut (>X) for Theta matching: Phi TPs above are not filtered
3031
max_primitives = cms.int32(999),
3132

3233
output_mixer = cms.bool(False),

0 commit comments

Comments
 (0)