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 ( )

Definition at line 3 of file CSCDBL1TPParametersExtended.cc.

References paramNamesBool_, paramNamesInt_, paramsBool_, and paramsInt_.

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

Definition at line 9 of file CSCDBL1TPParametersExtended.cc.

10 {
11 }

Member Function Documentation

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

Definition at line 19 of file CSCDBL1TPParametersExtended.cc.

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

20 {
21  const int index = find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
22  return paramsBool_[index];
23 }
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:20
int CSCDBL1TPParametersExtended::getValueInt ( const std::string &  s) const

Definition at line 13 of file CSCDBL1TPParametersExtended.cc.

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

14 {
15  const int index = find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
16  return paramsInt_[index];
17 }
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:20
template<class Archive >
void CSCDBL1TPParametersExtended::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void CSCDBL1TPParametersExtended::setValue ( const std::string &  s,
int  v 
)
void CSCDBL1TPParametersExtended::setValue ( const std::string &  s,
bool  v 
)

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 130 of file CSCDBL1TPParametersExtended.h.

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

Definition at line 130 of file CSCDBL1TPParametersExtended.h.

Member Data Documentation

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 37 of file CSCDBL1TPParametersExtended.h.

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

const std::vector<std::string> CSCDBL1TPParametersExtended::paramNamesInt_
private
std::vector<int> CSCDBL1TPParametersExtended::paramsBool_
private
std::vector<int> CSCDBL1TPParametersExtended::paramsInt_
private