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 
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 }
78 
80  theRing = 1;
81  theChamber = 1;
82  isSLHC_ = false;
83  disableME1a_ = false;
84  gangedME1a_ = false;
85 }
86 
88  cscGeometry_ = g;
90 }
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 CSCChamber * cscChamber_
Definition: CSCBaseboard.h:59
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)
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
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
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:58
edm::ParameterSet tmbParams_
Definition: CSCBaseboard.h:65
std::string chamberName() const
Definition: CSCDetId.cc:67
unsigned theRegion
Definition: CSCBaseboard.h:42
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:100
const unsigned theStation
Definition: CSCBaseboard.h:38
void setCSCGeometry(const CSCGeometry *g)
Definition: CSCBaseboard.cc:87
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