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.

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 }

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

◆ ~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.

14  {
15  setNStUsed(dytInfo.NStUsed());
17  setUsedStations(dytInfo.UsedStations());
18  setIdChambers(dytInfo.IdChambers());
19  setThresholds(dytInfo.Thresholds());
20 }

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

Referenced by GlobalMuonRefitter::refit().

◆ DYTEstimators()

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

estimator values for all station

Definition at line 25 of file DYTInfo.h.

25 { return DYTEstimators_; };

References DYTEstimators_.

Referenced by CopyFrom().

◆ 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.

47 { return IdChambers_; };

References IdChambers_.

Referenced by CopyFrom().

◆ NStUsed()

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

number of stations used by DYT

Definition at line 21 of file DYTInfo.h.

21 { return NStUsed_; };

References NStUsed_.

Referenced by CopyFrom(), and setNStUsed().

◆ setDYTEstimators() [1/2]

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

Definition at line 26 of file DYTInfo.h.

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  };

References DYTEstimators_.

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

◆ setDYTEstimators() [2/2]

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

Definition at line 35 of file DYTInfo.h.

35 { DYTEstimators_ = EstValues; }

References DYTEstimators_.

◆ setIdChambers() [1/2]

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

Definition at line 48 of file DYTInfo.h.

48  {
49  IdChambers_.clear();
50  for (int st = 1; st <= 4; st++)
51  IdChambers_.push_back(IdChambersMap.find(st)->second);
52  };

References IdChambers_.

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

◆ setIdChambers() [2/2]

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

Definition at line 53 of file DYTInfo.h.

53 { IdChambers_ = IdChambersVal; };

References IdChambers_.

◆ setNStUsed()

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

Definition at line 22 of file DYTInfo.h.

22 { NStUsed_ = NStUsed; };

References NStUsed(), and NStUsed_.

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

◆ setThresholds() [1/2]

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

Definition at line 57 of file DYTInfo.h.

57  {
58  Thresholds_.clear();
59  for (int st = 1; st <= 4; st++)
60  Thresholds_.push_back(ThresholdsMap.find(st)->second);
61  };

References Thresholds_.

Referenced by CopyFrom().

◆ setThresholds() [2/2]

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

Definition at line 62 of file DYTInfo.h.

62 { Thresholds_ = ThresholdsVal; };

References Thresholds_.

◆ setUsedStations() [1/2]

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

Definition at line 39 of file DYTInfo.h.

39  {
40  UsedStations_.clear();
41  for (int st = 1; st <= 4; st++)
42  UsedStations_.push_back(ustMap.find(st)->second);
43  };

References UsedStations_.

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

◆ setUsedStations() [2/2]

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

Definition at line 44 of file DYTInfo.h.

44 { UsedStations_ = ustVal; };

References UsedStations_.

◆ Thresholds()

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

vector of thresholds

Definition at line 56 of file DYTInfo.h.

56 { return Thresholds_; };

References Thresholds_.

Referenced by CopyFrom().

◆ 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.

38 { return UsedStations_; };

References UsedStations_.

Referenced by CopyFrom().

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

reco::DYTInfo::UsedStations
const std::vector< bool > & UsedStations() const
number of segments tested per muon station
Definition: DYTInfo.h:38
reco::DYTInfo::DYTEstimators
const std::vector< double > & DYTEstimators() const
estimator values for all station
Definition: DYTInfo.h:25
reco::DYTInfo::UsedStations_
std::vector< bool > UsedStations_
Definition: DYTInfo.h:66
reco::DYTInfo::setThresholds
void setThresholds(const std::map< int, double > &ThresholdsMap)
Definition: DYTInfo.h:57
reco::DYTInfo::IdChambers
const std::vector< DetId > & IdChambers() const
DetId vector of chamber with valid estimator.
Definition: DYTInfo.h:47
DetId
Definition: DetId.h:17
reco::DYTInfo::DYTEstimators_
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:67
reco::DYTInfo::setIdChambers
void setIdChambers(const std::map< int, DetId > &IdChambersMap)
Definition: DYTInfo.h:48
reco::DYTInfo::setUsedStations
void setUsedStations(const std::map< int, bool > &ustMap)
Definition: DYTInfo.h:39
reco::DYTInfo::NStUsed_
int NStUsed_
Definition: DYTInfo.h:62
reco::DYTInfo::IdChambers_
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:68
reco::DYTInfo::setDYTEstimators
void setDYTEstimators(const std::map< int, double > &dytEstMap)
Definition: DYTInfo.h:26
reco::DYTInfo::NStUsed
const int NStUsed() const
number of stations used by DYT
Definition: DYTInfo.h:21
reco::DYTInfo::setNStUsed
void setNStUsed(int NStUsed)
Definition: DYTInfo.h:22
reco::DYTInfo::Thresholds
const std::vector< double > & Thresholds() const
vector of thresholds
Definition: DYTInfo.h:56
reco::DYTInfo::Thresholds_
std::vector< double > Thresholds_
Definition: DYTInfo.h:69