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 
15  // Ring number
17 
18  // actual chamber number
21  // is this an ME11 chamber?
22  isME11_ = (theStation == 1 && theRing == 1);
23 
24  // CSCDetId for this chamber
26 
27  // Parameters common for all boards
28  commonParams_ = conf.getParameter<edm::ParameterSet>("commonParam");
29 
30  // Flag for SLHC studies
31  isSLHC_ = commonParams_.getParameter<bool>("isSLHC");
32 
33  // run the upgrade for the Phase-II ME1/1 integrated local trigger
34  runME11ILT_ = commonParams_.existsAs<bool>("runME11ILT") ?
35  commonParams_.getParameter<bool>("runME11ILT"):false;
36 
37  // run the upgrade for the Phase-II ME2/1 integrated local trigger
38  runME21ILT_ = commonParams_.existsAs<bool>("runME21ILT")?
39  commonParams_.getParameter<bool>("runME21ILT"):false;
40 
41  // run the upgrade for the Phase-II ME3/1-ME4/1 local trigger
42  runME3141ILT_ = commonParams_.existsAs<bool>("runME3141ILT")?
43  commonParams_.getParameter<bool>("runME3141ILT"):false;
44 
45  // chamber name, e.g. ME+1/1/9
47 
48  upgradeChambers_ = commonParams_.existsAs< std::vector<std::string> >("upgradeChambers") ?
49  commonParams_.getParameter< std::vector<std::string> >("upgradeChambers"):std::vector<std::string>();
50 
51  // is this particular board (ALCT processor, TMB or CLCT processor) running the upgrade algorithm?
52  runUpgradeBoard_ = false;
53  if (isSLHC_ and std::find(upgradeChambers_.begin(), upgradeChambers_.end(), theCSCName_) != upgradeChambers_.end()){
54  runUpgradeBoard_ = true;
55  }
56 
57  // run upgrade scenarios for all MEX/1 stations
58  if (isSLHC_ and theRing == 1 and runUpgradeBoard_){
59  if (theStation == 1) {
60  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbSLHC");
61  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
62  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHC");
63  if (runME11ILT_) {
64  tmbParams_ = conf.getParameter<edm::ParameterSet>("me11tmbSLHCGEM");
65  }
66  }
67  else if (theStation == 2 and runME21ILT_) {
68  tmbParams_ = conf.getParameter<edm::ParameterSet>("me21tmbSLHCGEM");
69  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHCME21");
70  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHCME21");
71  }
72  else if ((theStation == 3 or theStation == 4) and runME3141ILT_) {
73  tmbParams_ = conf.getParameter<edm::ParameterSet>("me3141tmbSLHC");
74  alctParams_ = conf.getParameter<edm::ParameterSet>("alctSLHCME3141");
75  clctParams_ = conf.getParameter<edm::ParameterSet>("clctSLHCME3141");
76  }
77  } else {
78  tmbParams_ = conf.getParameter<edm::ParameterSet>("tmbParam");
79  alctParams_ = conf.getParameter<edm::ParameterSet>("alctParam07");
80  clctParams_ = conf.getParameter<edm::ParameterSet>("clctParam07");
81  }
82 
83  // special configuration parameters for ME11 treatment
84  disableME1a_ = commonParams_.getParameter<bool>("disableME1a");
85 
86  // special configuration parameters for ME11 treatment
87  gangedME1a_ = commonParams_.getParameter<bool>("gangedME1a");
88 }
89 
91  theEndcap(1), theStation(1), theSector(1),
93 {
94  theRing = 1;
95  theChamber = 1;
96  isSLHC_ = false;
97  disableME1a_ = false;
98  gangedME1a_ = false;
99 }
100 
102 {
103  cscGeometry_ = g;
105 }
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:185
const unsigned theEndcap
Definition: CSCBaseboard.h:43
std::vector< std::string > upgradeChambers_
Definition: CSCBaseboard.h:58
const CSCChamber * cscChamber_
Definition: CSCBaseboard.h:56
const unsigned theSector
Definition: CSCBaseboard.h:45
bool runME11ILT_
Definition: CSCBaseboard.h:69
bool runME21ILT_
Definition: CSCBaseboard.h:72
bool disableME1a_
Definition: CSCBaseboard.h:66
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::string theCSCName_
Definition: CSCBaseboard.h:59
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:54
bool gangedME1a_
Definition: CSCBaseboard.h:66
const unsigned theTrigChamber
Definition: CSCBaseboard.h:47
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:50
edm::ParameterSet clctParams_
Definition: CSCBaseboard.h:40
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:55
edm::ParameterSet tmbParams_
Definition: CSCBaseboard.h:34
std::string chamberName() const
Definition: CSCDetId.cc:71
unsigned theRegion
Definition: CSCBaseboard.h:48
bool runME3141ILT_
Definition: CSCBaseboard.h:75
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:133
const unsigned theStation
Definition: CSCBaseboard.h:44
void setCSCGeometry(const CSCGeometry *g)
edm::ParameterSet alctParams_
Definition: CSCBaseboard.h:37
unsigned theRing
Definition: CSCBaseboard.h:49
bool runUpgradeBoard_
Definition: CSCBaseboard.h:60
edm::ParameterSet commonParams_
Definition: CSCBaseboard.h:31
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
const unsigned theSubsector
Definition: CSCBaseboard.h:46