CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
ThrParameters Class Reference

#include <ThrParameters.h>

Public Member Functions

const std::map< CSCDetId,
GlobalError > & 
GetCSCApeMap ()
 
const std::map< DTChamberId,
GlobalError > & 
GetDTApeMap ()
 
const DYTThrObjectgetInitialThresholds ()
 
const bool isValidThdDB ()
 
void setInitialThr (double thr0)
 
 ThrParameters (edm::ESHandle< DYTThrObject >, const AlignmentErrorsExtended &dtAlignmentErrors, const AlignmentErrorsExtended &cscAlignmentErrors)
 
 ~ThrParameters ()
 

Private Attributes

std::map< CSCDetId, GlobalErrorcscApeMap
 
std::map< DTChamberId,
GlobalError
dtApeMap
 
const DYTThrObjectdytThresholds
 
bool isValidThdDB_
 
double x0
 

Detailed Description

Definition at line 21 of file ThrParameters.h.

Constructor & Destructor Documentation

ThrParameters::ThrParameters ( edm::ESHandle< DYTThrObject dytThresholdsH,
const AlignmentErrorsExtended dtAlignmentErrors,
const AlignmentErrorsExtended cscAlignmentErrors 
)

Definition at line 7 of file ThrParameters.cc.

References relativeConstraints::error, edm::ESHandleBase::isValid(), AlignmentErrorsExtended::m_alignError, and edm::ESHandle< class >::product().

9  {
10  if (dytThresholdsH.isValid()) {
11  dytThresholds = dytThresholdsH.product();
12  isValidThdDB_ = true;
13  } else {
14  dytThresholds = nullptr;
15  isValidThdDB_ = false;
16  }
17 
18  // Ape are always filled even they're null
19  for (std::vector<AlignTransformErrorExtended>::const_iterator it = dtAlignmentErrors.m_alignError.begin();
20  it != dtAlignmentErrors.m_alignError.end();
21  it++) {
22  CLHEP::HepSymMatrix error = (*it).matrix();
23  GlobalError glbErr(error[0][0], error[1][0], error[1][1], error[2][0], error[2][1], error[2][2]);
24  DTChamberId DTid((*it).rawId());
25  dtApeMap.insert(pair<DTChamberId, GlobalError>(DTid, glbErr));
26  }
27  for (std::vector<AlignTransformErrorExtended>::const_iterator it = cscAlignmentErrors.m_alignError.begin();
28  it != cscAlignmentErrors.m_alignError.end();
29  it++) {
30  CLHEP::HepSymMatrix error = (*it).matrix();
31  GlobalError glbErr(error[0][0], error[1][0], error[1][1], error[2][0], error[2][1], error[2][2]);
32  CSCDetId CSCid((*it).rawId());
33  cscApeMap.insert(pair<CSCDetId, GlobalError>(CSCid, glbErr));
34  }
35 }
const DYTThrObject * dytThresholds
Definition: ThrParameters.h:37
std::vector< AlignTransformErrorExtended > m_alignError
std::map< CSCDetId, GlobalError > cscApeMap
Definition: ThrParameters.h:39
T const * product() const
Definition: ESHandle.h:86
bool isValid() const
Definition: ESHandle.h:44
std::map< DTChamberId, GlobalError > dtApeMap
Definition: ThrParameters.h:38
ThrParameters::~ThrParameters ( )

Definition at line 37 of file ThrParameters.cc.

37 {}

Member Function Documentation

const std::map<CSCDetId, GlobalError>& ThrParameters::GetCSCApeMap ( )
inline

Definition at line 31 of file ThrParameters.h.

References cscApeMap.

31 { return cscApeMap; };
std::map< CSCDetId, GlobalError > cscApeMap
Definition: ThrParameters.h:39
const std::map<DTChamberId, GlobalError>& ThrParameters::GetDTApeMap ( )
inline

Definition at line 30 of file ThrParameters.h.

References dtApeMap.

30 { return dtApeMap; };
std::map< DTChamberId, GlobalError > dtApeMap
Definition: ThrParameters.h:38
const DYTThrObject* ThrParameters::getInitialThresholds ( )
inline

Definition at line 32 of file ThrParameters.h.

References dytThresholds.

32 { return dytThresholds; }
const DYTThrObject * dytThresholds
Definition: ThrParameters.h:37
const bool ThrParameters::isValidThdDB ( )
inline

Definition at line 29 of file ThrParameters.h.

References isValidThdDB_.

29 { return isValidThdDB_; };
void ThrParameters::setInitialThr ( double  thr0)
inline

Definition at line 28 of file ThrParameters.h.

References x0.

28 { x0 = thr0; };

Member Data Documentation

std::map<CSCDetId, GlobalError> ThrParameters::cscApeMap
private

Definition at line 39 of file ThrParameters.h.

Referenced by GetCSCApeMap().

std::map<DTChamberId, GlobalError> ThrParameters::dtApeMap
private

Definition at line 38 of file ThrParameters.h.

Referenced by GetDTApeMap().

const DYTThrObject* ThrParameters::dytThresholds
private

Definition at line 37 of file ThrParameters.h.

Referenced by getInitialThresholds().

bool ThrParameters::isValidThdDB_
private

Definition at line 36 of file ThrParameters.h.

Referenced by isValidThdDB().

double ThrParameters::x0
private

Definition at line 35 of file ThrParameters.h.

Referenced by setInitialThr().