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 &, int)
 
void setValue (const std::string &, bool)
 
 ~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 5 of file CSCDBL1TPParametersExtended.cc.

References paramNamesBool_, paramNamesInt_, paramsBool_, and paramsInt_.

5  {
6  paramsInt_.resize(paramNamesInt_.size());
7  paramsBool_.resize(paramNamesBool_.size());
8 }
const std::vector< std::string > paramNamesBool_
const std::vector< std::string > paramNamesInt_

◆ ~CSCDBL1TPParametersExtended()

CSCDBL1TPParametersExtended::~CSCDBL1TPParametersExtended ( )

Definition at line 10 of file CSCDBL1TPParametersExtended.cc.

10 {}

Member Function Documentation

◆ getValueBool()

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

Definition at line 17 of file CSCDBL1TPParametersExtended.cc.

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

17  {
18  const int index = std::find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
19  return paramsBool_[index];
20 }
const std::vector< std::string > paramNamesBool_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19

◆ getValueInt()

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

Definition at line 12 of file CSCDBL1TPParametersExtended.cc.

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

12  {
13  const int index = std::find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
14  return paramsInt_[index];
15 }
const std::vector< std::string > paramNamesInt_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19

◆ serialize()

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

◆ setValue() [1/2]

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

Definition at line 22 of file CSCDBL1TPParametersExtended.cc.

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

22  {
23  const int index = std::find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
24  paramsInt_[index] = v;
25 }
const std::vector< std::string > paramNamesInt_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19

◆ setValue() [2/2]

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

Definition at line 27 of file CSCDBL1TPParametersExtended.cc.

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

27  {
28  const int index = std::find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
29  paramsBool_[index] = v;
30 }
const std::vector< std::string > paramNamesBool_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19

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