test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( )

Constructor - Destructor.

Definition at line 4 of file DYTInfo.cc.

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

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

Definition at line 13 of file DYTInfo.cc.

13 {}

Member Function Documentation

void DYTInfo::CopyFrom ( const DYTInfo dytInfo)

copy from another DYTInfo

Definition at line 15 of file DYTInfo.cc.

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

Referenced by GlobalMuonRefitter::refit().

16 {
17  setNStUsed(dytInfo.NStUsed());
19  setUsedStations(dytInfo.UsedStations());
20  setIdChambers(dytInfo.IdChambers());
21  setThresholds(dytInfo.Thresholds());
22 }
const std::vector< DetId > & IdChambers() const
DetId vector of chamber with valid estimator.
Definition: DYTInfo.h:45
void setUsedStations(const std::map< int, bool > &ustMap)
Definition: DYTInfo.h:37
const std::vector< bool > & UsedStations() const
number of segments tested per muon station
Definition: DYTInfo.h:36
const std::vector< double > & Thresholds() const
vector of thresholds
Definition: DYTInfo.h:54
void setDYTEstimators(const std::map< int, double > &dytEstMap)
Definition: DYTInfo.h:26
const int NStUsed() const
number of stations used by DYT
Definition: DYTInfo.h:21
void setNStUsed(int NStUsed)
Definition: DYTInfo.h:22
void setIdChambers(const std::map< int, DetId > &IdChambersMap)
Definition: DYTInfo.h:46
void setThresholds(const std::map< int, double > &ThresholdsMap)
Definition: DYTInfo.h:55
const std::vector< double > & DYTEstimators() const
estimator values for all station
Definition: DYTInfo.h:25
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:66
const std::vector<DetId>& reco::DYTInfo::IdChambers ( ) const
inline

DetId vector of chamber with valid estimator.

Definition at line 45 of file DYTInfo.h.

References IdChambers_.

Referenced by CopyFrom().

45 { return IdChambers_; };
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:67
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:60
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) DYTEstimators_.push_back(dytEstMap.find(st)->second);
30  else DYTEstimators_.push_back(-1);
31  }
32  };
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:66
void reco::DYTInfo::setDYTEstimators ( const std::vector< double > &  EstValues)
inline

Definition at line 33 of file DYTInfo.h.

References DYTEstimators_.

33 { DYTEstimators_ = EstValues; }
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:66
void reco::DYTInfo::setIdChambers ( const std::map< int, DetId > &  IdChambersMap)
inline

Definition at line 46 of file DYTInfo.h.

References IdChambers_.

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

46  {
47  IdChambers_.clear();
48  for (int st = 1; st <= 4; st++)
49  IdChambers_.push_back(IdChambersMap.find(st)->second);
50  };
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:67
void reco::DYTInfo::setIdChambers ( const std::vector< DetId > &  IdChambersVal)
inline

Definition at line 51 of file DYTInfo.h.

References IdChambers_.

51 { IdChambers_ = IdChambersVal; };
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:67
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; };
const int NStUsed() const
number of stations used by DYT
Definition: DYTInfo.h:21
int NStUsed_
Definition: DYTInfo.h:60
void reco::DYTInfo::setThresholds ( const std::map< int, double > &  ThresholdsMap)
inline

Definition at line 55 of file DYTInfo.h.

References Thresholds_.

Referenced by CopyFrom().

55  {
56  Thresholds_.clear();
57  for (int st = 1; st <= 4; st++)
58  Thresholds_.push_back(ThresholdsMap.find(st)->second);
59  };
std::vector< double > Thresholds_
Definition: DYTInfo.h:68
void reco::DYTInfo::setThresholds ( const std::vector< double > &  ThresholdsVal)
inline

Definition at line 60 of file DYTInfo.h.

References Thresholds_.

60 { Thresholds_ = ThresholdsVal; };
std::vector< double > Thresholds_
Definition: DYTInfo.h:68
void reco::DYTInfo::setUsedStations ( const std::map< int, bool > &  ustMap)
inline

Definition at line 37 of file DYTInfo.h.

References UsedStations_.

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

37  {
38  UsedStations_.clear();
39  for (int st = 1; st <= 4; st++)
40  UsedStations_.push_back(ustMap.find(st)->second);
41  };
std::vector< bool > UsedStations_
Definition: DYTInfo.h:65
void reco::DYTInfo::setUsedStations ( const std::vector< bool >  ustVal)
inline

Definition at line 42 of file DYTInfo.h.

References UsedStations_.

42 { UsedStations_ = ustVal; };
std::vector< bool > UsedStations_
Definition: DYTInfo.h:65
const std::vector<double>& reco::DYTInfo::Thresholds ( ) const
inline

vector of thresholds

Definition at line 54 of file DYTInfo.h.

References Thresholds_.

Referenced by CopyFrom().

54 { return Thresholds_; };
std::vector< double > Thresholds_
Definition: DYTInfo.h:68
const std::vector<bool>& reco::DYTInfo::UsedStations ( ) const
inline

number of segments tested per muon station

Definition at line 36 of file DYTInfo.h.

References UsedStations_.

Referenced by CopyFrom().

36 { return UsedStations_; };
std::vector< bool > UsedStations_
Definition: DYTInfo.h:65

Member Data Documentation

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

Definition at line 66 of file DYTInfo.h.

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

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

Definition at line 67 of file DYTInfo.h.

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

int reco::DYTInfo::NStUsed_
private

Definition at line 60 of file DYTInfo.h.

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

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

Definition at line 68 of file DYTInfo.h.

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

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

Definition at line 65 of file DYTInfo.h.

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