CMS 3D CMS Logo

List of all members | Public Member Functions
EntryLengthAffCentre Class Reference

#include <EntryLengthAffCentre.h>

Inheritance diagram for EntryLengthAffCentre:
EntryLength Entry

Public Member Functions

void displace (ALIdouble disp) override
 
void displaceOriginal (ALIdouble disp) override
 
void displaceOriginalOriginal (ALIdouble disp) override
 
 EntryLengthAffCentre (const ALIstring &type)
 
virtual void FillName (const ALIstring &name)
 
ALIdouble valueDisplaced () const override
 
ALIdouble valueInGlobalReferenceFrame () const override
 
 ~EntryLengthAffCentre () override
 
- Public Member Functions inherited from EntryLength
 EntryLength (const ALIstring &type)
 
ALIdouble OutputSigmaDimensionFactor () const override
 
ALIdouble OutputValueDimensionFactor () const override
 
ALIdouble SigmaDimensionFactor () const override
 
ALIdouble startingDisplacement () override
 
ALIdouble ValueDimensionFactor () const override
 
 ~EntryLength () override
 
- Public Member Functions inherited from Entry
void addFittedDisplacementToValue (const ALIdouble val)
 
 Entry (const ALIstring &type)
 
void fill (const std::vector< ALIstring > &wordlist)
 
virtual void fillName (const ALIstring &name)
 
void fillNull ()
 
ALIint fitPos () const
 
EntryDim getDimType () const
 
ALIdouble lastAdditionToValueDisplacementByFitting () const
 
const ALIstring longName () const
 
const ALIstringname () const
 
OpticalObjectOptOCurrent () const
 
ALIint quality () const
 
void resetValueDisplacementByFitting ()
 
void setFitPos (const ALIint fitpos)
 
void setLastAdditionToValueDisplacementByFitting (const ALIdouble val)
 
void setName (const ALIstring &name)
 
void setOptOCurrent (OpticalObject *opto)
 
void setQuality (ALIuint qual)
 
void setSigma (ALIdouble sig)
 
void setType (ALIstring type)
 
void setValue (ALIdouble val)
 
ALIdouble sigma () const
 
ALIdouble sigmaOriginalOriginal () const
 
void substractToHalfFittedDisplacementToValue ()
 
const ALIstringtype () const
 
ALIdouble value () const
 
ALIdouble valueDisplacementByFitting () const
 
ALIdouble valueOriginalOriginal () const
 
virtual ~Entry ()
 

Additional Inherited Members

- Protected Attributes inherited from Entry
ALIint fitPos_
 
ALIdouble lastAdditionToValueDisplacementByFitting_
 
ALIstring name_
 
OpticalObjectOptOCurrent_
 
ALIuint quality_
 
ALIdouble sigma_
 
ALIdouble sigmaOriginalOriginal_
 
EntryDim theDimType
 
ALIstring type_
 
ALIdouble value_
 
ALIdouble valueDisplacementByFitting_
 
ALIdouble valueOriginalOriginal_
 

Detailed Description

Definition at line 16 of file EntryLengthAffCentre.h.

Constructor & Destructor Documentation

EntryLengthAffCentre::EntryLengthAffCentre ( const ALIstring type)

Definition at line 14 of file EntryLengthAffCentre.cc.

15  : EntryLength( type )
16 {
17 }
type
Definition: HCALResponse.h:21
EntryLength(const ALIstring &type)
Definition: EntryLength.h:21
EntryLengthAffCentre::~EntryLengthAffCentre ( )
inlineoverride

Member Function Documentation

void EntryLengthAffCentre::displace ( ALIdouble  disp)
overridevirtual

Reimplemented from Entry.

Definition at line 32 of file EntryLengthAffCentre.cc.

References gather_cfg::cout, ALIUtils::debug, OpticalObject::displaceCentreGlob(), Entry::name(), Entry::name_, Entry::OptOCurrent(), XCoor, YCoor, and ZCoor.

Referenced by ~EntryLengthAffCentre().

33 {
34  if(ALIUtils::debug>=9) std::cout << "EntryLengthAffCentre::Displace" << disp <<std::endl;
35  ALIint namelength = name().length()-1;
36  XYZcoor axisNo = XCoor;
37  if ( name_[namelength] == 'X' ) {
38  axisNo = XCoor;
39  } else if ( name_[namelength] == 'Y' ) {
40  axisNo = YCoor;
41  } else if ( name_[namelength] == 'Z' ) {
42  axisNo = ZCoor;
43  }
44  OptOCurrent()->displaceCentreGlob( axisNo, disp );
45 
46 }
int ALIint
Definition: CocoaGlobals.h:15
static ALIint debug
Definition: ALIUtils.h:36
XYZcoor
Definition: OpticalObject.h:33
void displaceCentreGlob(const XYZcoor coor, const ALIdouble disp)
const ALIstring & name() const
Definition: Entry.h:52
ALIstring name_
Definition: Entry.h:101
OpticalObject * OptOCurrent() const
Definition: Entry.h:61
void EntryLengthAffCentre::displaceOriginal ( ALIdouble  disp)
overridevirtual

Reimplemented from Entry.

Definition at line 50 of file EntryLengthAffCentre.cc.

