CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::DYTInfo Class Reference

#include <DYTInfo.h>

Public Member Functions

void CopyFrom (const DYTInfo &)
 copy from another DYTInfo More...
 
const std::vector< double > & DYTEstimators () const
 estimator values for all station More...
 
 DYTInfo ()
 Constructor - Destructor. More...
 
const std::vector< DetId > & IdChambers () const
 DetId vector of chamber with valid estimator. More...
 
const int NStUsed () const
 number of stations used by DYT More...
 
void setDYTEstimators (const std::map< int, double > &dytEstMap)
 
void setDYTEstimators (const std::vector< double > &EstValues)
 
void setIdChambers (const std::map< int, DetId > &IdChambersMap)
 
void setIdChambers (const std::vector< DetId > &IdChambersVal)
 
void setNStUsed (int NStUsed)
 
void setThresholds (const std::map< int, double > &ThresholdsMap)
 
void setThresholds (const std::vector< double > &ThresholdsVal)
 
void setUsedStations (const std::map< int, bool > &ustMap)
 
void setUsedStations (const std::vector< bool > ustVal)
 
const std::vector< double > & Thresholds () const
 vector of thresholds More...
 
const std::vector< bool > & UsedStations () const
 number of segments tested per muon station More...
 
 ~DYTInfo ()
 

Private Attributes

std::vector< double > DYTEstimators_
 
std::vector< DetIdIdChambers_
 
int NStUsed_
 
std::vector< double > Thresholds_
 
std::vector< bool > UsedStations_
 

Detailed Description

Definition at line 11 of file DYTInfo.h.

Constructor & Destructor Documentation

◆ DYTInfo()

DYTInfo::DYTInfo ( )

Constructor - Destructor.

Definition at line 4 of file DYTInfo.cc.

References DYTEstimators_, IdChambers_, NStUsed_, Thresholds_, and UsedStations_.

4  {
5  NStUsed_ = 0;
6  DYTEstimators_.assign(4, -1);
7  UsedStations_.assign(4, false);
8  IdChambers_.assign(4, DetId());
9  Thresholds_.assign(4, -1);
10 }
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:68
std::vector< bool > UsedStations_
Definition: DYTInfo.h:66
std::vector< double > Thresholds_
Definition: DYTInfo.h:69
Definition: DetId.h:17
int NStUsed_
Definition: DYTInfo.h:62
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:67

◆ ~DYTInfo()

DYTInfo::~DYTInfo ( )

Definition at line 12 of file DYTInfo.cc.

12 {}

Member Function Documentation

◆ CopyFrom()

void DYTInfo::CopyFrom ( const DYTInfo dytInfo)

copy from another DYTInfo

Definition at line 14 of file DYTInfo.cc.

References DYTEstimators(), IdChambers(), NStUsed(), setDYTEstimators(), setIdChambers(), setNStUsed(), setThresholds(), setUsedStations(), Thresholds(), and UsedStations().

Referenced by GlobalMuonRefitter::refit().

14  {
15  setNStUsed(dytInfo.NStUsed());
17  setUsedStations(dytInfo.UsedStations());
18  setIdChambers(dytInfo.IdChambers());
19  setThresholds(dytInfo.Thresholds());
20 }
const std::vector< double > & Thresholds() const
vector of thresholds
Definition: DYTInfo.h:56
const std::vector< DetId > & IdChambers() const
DetId vector of chamber with valid estimator.
Definition: DYTInfo.h:47
void setUsedStations(const std::map< int, bool > &ustMap)
Definition: DYTInfo.h:39
const std::vector< double > & DYTEstimators() const
estimator values for all station
Definition: DYTInfo.h:25
void setDYTEstimators(const std::map< int, double > &dytEstMap)
Definition: DYTInfo.h:26
void setNStUsed(int NStUsed)
Definition: DYTInfo.h:22
void setIdChambers(const std::map< int, DetId > &IdChambersMap)
Definition: DYTInfo.h:48
const std::vector< bool > & UsedStations() const
number of segments tested per muon station
Definition: DYTInfo.h:38
void setThresholds(const std::map< int, double > &ThresholdsMap)
Definition: DYTInfo.h:57
const int NStUsed() const
number of stations used by DYT
Definition: DYTInfo.h:21

◆ DYTEstimators()

const std::vector<double>& reco::DYTInfo::DYTEstimators ( ) const
inline

estimator values for all station

Definition at line 25 of file DYTInfo.h.

References DYTEstimators_.

Referenced by CopyFrom().

25 { return DYTEstimators_; };
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:67

◆ IdChambers()

const std::vector<DetId>& reco::DYTInfo::IdChambers ( ) const
inline

DetId vector of chamber with valid estimator.

Definition at line 47 of file DYTInfo.h.

References IdChambers_.

Referenced by CopyFrom().

47 { return IdChambers_; };
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:68

◆ NStUsed()

const int reco::DYTInfo::NStUsed ( ) const
inline

number of stations used by DYT

Definition at line 21 of file DYTInfo.h.

References NStUsed_.

Referenced by CopyFrom(), and setNStUsed().

21 { return NStUsed_; };
int NStUsed_
Definition: DYTInfo.h:62

◆ setDYTEstimators() [1/2]

void reco::DYTInfo::setDYTEstimators ( const std::map< int, double > &  dytEstMap)
inline

Definition at line 26 of file DYTInfo.h.

References DYTEstimators_.

