CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
CSCDBL1TPParametersExtended Class Reference

#include <CSCDBL1TPParametersExtended.h>

Public Member Functions

 CSCDBL1TPParametersExtended ()
 
bool getValueBool (const std::string &) const
 
int getValueInt (const std::string &) const
 
void setValue (const std::string &, bool)
 
void setValue (const std::string &, int)
 
 ~CSCDBL1TPParametersExtended ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

const std::vector< std::string > paramNamesBool_
 
const std::vector< std::string > paramNamesInt_
 
std::vector< int > paramsBool_
 
std::vector< int > paramsInt_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Author
Sven Dildick

Description: Configuration parameters needed for the Phase-1 upgrade of the level-1 CSC trigger primitives emulator. ME1/1 ALCT, CLCT and TMB have own members.

Definition at line 21 of file CSCDBL1TPParametersExtended.h.

Constructor & Destructor Documentation

◆ CSCDBL1TPParametersExtended()

CSCDBL1TPParametersExtended::CSCDBL1TPParametersExtended ( )

Definition at line 3 of file CSCDBL1TPParametersExtended.cc.

3  {
4  paramsInt_.resize(paramNamesInt_.size());
5  paramsBool_.resize(paramNamesBool_.size());
6 }

References paramNamesBool_, paramNamesInt_, paramsBool_, and paramsInt_.

◆ ~CSCDBL1TPParametersExtended()

CSCDBL1TPParametersExtended::~CSCDBL1TPParametersExtended ( )

Definition at line 8 of file CSCDBL1TPParametersExtended.cc.

8 {}

Member Function Documentation

◆ getValueBool()

bool CSCDBL1TPParametersExtended::getValueBool ( const std::string &  s) const

Definition at line 15 of file CSCDBL1TPParametersExtended.cc.

15  {
16  const int index = find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
17  return paramsBool_[index];
18 }

References spr::find(), paramNamesBool_, paramsBool_, and alignCSCRings::s.

◆ getValueInt()

int CSCDBL1TPParametersExtended::getValueInt ( const std::string &  s) const

Definition at line 10 of file CSCDBL1TPParametersExtended.cc.

10  {
11  const int index = find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
12  return paramsInt_[index];
13 }

References spr::find(), paramNamesInt_, paramsInt_, and alignCSCRings::s.

◆ serialize()

template<class Archive >
void CSCDBL1TPParametersExtended::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setValue() [1/2]

void CSCDBL1TPParametersExtended::setValue ( const std::string &  s,
bool  v 
)

Definition at line 25 of file CSCDBL1TPParametersExtended.cc.

25  {
26  const int index = find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
27  paramsBool_[index] = v;
28 }

References spr::find(), paramNamesBool_, paramsBool_, alignCSCRings::s, and findQualityFiles::v.

◆ setValue() [2/2]

void CSCDBL1TPParametersExtended::setValue ( const std::string &  s,
int  v 
)

Definition at line 20 of file CSCDBL1TPParametersExtended.cc.

20  {
21  const int index = find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
22  paramsInt_[index] = v;
23 }

References spr::find(), paramNamesInt_, paramsInt_, alignCSCRings::s, and findQualityFiles::v.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 129 of file CSCDBL1TPParametersExtended.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 129 of file CSCDBL1TPParametersExtended.h.

Member Data Documentation

◆ paramNamesBool_

const std::vector<std::string> CSCDBL1TPParametersExtended::paramNamesBool_
private
Initial value:
{
"me11_phase1_alctNarrowMaskForR1a",
"me11_phase1_alctGhostCancellationSideQuality",
"me11_phase1_alctUseCorrectedBx",
"me11_phase1_useDeadTimeZoning",
"me11_phase1_useDynamicStateMachineZone",
"me11_phase1_clctUseCorrectedBx",
"me11_phase1_tmbReadoutEarliest2",
"me11_phase1_tmbDropUsedAlcts",
"me11_phase1_clctToAlct",
"me11_phase1_tmbDropUsedClcts",
"me11_phase1_matchEarliestAlctME11Only",
"me11_phase1_matchEarliestClctME11Only",
}

Definition at line 36 of file CSCDBL1TPParametersExtended.h.

Referenced by CSCDBL1TPParametersExtended(), getValueBool(), and setValue().

◆ paramNamesInt_

const std::vector<std::string> CSCDBL1TPParametersExtended::paramNamesInt_
private

◆ paramsBool_

std::vector<int> CSCDBL1TPParametersExtended::paramsBool_
private

◆ paramsInt_

std::vector<int> CSCDBL1TPParametersExtended::paramsInt_
private
CSCDBL1TPParametersExtended::paramsInt_
std::vector< int > paramsInt_
Definition: CSCDBL1TPParametersExtended.h:33
findQualityFiles.v
v
Definition: findQualityFiles.py:179
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CSCDBL1TPParametersExtended::paramNamesBool_
const std::vector< std::string > paramNamesBool_
Definition: CSCDBL1TPParametersExtended.h:36
CSCDBL1TPParametersExtended::paramNamesInt_
const std::vector< std::string > paramNamesInt_
Definition: CSCDBL1TPParametersExtended.h:56
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
CSCDBL1TPParametersExtended::paramsBool_
std::vector< int > paramsBool_
Definition: CSCDBL1TPParametersExtended.h:34