Skip to content

Commit

Permalink
Add Run-3 CLCT patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Dildick committed Dec 10, 2019
1 parent 431e2fd commit 28507dc
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
8 changes: 8 additions & 0 deletions L1Trigger/CSCTriggerPrimitives/interface/CSCPatternBank.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
#define L1Trigger_CSCTriggerPrimitives_CSCPatternBank_h

#include "L1Trigger/CSCCommonTrigger/interface/CSCConstants.h"
#include <vector>

//
// Class with only static members that contains the ALCT and CLCT trigger patterns
//

class CSCPatternBank {
public:
typedef std::vector<std::vector<std::vector<int> > > CLCTPatterns;

typedef int ALCTPatterns[CSCConstants::NUM_ALCT_PATTERNS][CSCConstants::MAX_WIRES_IN_PATTERN];

/** Pre-defined ALCT patterns. */

// This is the pattern envelope, which is used to define the collision
Expand All @@ -35,6 +40,9 @@ class CSCPatternBank {
// Pattern[i][CSCConstants::MAX_HALFSTRIPS_IN_PATTERN+1] contains pattern maximum width
static const int clct_pattern[CSCConstants::NUM_CLCT_PATTERNS][CSCConstants::MAX_HALFSTRIPS_IN_PATTERN + 2];

// New patterns for Run-3
static const CLCTPatterns clct_pattern_run3_;

// half strip offsets per layer for each half strip in the pattern envelope
static const int clct_pattern_offset[CSCConstants::MAX_HALFSTRIPS_IN_PATTERN];
};
Expand Down
45 changes: 45 additions & 0 deletions L1Trigger/CSCTriggerPrimitives/src/CSCPatternBank.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,48 @@ const int CSCPatternBank::clct_pattern[CSCConstants::NUM_CLCT_PATTERNS][CSCConst
999, 999, 5, 5, 5, 999, 999, 999, 999, 0, 3}
// pid's=B-F are not yet defined
};

const CSCPatternBank::CLCTPatterns CSCPatternBank::clct_pattern_run3_ = {
// pid 0
{
{0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1},
{0, 0, 0, 0, 0, 0, 0, 1, 1, 1,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