CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
CSCBaseboard Class Reference

#include <CSCBaseboard.h>

Inheritance diagram for CSCBaseboard:
CSCAnodeLCTProcessor CSCCathodeLCTProcessor CSCMotherboard CSCUpgradeAnodeLCTProcessor CSCUpgradeCathodeLCTProcessor CSCUpgradeMotherboard CSCGEMMotherboard CSCMotherboardME11 CSCGEMMotherboardME11 CSCGEMMotherboardME21

Public Member Functions

 CSCBaseboard (unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, const edm::ParameterSet &conf)
 
 CSCBaseboard ()
 
std::string getCSCName () const
 
void setCSCGeometry (const CSCGeometry *g)
 
virtual ~CSCBaseboard ()=default
 

Protected Attributes

unsigned int alctClctOffset_
 
edm::ParameterSet alctParams_
 
edm::ParameterSet clctParams_
 
edm::ParameterSet commonParams_
 
const CSCChambercscChamber_
 
const CSCGeometrycscGeometry_
 
CSCDetId cscId_
 
bool disableME1a_
 
bool enableAlctSLHC_
 
bool gangedME1a_
 
int infoV
 
bool isME11_
 
bool isSLHC_
 
bool runME11ILT_
 
bool runME11Up_
 
bool runME21ILT_
 
bool runME21Up_
 
bool runME31Up_
 
bool runME41Up_
 
unsigned theChamber
 
std::string theCSCName_
 
const unsigned theEndcap
 
unsigned theRegion
 
unsigned theRing
 
const unsigned theSector
 
const unsigned theStation
 
const unsigned theSubsector
 
const unsigned theTrigChamber
 
edm::ParameterSet tmbParams_
 

Detailed Description

Definition at line 13 of file CSCBaseboard.h.

Constructor & Destructor Documentation

CSCBaseboard::CSCBaseboard ( unsigned  endcap,
unsigned  station,
unsigned  sector,
unsigned  subsector,
unsigned  chamber,
const edm::ParameterSet conf 
)

Normal constructor.

Definition at line 3 of file CSCBaseboard.cc.

References alctClctOffset_, alctParams_, CSCTriggerNumbering::chamberFromTriggerLabels(), CSCDetId::chamberName(), clctParams_, commonParams_, cscId_, disableME1a_, enableAlctSLHC_, edm::ParameterSet::existsAs(), gangedME1a_, edm::ParameterSet::getParameter(), isME11_, isSLHC_, or, CSCTriggerNumbering::ringFromTriggerLabels(), runME11ILT_, runME11Up_, runME21ILT_, runME21Up_, runME31Up_, runME41Up_, theChamber, theCSCName_, theEndcap, theRegion, theRing, theSector, theStation, theSubsector, theTrigChamber, and tmbParams_.

