CMS 3D CMS Logo

CSCBaseboard.cc
Go to the documentation of this file.
2 
4  unsigned sector, unsigned subsector,
5  unsigned chamber,
6  const edm::ParameterSet& conf) :
7  theEndcap(endcap),
8  theStation(station),
9  theSector(sector),
10  theSubsector(subsector),
11  theTrigChamber(chamber)
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 }
93 
95  theEndcap(1), theStation(1), theSector(1),
97 {
98  theRing = 1;
99  theChamber = 1;
100  isSLHC_ = false;
101  disableME1a_ = false;
102  gangedME1a_ = false;
103 }
104 
106 {
107  cscGeometry_ = g;
109 }
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:161
const unsigned theEndcap
Definition: CSCBaseboard.h:33
const CSCChamber * cscChamber_
Definition: CSCBaseboard.h:55
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)
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
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
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:54
edm::ParameterSet tmbParams_
Definition: CSCBaseboard.h:61
std::string chamberName() const
Definition: CSCDetId.cc:71
unsigned theRegion
Definition: CSCBaseboard.h:38
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:133
const unsigned theStation
Definition: CSCBaseboard.h:34
void setCSCGeometry(const CSCGeometry *g)
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