Referenced by CopyFrom(), and DynamicTruncation::getDYTInfo().

26  {
27  DYTEstimators_.clear();
28  for (int st = 1; st <= 4; st++) {
29  if (dytEstMap.count(st) > 0)
30  DYTEstimators_.push_back(dytEstMap.find(st)->second);
31  else
32  DYTEstimators_.push_back(-1);
33  }
34  };
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:67

◆ setDYTEstimators() [2/2]

void reco::DYTInfo::setDYTEstimators ( const std::vector< double > &  EstValues)
inline

Definition at line 35 of file DYTInfo.h.

References DYTEstimators_.

35 { DYTEstimators_ = EstValues; }
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:67

◆ setIdChambers() [1/2]

void reco::DYTInfo::setIdChambers ( const std::map< int, DetId > &  IdChambersMap)
inline

Definition at line 48 of file DYTInfo.h.

References IdChambers_.

Referenced by CopyFrom(), and DynamicTruncation::getDYTInfo().

48  {
49  IdChambers_.clear();
50  for (int st = 1; st <= 4; st++)
51  IdChambers_.push_back(IdChambersMap.find(st)->second);
52  };
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:68

◆ setIdChambers() [2/2]

void reco::DYTInfo::setIdChambers ( const std::vector< DetId > &  IdChambersVal)
inline

Definition at line 53 of file DYTInfo.h.

References IdChambers_.

53 { IdChambers_ = IdChambersVal; };
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:68

◆ setNStUsed()

void reco::DYTInfo::setNStUsed ( int  NStUsed)
inline

Definition at line 22 of file DYTInfo.h.

References NStUsed(), and NStUsed_.

Referenced by CopyFrom(), and DynamicTruncation::getDYTInfo().

22 { NStUsed_ = NStUsed; };
int NStUsed_
Definition: DYTInfo.h:62
const int NStUsed() const
number of stations used by DYT
Definition: DYTInfo.h:21

◆ setThresholds() [1/2]

void reco::DYTInfo::setThresholds ( const std::map< int, double > &  ThresholdsMap)
inline

Definition at line 57 of file DYTInfo.h.

References Thresholds_.

Referenced by CopyFrom().

57  {
58  Thresholds_.clear();
59  for (int st = 1; st <= 4; st++)
60  Thresholds_.push_back(ThresholdsMap.find(st)->second);
61  };
std::vector< double > Thresholds_
Definition: DYTInfo.h:69

◆ setThresholds() [2/2]

void reco::DYTInfo::setThresholds ( const std::vector< double > &  ThresholdsVal)
inline

Definition at line 62 of file DYTInfo.h.

References Thresholds_.

62 { Thresholds_ = ThresholdsVal; };
std::vector< double > Thresholds_
Definition: DYTInfo.h:69

◆ setUsedStations() [1/2]

void reco::DYTInfo::setUsedStations ( const std::map< int, bool > &  ustMap)
inline

Definition at line 39 of file DYTInfo.h.

References UsedStations_.

Referenced by CopyFrom(), and DynamicTruncation::getDYTInfo().

39  {
40  UsedStations_.clear();
41  for (int st = 1; st <= 4; st++)
42  UsedStations_.push_back(ustMap.find(st)->second);
43  };
std::vector< bool > UsedStations_
Definition: DYTInfo.h:66

◆ setUsedStations() [2/2]

void reco::DYTInfo::setUsedStations ( const std::vector< bool >  ustVal)
inline

Definition at line 44 of file DYTInfo.h.

References UsedStations_.

44 { UsedStations_ = ustVal; };
std::vector< bool > UsedStations_
Definition: DYTInfo.h:66

◆ Thresholds()

const std::vector<double>& reco::DYTInfo::Thresholds ( ) const
inline

vector of thresholds

Definition at line 56 of file DYTInfo.h.

References Thresholds_.

Referenced by CopyFrom().

56 { return Thresholds_; };
std::vector< double > Thresholds_
Definition: DYTInfo.h:69

◆ UsedStations()

const std::vector<bool>& reco::DYTInfo::UsedStations ( ) const
inline

number of segments tested per muon station

Definition at line 38 of file DYTInfo.h.

References UsedStations_.

Referenced by CopyFrom().

38 { return UsedStations_; };
std::vector< bool > UsedStations_
Definition: DYTInfo.h:66

Member Data Documentation

◆ DYTEstimators_

std::vector<double> reco::DYTInfo::DYTEstimators_
private

Definition at line 67 of file DYTInfo.h.

Referenced by DYTEstimators(), DYTInfo(), and setDYTEstimators().

◆ IdChambers_

std::vector<DetId> reco::DYTInfo::IdChambers_
private

Definition at line 68 of file DYTInfo.h.

Referenced by DYTInfo(), IdChambers(), and setIdChambers().

◆ NStUsed_

int reco::DYTInfo::NStUsed_
private

Definition at line 62 of file DYTInfo.h.

Referenced by DYTInfo(), NStUsed(), and setNStUsed().

◆ Thresholds_

std::vector<double> reco::DYTInfo::Thresholds_
private

Definition at line 69 of file DYTInfo.h.

Referenced by DYTInfo(), setThresholds(), and Thresholds().

◆ UsedStations_

std::vector<bool> reco::DYTInfo::UsedStations_
private

Definition at line 66 of file DYTInfo.h.

Referenced by DYTInfo(), setUsedStations(), and UsedStations().