CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
CSCBaseboard Class Reference

#include <CSCBaseboard.h>

Public Member Functions

 CSCBaseboard (unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, const edm::ParameterSet &conf)
 
 CSCBaseboard ()
 
void setCSCGeometry (const CSCGeometry *g)
 
virtual ~CSCBaseboard ()=default
 

Protected Attributes

edm::ParameterSet alctParams_
 
edm::ParameterSet clctParams_
 
edm::ParameterSet commonParams_
 
const CSCChambercscChamber_
 
const CSCGeometrycscGeometry_
 
CSCDetId cscId_
 
bool disableME1a_
 
bool gangedME1a_
 
bool isME11_
 
bool isSLHC_
 
bool runME11ILT_
 
bool runME21ILT_
 
bool runME3141ILT_
 
bool runUpgradeBoard_
 
unsigned theChamber
 
std::string theCSCName_
 
const unsigned theEndcap
 
unsigned theRegion
 
unsigned theRing
 
const unsigned theSector
 
const unsigned theStation
 
const unsigned theSubsector
 
const unsigned theTrigChamber
 
edm::ParameterSet tmbParams_
 
std::vector< std::string > upgradeChambers_
 

Detailed Description

Definition at line 13 of file CSCBaseboard.h.

Constructor & Destructor Documentation

CSCBaseboard::CSCBaseboard ( unsigned  endcap,
unsigned  station,
unsigned  sector,
unsigned  subsector,
unsigned  chamber,
const edm::ParameterSet conf 
)

Normal constructor.

Definition at line 3 of file CSCBaseboard.cc.

References alctParams_, CSCTriggerNumbering::chamberFromTriggerLabels(), CSCDetId::chamberName(), clctParams_, commonParams_, cscId_, disableME1a_, edm::ParameterSet::existsAs(), spr::find(), gangedME1a_, edm::ParameterSet::getParameter(), isME11_, isSLHC_, or, CSCTriggerNumbering::ringFromTriggerLabels(), runME11ILT_, runME21ILT_, runME3141ILT_, runUpgradeBoard_, theChamber, theCSCName_, theEndcap, theRegion, theRing, theSector, theStation, theSubsector, theTrigChamber, tmbParams_, and upgradeChambers_.

6  :
9  theSector(sector),
10  theSubsector(subsector),
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 }
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 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)
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
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 unsigned theStation
Definition: CSCBaseboard.h:44
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
CSCBaseboard::CSCBaseboard ( )

Constructor for use during testing.

Definition at line 90 of file CSCBaseboard.cc.

References disableME1a_, gangedME1a_, isSLHC_, theChamber, and theRing.

90  :
91  theEndcap(1), theStation(1), theSector(1),
93 {
94  theRing = 1;
95  theChamber = 1;
96  isSLHC_ = false;
97  disableME1a_ = false;
98  gangedME1a_ = false;
99 }
const unsigned theEndcap
Definition: CSCBaseboard.h:43
const unsigned theSector
Definition: CSCBaseboard.h:45
bool disableME1a_
Definition: CSCBaseboard.h:66
bool gangedME1a_
Definition: CSCBaseboard.h:66
const unsigned theTrigChamber
Definition: CSCBaseboard.h:47
unsigned theChamber
Definition: CSCBaseboard.h:50
const unsigned theStation
Definition: CSCBaseboard.h:44
unsigned theRing
Definition: CSCBaseboard.h:49
const unsigned theSubsector
Definition: CSCBaseboard.h:46
virtual CSCBaseboard::~CSCBaseboard ( )
virtualdefault

Default destructor.

Member Function Documentation

void CSCBaseboard::setCSCGeometry ( const CSCGeometry g)

Definition at line 101 of file CSCBaseboard.cc.

References CSCGeometry::chamber(), cscChamber_, cscGeometry_, cscId_, and g.

102 {
103  cscGeometry_ = g;
105 }
const CSCChamber * cscChamber_
Definition: CSCBaseboard.h:56
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
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:55
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:133

Member Data Documentation

edm::ParameterSet CSCBaseboard::alctParams_
protected

Definition at line 37 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

edm::ParameterSet CSCBaseboard::clctParams_
protected

Definition at line 40 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

edm::ParameterSet CSCBaseboard::commonParams_
protected

Definition at line 31 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

const CSCChamber* CSCBaseboard::cscChamber_
protected

Definition at line 56 of file CSCBaseboard.h.

Referenced by setCSCGeometry().

const CSCGeometry* CSCBaseboard::cscGeometry_
protected

Definition at line 55 of file CSCBaseboard.h.

Referenced by setCSCGeometry().

CSCDetId CSCBaseboard::cscId_
protected

Definition at line 54 of file CSCBaseboard.h.

Referenced by CSCBaseboard(), and setCSCGeometry().

bool CSCBaseboard::disableME1a_
protected

SLHC: special configuration parameters for ME1a treatment

Definition at line 66 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::gangedME1a_
protected

Definition at line 66 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::isME11_
protected

Definition at line 52 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::isSLHC_
protected

Flag for SLHC studies.

Definition at line 63 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::runME11ILT_
protected

SLHC: run the upgrade for the Phase-II ME1/1 integrated local trigger

Definition at line 69 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::runME21ILT_
protected

SLHC: run the upgrade for the Phase-II ME2/1 integrated local trigger

Definition at line 72 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::runME3141ILT_
protected

SLHC: run the upgrade for the Phase-II ME3/1(ME4/1) integrated local trigger

Definition at line 75 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

bool CSCBaseboard::runUpgradeBoard_
protected

Definition at line 60 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

unsigned CSCBaseboard::theChamber
protected

Definition at line 50 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

std::string CSCBaseboard::theCSCName_
protected

Definition at line 59 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

const unsigned CSCBaseboard::theEndcap
protected

Chamber id (trigger-type labels).

Definition at line 43 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

unsigned CSCBaseboard::theRegion
protected

Definition at line 48 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

unsigned CSCBaseboard::theRing
protected

Definition at line 49 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

const unsigned CSCBaseboard::theSector
protected

Definition at line 45 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

const unsigned CSCBaseboard::theStation
protected

Definition at line 44 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

const unsigned CSCBaseboard::theSubsector
protected

Definition at line 46 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

const unsigned CSCBaseboard::theTrigChamber
protected

Definition at line 47 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

edm::ParameterSet CSCBaseboard::tmbParams_
protected

Definition at line 34 of file CSCBaseboard.h.

Referenced by CSCBaseboard().

std::vector<std::string> CSCBaseboard::upgradeChambers_
protected

Definition at line 58 of file CSCBaseboard.h.

Referenced by CSCBaseboard().