References gather_cfg::cout, ALIUtils::debug, OpticalObject::displaceCentreGlobOriginal(), Entry::name(), Entry::name_, Entry::OptOCurrent(), XCoor, YCoor, and ZCoor.

Referenced by ~EntryLengthAffCentre().

51 {
52  if(ALIUtils::debug>=9) std::cout << "EntryLengthAffCentre::DisplaceOriginal" << disp <<std::endl;
53  ALIint namelength = name().length()-1;
54  if ( name_[namelength] == 'X' ) {
56  } else if ( name_[namelength] == 'Y' ) {
58  } else if ( name_[namelength] == 'Z' ) {
60  }
61 
62 }
void displaceCentreGlobOriginal(const XYZcoor coor, const ALIdouble disp)
int ALIint
Definition: CocoaGlobals.h:15
static ALIint debug
Definition: ALIUtils.h:36
const ALIstring & name() const
Definition: Entry.h:52
ALIstring name_
Definition: Entry.h:101
OpticalObject * OptOCurrent() const
Definition: Entry.h:61
void EntryLengthAffCentre::displaceOriginalOriginal ( ALIdouble  disp)
overridevirtual

Reimplemented from Entry.

Definition at line 65 of file EntryLengthAffCentre.cc.

References gather_cfg::cout, ALIUtils::debug, OpticalObject::displaceCentreGlobOriginalOriginal(), Entry::name(), Entry::name_, Entry::OptOCurrent(), XCoor, YCoor, and ZCoor.

Referenced by ~EntryLengthAffCentre().

66 {
67  if(ALIUtils::debug>=9) std::cout << "EntryLengthAffCentre::DisplaceOriginalOriginal" << disp <<std::endl;
68  ALIint namelength = name().length()-1;
69  if ( name_[namelength] == 'X' ) {
71  } else if ( name_[namelength] == 'Y' ) {
73  } else if ( name_[namelength] == 'Z' ) {
75  }
76 
77 }
int ALIint
Definition: CocoaGlobals.h:15
static ALIint debug
Definition: ALIUtils.h:36
void displaceCentreGlobOriginalOriginal(const XYZcoor coor, const ALIdouble disp)
const ALIstring & name() const
Definition: Entry.h:52
ALIstring name_
Definition: Entry.h:101
OpticalObject * OptOCurrent() const
Definition: Entry.h:61
void EntryLengthAffCentre::FillName ( const ALIstring name)
virtual

Definition at line 21 of file EntryLengthAffCentre.cc.

References Entry::name(), groupFilesInBlocks::nn, and Entry::setName().

Referenced by ~EntryLengthAffCentre().

22 {
23  ALIstring nn = "Centre ";
24  nn += name;
25  setName( nn );
26 }
void setName(const ALIstring &name)
Definition: Entry.h:75
const ALIstring & name() const
Definition: Entry.h:52
std::string ALIstring
Definition: CocoaGlobals.h:9
ALIdouble EntryLengthAffCentre::valueDisplaced ( ) const
overridevirtual

Reimplemented from Entry.

Definition at line 88 of file EntryLengthAffCentre.cc.

References OpticalObject::centreGlob(), OpticalObject::centreGlobOriginal(), gather_cfg::cout, ALIUtils::debug, Entry::name(), OpticalObject::name(), Entry::OptOCurrent(), and class-composition::parent.

Referenced by ~EntryLengthAffCentre().

89 {
90  ALIdouble vdisp = 0.;
91 
92  CLHEP::Hep3Vector cdisp = OptOCurrent()->centreGlob() - OptOCurrent()->centreGlobOriginal();
93  CLHEP::HepRotation rmParentInv = inverseOf( OptOCurrent()->parent()->rmGlob() );
94  cdisp = rmParentInv * cdisp;
95 
96  if( name() == "centre_X" ) {
97  return cdisp.x();
98  }else if( name() == "centre_Y" ) {
99  return cdisp.y();
100  //- return OptOCurrent()->centreLocal().y() - value();
101  }else if( name() == "centre_Z" ) {
102  return cdisp.z();
103  }
104 
105  if ( ALIUtils::debug >= 5 ) std::cout << name() << " in OptO " << OptOCurrent()->name() << " valueDisplaced: " << vdisp << std::endl;
106 
107  return 0.; // to avoid warning
108 }
long double ALIdouble
Definition: CocoaGlobals.h:11
static ALIint debug
Definition: ALIUtils.h:36
const CLHEP::Hep3Vector & centreGlobOriginal() const
Definition: OpticalObject.h:95
const ALIstring & name() const
Definition: Entry.h:52
const CLHEP::Hep3Vector & centreGlob() const
Definition: OpticalObject.h:85
const ALIstring & name() const
Definition: OpticalObject.h:60
OpticalObject * OptOCurrent() const
Definition: Entry.h:61
ALIdouble EntryLengthAffCentre::valueInGlobalReferenceFrame ( ) const
overridevirtual

Reimplemented from Entry.

Definition at line 80 of file EntryLengthAffCentre.cc.

References a.

Referenced by ~EntryLengthAffCentre().

81 {
82  ALIdouble a=2.;
83 
84  return a;
85 }
long double ALIdouble
Definition: CocoaGlobals.h:11
double a
Definition: hdecay.h:121