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 15 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_.

10  theRegion = (theEndcap == 1) ? 1 : -1;
11 
13 
15  isME11_ = (theStation == 1 && theRing == 1);
16 
18 
19  commonParams_ = conf.getParameter<edm::ParameterSet>("commonParam");
20 
22 
23  isSLHC_ = commonParams_.getParameter<bool>("isSLHC");
24 
25  enableAlctSLHC_ = commonParams_.getParameter<bool>("enableAlctSLHC");
26 
27  disableME1a_ = commonParams_.getParameter<bool>("disableME1a");
28 
29  gangedME1a_ = commonParams_.getParameter<bool>("gangedME1a");
30 
31  alctClctOffset_ = commonParams_.getParameter<unsigned int>("alctClctOffset");
32 
33  runME11Up_ = commonParams_.existsAs<bool>("runME11Up") ? commonParams_.getParameter<bool>("runME11Up") : false;
34 
35  runME21Up_ = commonParams_.existsAs<bool>("runME21Up") ? commonParams_.getParameter<bool>("runME21Up") : false;
36 
37  runME31Up_ = commonParams_.existsAs<bool>("runME31Up") ? commonParams_.getParameter<bool>("runME31Up") : false;
38 
39  runME41Up_ = commonParams_.existsAs<bool>("runME41Up") ? commonParams_.getParameter<bool>("runME41Up") : false;
40 
41  runME11ILT_ = commonParams_.existsAs<bool>("runME11ILT") ? commonParams_.getParameter<bool>("runME11ILT") : false;
42 
43  runME21ILT_ = commonParams_.existsAs<bool>("runME21ILT") ? commonParams_.getParameter<bool>("runME21ILT") : false;
44 
45  if (isSLHC_ and theRing == 1) {
46  if (theStation == 1 and runME11Up_) {
47  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbSLHC");
48  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHC");
49  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHC");
50  if (not enableAlctSLHC_) {
51  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
52  }
53  if (runME11ILT_) {
54  tmbParams_ = conf.getParameter<edm::ParameterSet>("me11tmbSLHCGEM");
55  }
56  } else if (theStation == 2 and runME21Up_) {
57  tmbParams_ = conf.getParameter<edm::ParameterSet>("meX1tmbSLHC");
58  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHCME21");
59  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHCME21");
60  if (runME21ILT_) {
61  tmbParams_ = conf.getParameter<edm::ParameterSet>("me21tmbSLHCGEM");
62  }
63  } else if ((theStation == 3 and runME31Up_) or (theStation == 4 and runME41Up_)) {
64  tmbParams_ = conf.getParameter<edm::ParameterSet>("meX1tmbSLHC");
65  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHCME3141");
66  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHCME3141");
67  } else { //SLHC is on but ME21ME31ME41 is not upgraded
68  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbParam");
69  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
70  clctParams_ = conf.getParameter<edm::ParameterSet>("clctParam07");
71  }
72  } else { //others
73  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbParam");
74  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
75  clctParams_ = conf.getParameter<edm::ParameterSet>("clctParam07");
76  }
77 }
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:160
const unsigned theEndcap
Definition: CSCBaseboard.h:37
const unsigned theSector
Definition: CSCBaseboard.h:39
bool runME11ILT_
Definition: CSCBaseboard.h:93
bool runME21ILT_
Definition: CSCBaseboard.h:96
bool enableAlctSLHC_
Definition: CSCBaseboard.h:78
bool disableME1a_
Definition: CSCBaseboard.h:81
std::string theCSCName_
Definition: CSCBaseboard.h:74
static int ringFromTriggerLabels(int station, int triggerCSCID)
CSCDetId cscId_
Definition: CSCBaseboard.h:50
bool gangedME1a_
Definition: CSCBaseboard.h:81
const unsigned theTrigChamber
Definition: CSCBaseboard.h:41
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:44
edm::ParameterSet clctParams_
Definition: CSCBaseboard.h:71
edm::ParameterSet tmbParams_
Definition: CSCBaseboard.h:65
std::string chamberName() const
Definition: CSCDetId.cc:67
unsigned theRegion
Definition: CSCBaseboard.h:42
const unsigned theStation
Definition: CSCBaseboard.h:38
edm::ParameterSet alctParams_
Definition: CSCBaseboard.h:68
unsigned theRing
Definition: CSCBaseboard.h:43
edm::ParameterSet commonParams_
Definition: CSCBaseboard.h:62
unsigned int alctClctOffset_
Definition: CSCBaseboard.h:90
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
const unsigned theSubsector
Definition: CSCBaseboard.h:40
CSCBaseboard::CSCBaseboard ( )

Constructor for use during testing.

Definition at line 79 of file CSCBaseboard.cc.

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

80  theRing = 1;
81  theChamber = 1;
82  isSLHC_ = false;
83  disableME1a_ = false;
84  gangedME1a_ = false;
85 }
const unsigned theEndcap
Definition: CSCBaseboard.h:37
const unsigned theSector
Definition: CSCBaseboard.h:39
bool disableME1a_
Definition: CSCBaseboard.h:81
bool gangedME1a_
Definition: CSCBaseboard.h:81
const unsigned theTrigChamber
Definition: CSCBaseboard.h:41
unsigned theChamber
Definition: CSCBaseboard.h:44
const unsigned theStation
Definition: CSCBaseboard.h:38
unsigned theRing
Definition: CSCBaseboard.h:43
const unsigned theSubsector
Definition: CSCBaseboard.h:40
virtual CSCBaseboard::~CSCBaseboard ( )
virtualdefault

Default destructor.

Member Function Documentation

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

Definition at line 33 of file CSCBaseboard.h.

References theCSCName_.

Referenced by CSCTriggerPrimitivesBuilder::build().

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

Definition at line 87 of file CSCBaseboard.cc.

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

Referenced by CSCTriggerPrimitivesBuilder::build().

87  {
88  cscGeometry_ = g;
90 }
const CSCChamber * cscChamber_
Definition: CSCBaseboard.h:59
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:50
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:58
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:100

Member Data Documentation

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

Definition at line 68 of file CSCBaseboard.h.

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

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

Definition at line 62 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 81 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 56 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 93 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::runME11Up_
protected

SLHC: run the upgrade local trigger (without GEMs)

Definition at line 99 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

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

Definition at line 100 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