Skip to content

Commit

Permalink
Merge pull request #33740 from Dr15Jones/fixL1TriggerDTTriggerPhase2
Browse files Browse the repository at this point in the history
Fix debug build of L1Trigger/DTTriggerPhase2
  • Loading branch information
cmsbuild committed May 17, 2021
2 parents 30b9d84 + d8ae751 commit a2cd4ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion L1Trigger/DTTriggerPhase2/interface/DTPattern.h
Expand Up @@ -43,7 +43,7 @@ class DTPattern {
const std::vector<RefDTPatternHit> &genHits() const { return genHits_; }

//Printing
friend std::ostream &operator<<(std::ostream &out, DTPattern &p);
friend std::ostream &operator<<(std::ostream &out, DTPattern const &p);

private:
//Generated seeds
Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/DTTriggerPhase2/src/DTPattern.cc
Expand Up @@ -53,7 +53,7 @@ int DTPattern::latHitIn(int slId, int chId, int allowedVariance) const {
return temp;
}

std::ostream &operator<<(std::ostream &out, DTPattern &p) {
std::ostream &operator<<(std::ostream &out, DTPattern const &p) {
//Friend for printing pattern information trough iostream
out << "Pattern id: " << std::get<0>(p.id()) << " , " << std::get<1>(p.id()) << " , " << std::get<2>(p.id())
<< std::endl;
Expand Down
8 changes: 4 additions & 4 deletions L1Trigger/DTTriggerPhase2/src/PseudoBayesGrouping.cc
Expand Up @@ -348,11 +348,11 @@ void PseudoBayesGrouping::RecognisePatterns(std::vector<DTPrimitive> digisinLDow
(allowUncorrelatedPatterns_ && ((cand->nLayerUp() >= minUncorrelatedHits_ && cand->nLayerDown() == 0) ||
(cand->nLayerDown() >= minUncorrelatedHits_ && cand->nLayerUp() == 0)))) {
if (debug_) {
LogDebug("PseudoBayesGrouping") << "PseudoBayesGrouping::RecognisePatterns Pattern found for pair in "
<< LDown << " ," << wireDown << " ," << LUp << " ," << wireUp;
LogDebug("PseudoBayesGrouping")
<< "Candidate has " << cand->nhits() << " hits with quality " << cand->quality();
LogDebug("PseudoBayesGrouping") << *(*pat_it);
<< "PseudoBayesGrouping::RecognisePatterns Pattern found for pair in " << LDown << " ," << wireDown
<< " ," << LUp << " ," << wireUp << "\n"
<< "Candidate has " << cand->nhits() << " hits with quality " << cand->quality() << "\n"
<< *(*pat_it);
}
//We currently save everything at this level, might want to be more restrictive
pidx_++;
Expand Down

0 comments on commit a2cd4ab

Please sign in to comment.