Skip to content

Commit b0ca810

Browse files
committed
Changes from D. Morat to coincidence exception on external chambers
1 parent c507605 commit b0ca810

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

L1Trigger/DTTriggerPhase2/interface/MPCoincidenceFilter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ class MPCoincidenceFilter : public MPFilter {
7272
std::vector<cmsdt::metaPrimitive> allMPs,
7373
int co_option,
7474
int co_quality,
75+
int co_wh2option,
7576
double shift_back);
7677

7778
// Private attributes
7879
const bool debug_;
7980
int co_option_;
8081
int co_quality_;
82+
int co_wh2option_;
8183
int scenario_;
8284
};
8385

L1Trigger/DTTriggerPhase2/plugins/DTTrigPhase2Prod.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ class DTTrigPhase2Prod : public edm::stream::EDProducer<> {
139139
int df_extended_;
140140
int co_option_; //coincidence
141141
int co_quality_;
142+
int co_wh2option_;
142143
int th_option_; //theta matching
143144
int th_quality_;
144145
int max_index_;
@@ -214,6 +215,7 @@ DTTrigPhase2Prod::DTTrigPhase2Prod(const ParameterSet& pset)
214215
df_extended_ = pset.getParameter<int>("df_extended");
215216
co_option_ = pset.getParameter<int>("co_option");
216217
co_quality_ = pset.getParameter<int>("co_quality");
218+
co_wh2option_ = pset.getParameter<int>("co_wh2option");
217219
th_option_ = pset.getParameter<int>("th_option");
218220
th_quality_ = pset.getParameter<int>("th_quality");
219221
max_index_ = pset.getParameter<int>("max_primitives") - 1;
@@ -831,6 +833,9 @@ void DTTrigPhase2Prod::produce(Event& iEvent, const EventSetup& iEventSetup) {
831833
}
832834
}
833835

836+
//for (auto& ch_filtcorrelatedMetaPrimitives : filtCorrelatedMetaPrimitives)
837+
//cout<<"filtCorrelatedMetaPrimitives: "<<filtCorrelatedMetaPrimitives[ch_filtcorrelatedMetaPrimitives.first].size()<<endl;
838+
834839
correlatedMetaPrimitives.clear();
835840
filteredMetaPrimitives.clear();
836841

@@ -860,6 +865,9 @@ void DTTrigPhase2Prod::produce(Event& iEvent, const EventSetup& iEventSetup) {
860865
}
861866
}
862867

868+
//for (auto& ch_filtcoMetaPrimitives : coMetaPrimitives)
869+
//cout<<"coMetaPrimitives: "<<coMetaPrimitives[ch_filtcoMetaPrimitives.first].size()<<endl;
870+
863871
allMetaPrimitives.clear();
864872

865873
// Theta (th) matching filter
@@ -879,6 +887,9 @@ void DTTrigPhase2Prod::produce(Event& iEvent, const EventSetup& iEventSetup) {
879887
}
880888
}
881889

890+
for (auto& mych : coMetaPrimitives)
891+
cout<<"coMetaPrimitives: "<<coMetaPrimitives[mych.first].size() <<" thMatchedMetaPrimitives: " << thMatchedMetaPrimitives[mych.first].size() <<endl;
892+
882893
/////////////
883894

884895
double shift_back = 0;
@@ -1318,6 +1329,7 @@ void DTTrigPhase2Prod::fillDescriptions(edm::ConfigurationDescriptions& descript
13181329
desc.add<int>("df_extended", 0);
13191330
desc.add<int>("co_option", 0);
13201331
desc.add<int>("co_quality", 0);
1332+
desc.add<int>("co_wh2option", 0);
13211333
desc.add<int>("th_option", 0);
13221334
desc.add<int>("th_quality", 0);
13231335
desc.add<int>("max_primitives", 999);

L1Trigger/DTTriggerPhase2/python/dtTriggerPhase2PrimitiveDigis_cfi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
df_extended = cms.int32(0), # DF: 0 for standard, 1 for extended, 2 for both
2727
co_option = cms.int32(1), # coincidence w.r.t. : -1 = off, 0 = co all, 1 = co phi, 2 = co theta
2828
co_quality = cms.int32(1), # quality cut (>X) for coincidence TP: request TPs to be above this cut
29+
co_wh2option = cms.int32(1),#0 (filter all stations in Wh2), 1(pass Wh2 St1), 2(pass Wh2 St1+2)
2930
th_option = cms.int32(1), # save 1st, 2nd,... closest Phi-Theta pair. 0 disables filtering (saves all)
3031
th_quality = cms.int32(2), # quality cut (>X) for Theta matching: Phi TPs above are not filtered
3132
max_primitives = cms.int32(999),

0 commit comments

Comments
 (0)