6  :
9  theSector(sector),
10  theSubsector(subsector),
12 {
13  theRegion = (theEndcap == 1) ? 1: -1;
14 
16 
19  isME11_ = (theStation == 1 && theRing == 1);
20 
22 
23  commonParams_ = conf.getParameter<edm::ParameterSet>("commonParam");
24 
26 
27  isSLHC_ = commonParams_.getParameter<bool>("isSLHC");
28 
29  enableAlctSLHC_ = commonParams_.getParameter<bool>("enableAlctSLHC");
30 
31  disableME1a_ = commonParams_.getParameter<bool>("disableME1a");
32 
33  gangedME1a_ = commonParams_.getParameter<bool>("gangedME1a");
34 
35  alctClctOffset_ = commonParams_.getParameter<unsigned int>("alctClctOffset");
36 
37  runME11Up_ = commonParams_.existsAs<bool>("runME11Up")?
38  commonParams_.getParameter<bool>("runME11Up"):false;
39 
40  runME21Up_ = commonParams_.existsAs<bool>("runME21Up")?
41  commonParams_.getParameter<bool>("runME21Up"):false;
42 
43  runME31Up_ = commonParams_.existsAs<bool>("runME31Up")?
44  commonParams_.getParameter<bool>("runME31Up"):false;
45 
46  runME41Up_ = commonParams_.existsAs<bool>("runME41Up")?
47  commonParams_.getParameter<bool>("runME41Up"):false;
48 
49  runME11ILT_ = commonParams_.existsAs<bool>("runME11ILT") ?
50  commonParams_.getParameter<bool>("runME11ILT"):false;
51 
52  runME21ILT_ = commonParams_.existsAs<bool>("runME21ILT")?
53  commonParams_.getParameter<bool>("runME21ILT"):false;
54 
55  if (isSLHC_ and theRing == 1) {
56  if (theStation == 1 and runME11Up_) {
57  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbSLHC");
58  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHC");
59  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHC");
60  if (not enableAlctSLHC_) {
61  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
62  }
63  if (runME11ILT_) {
64  tmbParams_ = conf.getParameter<edm::ParameterSet>("me11tmbSLHCGEM");
65  }
66  }
67  else if (theStation == 2 and runME21Up_) {
68  tmbParams_ = conf.getParameter<edm::ParameterSet>("meX1tmbSLHC");
69  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHCME21");
70  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHCME21");
71  if (runME21ILT_) {
72  tmbParams_ = conf.getParameter<edm::ParameterSet>("me21tmbSLHCGEM");
73  }
74  }
75  else if ((theStation == 3 and runME31Up_) or
76  (theStation == 4 and runME41Up_)) {
77  tmbParams_ = conf.getParameter<edm::ParameterSet>("meX1tmbSLHC");
78  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHCME3141");
79  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHCME3141");
80  }
81  else {//SLHC is on but ME21ME31ME41 is not upgraded
82  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbParam");
83  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
84  clctParams_ = conf.getParameter<edm::ParameterSet>("clctParam07");
85  }
86  }
87  else {//others
88  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbParam");
89  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
90  clctParams_ = conf.getParameter<edm::ParameterSet>("clctParam07");
91  }
92 }
T getParameter(std::string const &) const
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:185
const unsigned theEndcap
Definition: CSCBaseboard.h:33
const unsigned theSector
Definition: CSCBaseboard.h:35
bool runME11ILT_
Definition: CSCBaseboard.h:89
bool runME21ILT_
Definition: CSCBaseboard.h:92
bool enableAlctSLHC_
Definition: CSCBaseboard.h:74
bool disableME1a_
Definition: CSCBaseboard.h:77
std::string theCSCName_
Definition: CSCBaseboard.h:70
static int ringFromTriggerLabels(int station, int triggerCSCID)
CSCDetId cscId_
Definition: CSCBaseboard.h:46
bool gangedME1a_
Definition: CSCBaseboard.h:77
const unsigned theTrigChamber
Definition: CSCBaseboard.h:37
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
unsigned theChamber
Definition: CSCBaseboard.h:40
edm::ParameterSet clctParams_
Definition: CSCBaseboard.h:67
edm::ParameterSet tmbParams_
Definition: CSCBaseboard.h:61
std::string chamberName() const
Definition: CSCDetId.cc:71
unsigned theRegion
Definition: CSCBaseboard.h:38
const unsigned theStation
Definition: CSCBaseboard.h:34
edm::ParameterSet alctParams_
Definition: CSCBaseboard.h:64
unsigned theRing
Definition: CSCBaseboard.h:39
edm::ParameterSet commonParams_
Definition: CSCBaseboard.h:58
unsigned int alctClctOffset_
Definition: CSCBaseboard.h:86
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
const unsigned theSubsector
Definition: CSCBaseboard.h:36
CSCBaseboard::CSCBaseboard ( )

Constructor for use during testing.

Definition at line 94 of file CSCBaseboard.cc.

References disableME1a_, gangedME1a_, isSLHC_, theChamber, and theRing.

94  :
95  theEndcap(1), theStation(1), theSector(1),
97 {
98  theRing = 1;
99  theChamber = 1;
100  isSLHC_ = false;
101  disableME1a_ = false;
102  gangedME1a_ = false;
103 }
const unsigned theEndcap
Definition: CSCBaseboard.h:33
const unsigned theSector
Definition: CSCBaseboard.h:35
bool disableME1a_
Definition: CSCBaseboard.h:77
bool gangedME1a_
Definition: CSCBaseboard.h:77
const unsigned theTrigChamber
Definition: CSCBaseboard.h:37
unsigned theChamber
Definition: CSCBaseboard.h:40
const unsigned theStation
Definition: CSCBaseboard.h:34
unsigned theRing
Definition: CSCBaseboard.h:39
const unsigned theSubsector
Definition: CSCBaseboard.h:36
virtual CSCBaseboard::~CSCBaseboard ( )
virtualdefault

Default destructor.

Member Function Documentation

std::string CSCBaseboard::getCSCName ( ) const
inline

Definition at line 29 of file CSCBaseboard.h.

References theCSCName_.

Referenced by CSCTriggerPrimitivesBuilder::build().

29 {return theCSCName_;}
std::string theCSCName_
Definition: CSCBaseboard.h:70
void CSCBaseboard::setCSCGeometry ( const CSCGeometry g)

Definition at line 105 of file CSCBaseboard.cc.

References CSCGeometry::chamber(), cscChamber_, cscGeometry_, cscId_, and g.

Referenced by CSCTriggerPrimitivesBuilder::build().

106 {
107  cscGeometry_ = g;
109 }
const CSCChamber * cscChamber_
Definition: CSCBaseboard.h:55
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
CSCDetId cscId_
Definition: CSCBaseboard.h:46
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:54
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:133

Member Data Documentation

