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 
19 
20  commonParams_ = conf.getParameter<edm::ParameterSet>("commonParam");
21 
23 
24  isSLHC_ = commonParams_.getParameter<bool>("isSLHC");
25 
26  enableAlctSLHC_ = commonParams_.getParameter<bool>("enableAlctSLHC");
27 
28  disableME1a_ = commonParams_.getParameter<bool>("disableME1a");
29 
30  gangedME1a_ = commonParams_.getParameter<bool>("gangedME1a");
31 
32  alctClctOffset_ = commonParams_.getParameter<unsigned int>("alctClctOffset");
33 
34  runME11Up_ = commonParams_.getParameter<bool>("runME11Up");
35  runME21Up_ = commonParams_.getParameter<bool>("runME21Up");
36  runME31Up_ = commonParams_.getParameter<bool>("runME31Up");
37  runME41Up_ = commonParams_.getParameter<bool>("runME41Up");
38 
39  runME11ILT_ = commonParams_.getParameter<bool>("runME11ILT");
40  runME21ILT_ = commonParams_.getParameter<bool>("runME21ILT");
41 
42  if (isSLHC_ and theRing == 1) {
43  if (theStation == 1 and runME11Up_) {
44  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbSLHC");
45  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHC");
46  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHC");
47  if (not enableAlctSLHC_) {
48  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
49  }
50  if (runME11ILT_) {
51  tmbParams_ = conf.getParameter<edm::ParameterSet>("me11tmbSLHCGEM");
52  }
53  } else if (theStation == 2 and runME21Up_) {
54  tmbParams_ = conf.getParameter<edm::ParameterSet>("meX1tmbSLHC");
55  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHCME21");
56  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHCME21");
57  if (runME21ILT_) {
58  tmbParams_ = conf.getParameter<edm::ParameterSet>("me21tmbSLHCGEM");
59  }
60  } else if ((theStation == 3 and runME31Up_) or (theStation == 4 and runME41Up_)) {
61  tmbParams_ = conf.getParameter<edm::ParameterSet>("meX1tmbSLHC");
62  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHCME3141");
63  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHCME3141");
64  } else { //SLHC is on but ME21ME31ME41 is not upgraded
65  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbParam");
66  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
67  clctParams_ = conf.getParameter<edm::ParameterSet>("clctParam07");
68  }
69  } else { //others
70  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbParam");
71  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
72  clctParams_ = conf.getParameter<edm::ParameterSet>("clctParam07");
73  }
74 }
75 
76 CSCBaseboard::CSCBaseboard() : theEndcap(1), theStation(1), theSector(1), theSubsector(1), theTrigChamber(1) {
77  theRing = 1;
78  theChamber = 1;
79  isSLHC_ = false;
80  disableME1a_ = false;
81  gangedME1a_ = false;
82 }
83 
85  cscGeometry_ = g;
87 }
88 
90  const unsigned int var_max,
91  const unsigned int var_def,
92  const std::string& var_str) {
93  // Make sure that the parameter values are within the allowed range.
94  if (var >= var_max) {
95  edm::LogError("CSCConfigError") << "+++ Value of " + var_str + ", " << var << ", exceeds max allowed, " << var - 1
96  << " +++\n"
97  << "+++ Try to proceed with the default value, " + var_str + "=" << var_def
98  << " +++\n";
99  var = var_def;
100  }
101 }
CSCBaseboard::theEndcap
const unsigned theEndcap
Definition: CSCBaseboard.h:42
CSCBaseboard::clctParams_
edm::ParameterSet clctParams_
Definition: CSCBaseboard.h:77
CSCBaseboard::cscChamber_
const CSCChamber * cscChamber_
Definition: CSCBaseboard.h:65
CSCBaseboard::theSector
const unsigned theSector
Definition: CSCBaseboard.h:44
CSCBaseboard::theRegion
unsigned theRegion
Definition: CSCBaseboard.h:47
CSCBaseboard::cscGeometry_
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:64
CSCBaseboard::isSLHC_
bool isSLHC_
Definition: CSCBaseboard.h:83
CSCBaseboard::enableAlctSLHC_
bool enableAlctSLHC_
Definition: CSCBaseboard.h:84
CSCBaseboard::tmbParams_
edm::ParameterSet tmbParams_
Definition: CSCBaseboard.h:71
relativeConstraints.station
station
Definition: relativeConstraints.py:67
CSCBaseboard::disableME1a_
bool disableME1a_
Definition: CSCBaseboard.h:87
CSCBaseboard::theStation
const unsigned theStation
Definition: CSCBaseboard.h:43
CSCBaseboard::theCSCName_
std::string theCSCName_
Definition: CSCBaseboard.h:80
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:89
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
CSCBaseboard::runME11ILT_
bool runME11ILT_
Definition: CSCBaseboard.h:99
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
CSCGeometry
Definition: CSCGeometry.h:24
CSCBaseboard::runME11Up_
bool runME11Up_
Definition: CSCBaseboard.h:105
CSCBaseboard::setCSCGeometry
void setCSCGeometry(const CSCGeometry *g)
Definition: CSCBaseboard.cc:84
CSCBaseboard::alctClctOffset_
unsigned int alctClctOffset_
Definition: CSCBaseboard.h:96
CSCBaseboard::runME41Up_
bool runME41Up_
Definition: CSCBaseboard.h:108
CSCBaseboard::theSubsector
const unsigned theSubsector
Definition: CSCBaseboard.h:45
CSCBaseboard::gangedME1a_
bool gangedME1a_
Definition: CSCBaseboard.h:87
CSCBaseboard::runME31Up_
bool runME31Up_
Definition: CSCBaseboard.h:107
CSCBaseboard::runME21Up_
bool runME21Up_
Definition: CSCBaseboard.h:106
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
edm::LogError
Definition: MessageLogger.h:183
CSCBaseboard::CSCBaseboard
CSCBaseboard()
Definition: CSCBaseboard.cc:76
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
CSCBaseboard::theChamber
unsigned theChamber
Definition: CSCBaseboard.h:49
CSCBaseboard::runME21ILT_
bool runME21ILT_
Definition: CSCBaseboard.h:102
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CSCBaseboard::isME21_
bool isME21_
Definition: CSCBaseboard.h:53
CSCDetId::chamberName
std::string chamberName() const
Definition: CSCDetId.cc:67
CSCBaseboard::commonParams_
edm::ParameterSet commonParams_
Definition: CSCBaseboard.h:68
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:46
CSCBaseboard::cscId_
CSCDetId cscId_
Definition: CSCBaseboard.h:56
CSCBaseboard::isME11_
bool isME11_
Definition: CSCBaseboard.h:52
CSCGeometry::chamber
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:100
CSCBaseboard::alctParams_
edm::ParameterSet alctParams_
Definition: CSCBaseboard.h:74
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.h
CSCBaseboard::theRing
unsigned theRing
Definition: CSCBaseboard.h:48