CMS 3D CMS Logo

Public Member Functions | Private Attributes

ALIRmDataFromFile Class Reference

#include <ALIRmDataFromFile.h>

List of all members.

Public Member Functions

 ALIRmDataFromFile ()
ALIdouble angleX () const
ALIdouble angleY () const
ALIdouble angleZ () const
void constructRm ()
ALIstring dataFilled () const
CLHEP::HepRotation rm () const
ALIbool setAngle (const ALIstring &coord, const ALIdouble val)
ALIbool setAngleX (const ALIdouble val)
ALIbool setAngleY (const ALIdouble val)
ALIbool setAngleZ (const ALIdouble val)
 ~ALIRmDataFromFile ()

Private Attributes

ALIdouble theAngleX
ALIdouble theAngleY
ALIdouble theAngleZ
ALIstring theDataFilled
CLHEP::HepRotation theRm

Detailed Description

Definition at line 15 of file ALIRmDataFromFile.h.


Constructor & Destructor Documentation

ALIRmDataFromFile::ALIRmDataFromFile ( )

Definition at line 12 of file ALIRmDataFromFile.cc.

{
}
ALIRmDataFromFile::~ALIRmDataFromFile ( ) [inline]

Definition at line 20 of file ALIRmDataFromFile.h.

{};

Member Function Documentation

ALIdouble ALIRmDataFromFile::angleX ( ) const [inline]

Definition at line 29 of file ALIRmDataFromFile.h.

References theAngleX.

{ return theAngleX; }
ALIdouble ALIRmDataFromFile::angleY ( ) const [inline]

Definition at line 30 of file ALIRmDataFromFile.h.

References theAngleY.

{ return theAngleY; }
ALIdouble ALIRmDataFromFile::angleZ ( ) const [inline]

Definition at line 31 of file ALIRmDataFromFile.h.

References theAngleZ.

{ return theAngleZ; }
void ALIRmDataFromFile::constructRm ( )

Definition at line 57 of file ALIRmDataFromFile.cc.

References dtNoiseDBValidation_cfg::cerr, theAngleX, theAngleY, theAngleZ, theDataFilled, and theRm.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

{
  if( theDataFilled.find("X") == std::string::npos ||  theDataFilled.find("Y") == std::string::npos ||  theDataFilled.find("Z") == std::string::npos ){
    std::cerr << "!!!  ALIRmDataFromFile::constructRm. FATAL ERROR: building rm while one angle is missing: " << theDataFilled << std::endl;
  } else {
    theRm = CLHEP::HepRotation();
    theRm.rotateX( theAngleX );
    theRm.rotateY( theAngleY );
    theRm.rotateZ( theAngleZ );
  }

}
ALIstring ALIRmDataFromFile::dataFilled ( ) const [inline]

Definition at line 33 of file ALIRmDataFromFile.h.

References theDataFilled.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

{ return theDataFilled; }
CLHEP::HepRotation ALIRmDataFromFile::rm ( ) const [inline]

Definition at line 32 of file ALIRmDataFromFile.h.

References theRm.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

{ return theRm; }
ALIbool ALIRmDataFromFile::setAngle ( const ALIstring coord,
const ALIdouble  val 
)

Definition at line 17 of file ALIRmDataFromFile.cc.

References dtNoiseDBValidation_cfg::cerr, exception, setAngleX(), setAngleY(), and setAngleZ().

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

                                                                                {

  if( coord == "X" ) {
    return setAngleX( val );
  }else if( coord == "Y" ) {
    return setAngleY( val );
  }else if( coord == "Z" ) {
    return setAngleZ( val );
  }else {   
    std::cerr << "!!! FATAL ERROR ALIRmDataFromFile::setAngle. Coordinate must be X, Y or Z, it ii " << coord << std::endl;
    std::exception();
  }
  return false;
}
ALIbool ALIRmDataFromFile::setAngleX ( const ALIdouble  val)

Definition at line 33 of file ALIRmDataFromFile.cc.

References theAngleX, and theDataFilled.

Referenced by setAngle().

{
  theAngleX = val;
  theDataFilled += "X";
  return 1;
}
ALIbool ALIRmDataFromFile::setAngleY ( const ALIdouble  val)

Definition at line 41 of file ALIRmDataFromFile.cc.

References theAngleY, and theDataFilled.

Referenced by setAngle().

{
  theAngleY = val;
  theDataFilled += "Y";
  return 1;
}
ALIbool ALIRmDataFromFile::setAngleZ ( const ALIdouble  val)

Definition at line 49 of file ALIRmDataFromFile.cc.

References theAngleZ, and theDataFilled.

Referenced by setAngle().

{
  theAngleZ = val;
  theDataFilled += "Z";
  return 1;
}

Member Data Documentation

Definition at line 38 of file ALIRmDataFromFile.h.

Referenced by angleX(), constructRm(), and setAngleX().

Definition at line 38 of file ALIRmDataFromFile.h.

Referenced by angleY(), constructRm(), and setAngleY().

Definition at line 38 of file ALIRmDataFromFile.h.

Referenced by angleZ(), constructRm(), and setAngleZ().

Definition at line 39 of file ALIRmDataFromFile.h.

Referenced by constructRm(), dataFilled(), setAngleX(), setAngleY(), and setAngleZ().

CLHEP::HepRotation ALIRmDataFromFile::theRm [private]

Definition at line 37 of file ALIRmDataFromFile.h.

Referenced by constructRm(), and rm().