unsigned int CSCBaseboard::alctClctOffset_
protected
edm::ParameterSet CSCBaseboard::alctParams_
protected

Definition at line 64 of file CSCBaseboard.h.

Referenced by CSCAnodeLCTProcessor::CSCAnodeLCTProcessor(), and CSCBaseboard().

edm::ParameterSet CSCBaseboard::clctParams_
protected
edm::ParameterSet CSCBaseboard::commonParams_
protected

Definition at line 58 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

const CSCChamber* CSCBaseboard::cscChamber_
protected
const CSCGeometry* CSCBaseboard::cscGeometry_
protected
CSCDetId CSCBaseboard::cscId_
protected
bool CSCBaseboard::disableME1a_
protected

SLHC: special configuration parameters for ME1a treatment

Definition at line 77 of file CSCBaseboard.h.

Referenced by CSCBaseboard(), CSCCathodeLCTProcessor::getDigis(), CSCAnodeLCTProcessor::getDigis(), CSCMotherboardME11::getLCTs1a(), and CSCCathodeLCTProcessor::run().

bool CSCBaseboard::enableAlctSLHC_
protected
bool CSCBaseboard::gangedME1a_
protected
int CSCBaseboard::infoV
protected

Verbosity level: 0: no print (default). 1: print only ALCTs found. 2: info at every step of the algorithm. 3: add special-purpose prints.

Definition at line 52 of file CSCBaseboard.h.

Referenced by CSCAnodeLCTProcessor::accelMode(), CSCAnodeLCTProcessor::bestTrackSelector(), CSCCathodeLCTProcessor::checkConfigParameters(), CSCMotherboard::checkConfigParameters(), CSCAnodeLCTProcessor::checkConfigParameters(), CSCMotherboard::correlateLCTs(), CSCAnodeLCTProcessor::CSCAnodeLCTProcessor(), CSCCathodeLCTProcessor::CSCCathodeLCTProcessor(), CSCMotherboard::CSCMotherboard(), CSCUpgradeCathodeLCTProcessor::findLCTs(), CSCCathodeLCTProcessor::findLCTs(), CSCMotherboard::findQuality(), CSCGEMMotherboard::findQualityGEM(), CSCCathodeLCTProcessor::getDigis(), CSCAnodeLCTProcessor::getDigis(), CSCUpgradeAnodeLCTProcessor::ghostCancellationLogic(), CSCAnodeLCTProcessor::ghostCancellationLogic(), CSCUpgradeAnodeLCTProcessor::ghostCancellationLogicOneWire(), CSCAnodeLCTProcessor::ghostCancellationLogicOneWire(), CSCAnodeLCTProcessor::lctSearch(), CSCAnodeLCTProcessor::patternDetection(), CSCCathodeLCTProcessor::patternFinding(), CSCUpgradeCathodeLCTProcessor::preTrigger(), CSCCathodeLCTProcessor::preTrigger(), CSCAnodeLCTProcessor::preTrigger(), CSCCathodeLCTProcessor::pulseExtension(), CSCAnodeLCTProcessor::pulseExtension(), CSCCathodeLCTProcessor::readComparatorDigis(), CSCAnodeLCTProcessor::readoutALCTs(), CSCCathodeLCTProcessor::readoutCLCTs(), CSCMotherboard::readoutLCTs(), CSCAnodeLCTProcessor::readWireDigis(), CSCGEMMotherboardME11::run(), CSCGEMMotherboardME21::run(), CSCMotherboardME11::run(), CSCMotherboard::run(), CSCCathodeLCTProcessor::run(), CSCAnodeLCTProcessor::run(), CSCUpgradeMotherboard::run(), and CSCAnodeLCTProcessor::trigMode().

bool CSCBaseboard::isME11_
protected
bool CSCBaseboard::isSLHC_
protected
bool CSCBaseboard::runME11ILT_
protected

SLHC: run the upgrade for the Phase-II ME1/1 integrated local trigger

Definition at line 89 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::runME11Up_
protected

SLHC: run the upgrade local trigger (without GEMs)

Definition at line 95 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::runME21ILT_
protected
bool CSCBaseboard::runME21Up_
protected

Definition at line 96 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::runME31Up_
protected
bool CSCBaseboard::runME41Up_
protected
unsigned CSCBaseboard::theChamber
protected
std::string CSCBaseboard::theCSCName_
protected
const unsigned CSCBaseboard::theEndcap
protected
unsigned CSCBaseboard::theRegion
protected
unsigned CSCBaseboard::theRing
protected
const unsigned CSCBaseboard::theSector
protected
const unsigned CSCBaseboard::theStation
protected
const unsigned CSCBaseboard::theSubsector
protected
const unsigned CSCBaseboard::theTrigChamber
protected
edm::ParameterSet CSCBaseboard::tmbParams_
protected