CMS 3D CMS Logo

CSCBaseboard.cc
Go to the documentation of this file.
2 
4  unsigned station,
5  unsigned sector,
6  unsigned subsector,
7  unsigned chamber,
8  const edm::ParameterSet& conf)
9  : theEndcap(endcap), theStation(station), theSector(sector), theSubsector(subsector), theTrigChamber(chamber) {
10  theRegion = (theEndcap == 1) ? 1 : -1;
11 
13 
15  isME11_ = (theStation == 1 && theRing == 1);
16  isME21_ = (theStation == 2 && theRing == 1);
17  isME31_ = (theStation == 3 && theRing == 1);
18  isME41_ = (theStation == 4 && theRing == 1);
19 
21 
22  commonParams_ = conf.getParameter<edm::ParameterSet>("commonParam");
23 
24  showerParams_ = conf.getParameterSet("showerParam");
25 
27 
28  runPhase2_ = commonParams_.getParameter<bool>("runPhase2");
29 
30  enableAlctPhase2_ = commonParams_.getParameter<bool>("enableAlctPhase2");
31 
32  disableME1a_ = commonParams_.getParameter<bool>("disableME1a");
33 
34  gangedME1a_ = commonParams_.getParameter<bool>("gangedME1a");
35 
36  runME11Up_ = commonParams_.getParameter<bool>("runME11Up");
37  runME21Up_ = commonParams_.getParameter<bool>("runME21Up");
38  runME31Up_ = commonParams_.getParameter<bool>("runME31Up");
39  runME41Up_ = commonParams_.getParameter<bool>("runME41Up");
40 
41  runME11ILT_ = commonParams_.getParameter<bool>("runME11ILT");
42  runME21ILT_ = commonParams_.getParameter<bool>("runME21ILT");
43 
44  runCCLUT_ = commonParams_.getParameter<bool>("runCCLUT");
45 
46  // general case
47  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbPhase1");
48  alctParams_ = conf.getParameter<edm::ParameterSet>("alctPhase1");
49  clctParams_ = conf.getParameter<edm::ParameterSet>("clctPhase1");
50 
51  const bool upgradeME11 = runPhase2_ and isME11_ and runME11Up_;
52  const bool upgradeME21 = runPhase2_ and isME21_ and runME21Up_;
53  const bool upgradeME31 = runPhase2_ and isME31_ and runME31Up_;
54  const bool upgradeME41 = runPhase2_ and isME41_ and runME41Up_;
55  const bool upgradeME = upgradeME11 or upgradeME21 or upgradeME31 or upgradeME41;
56 
57  if (upgradeME) {
58  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbPhase2");
59  clctParams_ = conf.getParameter<edm::ParameterSet>("clctPhase2");
60  // upgrade ME1/1
61  if (upgradeME11) {
62  // do not run the Phase-2 ALCT for Run-3
63  if (enableAlctPhase2_) {
64  alctParams_ = conf.getParameter<edm::ParameterSet>("alctPhase2");
65  }
66 
67  if (runME11ILT_) {
68  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbPhase2GE11");
69  clctParams_ = conf.getParameter<edm::ParameterSet>("clctPhase2GEM");
70  }
71  }
72  // upgrade ME2/1
73  if (upgradeME21 and runME21ILT_) {
74  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbPhase2GE21");
75  clctParams_ = conf.getParameter<edm::ParameterSet>("clctPhase2GEM");
76  alctParams_ = conf.getParameter<edm::ParameterSet>("alctPhase2GEM");
77  }
78  }
79 }
80 
81 CSCBaseboard::CSCBaseboard() : theEndcap(1), theStation(1), theSector(1), theSubsector(1), theTrigChamber(1) {
82  theRing = 1;
83  theChamber = 1;
84  runPhase2_ = false;
85  disableME1a_ = false;
86  gangedME1a_ = false;
87 }
88 
90  cscGeometry_ = g;
92 }
93 
95  const unsigned int var_max,
96  const unsigned int var_def,
97  const std::string& var_str) {
98  // Make sure that the parameter values are within the allowed range.
99  if (var >= var_max) {
100  edm::LogError("CSCConfigError") << "+++ Value of " + var_str + ", " << var << ", exceeds max allowed, " << var - 1
101  << " +++\n"
102  << "+++ Try to proceed with the default value, " + var_str + "=" << var_def
103  << " +++\n";
104  var = var_def;
105  }
106 }
CSCBaseboard::isME31_
bool isME31_
Definition: CSCBaseboard.h:53
CSCBaseboard::theEndcap
const unsigned theEndcap
Definition: CSCBaseboard.h:41
CSCBaseboard::clctParams_
edm::ParameterSet clctParams_
Definition: CSCBaseboard.h:78
CSCBaseboard::theRegion
int theRegion
Definition: CSCBaseboard.h:46
CSCBaseboard::cscChamber_
const CSCChamber * cscChamber_
Definition: CSCBaseboard.h:66
CSCBaseboard::theSector
const unsigned theSector
Definition: CSCBaseboard.h:43
CSCBaseboard::cscGeometry_
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:65
CSCBaseboard::tmbParams_
edm::ParameterSet tmbParams_
Definition: CSCBaseboard.h:72
relativeConstraints.station
station
Definition: relativeConstraints.py:67
CSCBaseboard::disableME1a_
bool disableME1a_
Definition: CSCBaseboard.h:91
CSCBaseboard::theStation
const unsigned theStation
Definition: CSCBaseboard.h:42
CSCBaseboard::theCSCName_
std::string theCSCName_
Definition: CSCBaseboard.h:84
CSCBaseboard::checkConfigParameters
void checkConfigParameters(unsigned int &var, const unsigned int var_max, const unsigned int var_def, const std::string &var_str)
Definition: CSCBaseboard.cc:94
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
CSCBaseboard::runME11ILT_
bool runME11ILT_
Definition: CSCBaseboard.h:94
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
CSCGeometry
Definition: CSCGeometry.h:24
CSCBaseboard::runME11Up_
bool runME11Up_
Definition: CSCBaseboard.h:100
CSCBaseboard::setCSCGeometry
void setCSCGeometry(const CSCGeometry *g)
Definition: CSCBaseboard.cc:89
CSCBaseboard::showerParams_
edm::ParameterSet showerParams_
Definition: CSCBaseboard.h:81
CSCBaseboard::runME41Up_
bool runME41Up_
Definition: CSCBaseboard.h:103
CSCBaseboard::theSubsector
const unsigned theSubsector
Definition: CSCBaseboard.h:44
CSCBaseboard::gangedME1a_
bool gangedME1a_
Definition: CSCBaseboard.h:91
CSCBaseboard::runME31Up_
bool runME31Up_
Definition: CSCBaseboard.h:102
CSCBaseboard::runME21Up_
bool runME21Up_
Definition: CSCBaseboard.h:101
CSCBaseboard::runPhase2_
bool runPhase2_
Definition: CSCBaseboard.h:87
edm::ParameterSet
Definition: ParameterSet.h:47
CSCBaseboard::enableAlctPhase2_
bool enableAlctPhase2_
Definition: CSCBaseboard.h:88
CSCBaseboard::CSCBaseboard
CSCBaseboard()
Definition: CSCBaseboard.cc:81
CSCDetId
Definition: CSCDetId.h:26
CSCTriggerNumbering::ringFromTriggerLabels
static int ringFromTriggerLabels(int station, int triggerCSCID)
Definition: CSCTriggerNumbering.cc:5
CSCTriggerNumbering::chamberFromTriggerLabels
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
Definition: CSCTriggerNumbering.cc:30
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
CSCBaseboard::theChamber
unsigned theChamber
Definition: CSCBaseboard.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CSCBaseboard::runME21ILT_
bool runME21ILT_
Definition: CSCBaseboard.h:97
CSCBaseboard::isME21_
bool isME21_
Definition: CSCBaseboard.h:52
CSCDetId::chamberName
std::string chamberName() const
Definition: CSCDetId.cc:86
CSCBaseboard::commonParams_
edm::ParameterSet commonParams_
Definition: CSCBaseboard.h:69
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
or
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
CSCBaseboard::theTrigChamber
const unsigned theTrigChamber
Definition: CSCBaseboard.h:45
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CSCBaseboard::cscId_
CSCDetId cscId_
Definition: CSCBaseboard.h:57
CSCBaseboard::isME41_
bool isME41_
Definition: CSCBaseboard.h:54
CSCBaseboard::isME11_
bool isME11_
Definition: CSCBaseboard.h:51
CSCGeometry::chamber
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:100
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2128
CSCBaseboard::alctParams_
edm::ParameterSet alctParams_
Definition: CSCBaseboard.h:75
g
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
CSCBaseboard::runCCLUT_
bool runCCLUT_
Definition: CSCBaseboard.h:105
CSCBaseboard.h
CSCBaseboard::theRing
unsigned theRing
Definition: CSCBaseboard.h:47