CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Protected Attributes
HIPAlignableSpecificParameters Class Reference

#include <HIPAlignableSpecificParameters.h>

Public Member Functions

 HIPAlignableSpecificParameters (const Alignable *aliObj_, bool defaultFlag_=false)
 
 HIPAlignableSpecificParameters (const HIPAlignableSpecificParameters &other)
 
align::ID id () const
 
bool isDefault () const
 
bool matchAlignable (const Alignable *ali) const
 
align::StructureType objId () const
 
 ~HIPAlignableSpecificParameters ()
 

Public Attributes

bool applyPixelProbCut
 
double maxHitPull
 
double maxPixelProbQ
 
double maxPixelProbXY
 
double maxRelParError
 
int minNHits
 
double minPixelProbQ
 
double minPixelProbXY
 
double minRelParError
 
bool usePixelProbXYOrProbQ
 

Protected Attributes

const AlignablealiObj
 
const bool defaultFlag
 

Detailed Description

Definition at line 7 of file HIPAlignableSpecificParameters.h.

Constructor & Destructor Documentation

HIPAlignableSpecificParameters::HIPAlignableSpecificParameters ( const Alignable aliObj_,
bool  defaultFlag_ = false 
)

Definition at line 4 of file HIPAlignableSpecificParameters.cc.

4  :
5 aliObj(aliObj_),
6 defaultFlag(defaultFlag_),
9 minNHits(0),
10 maxHitPull(-1),
11 applyPixelProbCut(false),
15 minPixelProbQ(0),
17 {}
HIPAlignableSpecificParameters::HIPAlignableSpecificParameters ( const HIPAlignableSpecificParameters other)

Definition at line 19 of file HIPAlignableSpecificParameters.cc.

19  :
20 aliObj(other.aliObj),
24 minNHits(other.minNHits),
25 maxHitPull(other.maxHitPull),
32 {}
HIPAlignableSpecificParameters::~HIPAlignableSpecificParameters ( )
inline

Definition at line 28 of file HIPAlignableSpecificParameters.h.

References id(), isDefault(), matchAlignable(), and objId().

28 {}

Member Function Documentation

align::ID HIPAlignableSpecificParameters::id ( ) const

Definition at line 34 of file HIPAlignableSpecificParameters.cc.

References aliObj, and Alignable::id().

Referenced by HIPAlignmentAlgorithm::initialize(), and ~HIPAlignableSpecificParameters().

34 { if (aliObj!=nullptr) return aliObj->id(); else return 0; }
align::ID id() const
Return the ID of Alignable, i.e. DetId of &#39;first&#39; component GeomDet(Unit).
Definition: Alignable.h:189
bool HIPAlignableSpecificParameters::isDefault ( ) const
bool HIPAlignableSpecificParameters::matchAlignable ( const Alignable ali) const

Definition at line 37 of file HIPAlignableSpecificParameters.cc.

References aliObj, Alignable::deepComponents(), and mps_fire::result.

Referenced by ~HIPAlignableSpecificParameters().

37  {
38  if (aliObj==(Alignable*)0) return false;
39  bool result = (aliObj==ali);
40  if (!result){ // Check deep components of the alignable for this specification
41  for (auto const& alideep : aliObj->deepComponents()){
42  if (alideep==ali){ result = true; break; }
43  }
44  //if (result) edm::LogWarning("Alignment") // This is correct. Ideally one should specify the same alignables aligned in the specifications
45  // << "[HIPAlignableSpecificParameters::matchAlignable] Alignment object with id " << ali->id() << " / " << ali->alignableObjectId()
46  // << " was found as a component of " << this->id() << " / " << this->objId();
47  }
48  return result;
49 }
const Alignables & deepComponents() const
Definition: Alignable.h:75
align::StructureType HIPAlignableSpecificParameters::objId ( ) const

Definition at line 35 of file HIPAlignableSpecificParameters.cc.

References Alignable::alignableObjectId(), aliObj, and align::invalid.

Referenced by HIPAlignmentAlgorithm::initialize(), and ~HIPAlignableSpecificParameters().

35 { if (aliObj!=nullptr) return aliObj->alignableObjectId(); else return align::invalid; }
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.

Member Data Documentation

const Alignable* HIPAlignableSpecificParameters::aliObj
protected

Definition at line 10 of file HIPAlignableSpecificParameters.h.

Referenced by id(), matchAlignable(), and objId().

bool HIPAlignableSpecificParameters::applyPixelProbCut
const bool HIPAlignableSpecificParameters::defaultFlag
protected

Definition at line 11 of file HIPAlignableSpecificParameters.h.

Referenced by isDefault().

double HIPAlignableSpecificParameters::maxHitPull
double HIPAlignableSpecificParameters::maxPixelProbQ
double HIPAlignableSpecificParameters::maxPixelProbXY
double HIPAlignableSpecificParameters::maxRelParError
int HIPAlignableSpecificParameters::minNHits
double HIPAlignableSpecificParameters::minPixelProbQ
double HIPAlignableSpecificParameters::minPixelProbXY
double HIPAlignableSpecificParameters::minRelParError
bool HIPAlignableSpecificParameters::usePixelProbXYOrProbQ