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
ALIRmDataFromFile Class Reference

#include <ALIRmDataFromFile.h>

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.

13 {
14 }
ALIRmDataFromFile::~ALIRmDataFromFile ( )
inline

Definition at line 20 of file ALIRmDataFromFile.h.

20 {};

Member Function Documentation

ALIdouble ALIRmDataFromFile::angleX ( ) const
inline

Definition at line 29 of file ALIRmDataFromFile.h.

References theAngleX.

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

Definition at line 30 of file ALIRmDataFromFile.h.

References theAngleY.

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

Definition at line 31 of file ALIRmDataFromFile.h.

References theAngleZ.

31 { 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().

58 {
59  if( theDataFilled.find("X") == std::string::npos || theDataFilled.find("Y") == std::string::npos || theDataFilled.find("Z") == std::string::npos ){
60  std::cerr << "!!! ALIRmDataFromFile::constructRm. FATAL ERROR: building rm while one angle is missing: " << theDataFilled << std::endl;
61  } else {
62  theRm = CLHEP::HepRotation();
63  theRm.rotateX( theAngleX );
64  theRm.rotateY( theAngleY );
65  theRm.rotateZ( theAngleZ );
66  }
67 
68 }
CLHEP::HepRotation theRm
ALIstring ALIRmDataFromFile::dataFilled ( ) const
inline

Definition at line 33 of file ALIRmDataFromFile.h.

References theDataFilled.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

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

Definition at line 32 of file ALIRmDataFromFile.h.

References theRm.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

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

Definition at line 17 of file ALIRmDataFromFile.cc.

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

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

17  {
18 
19  if( coord == "X" ) {
20  return setAngleX( val );
21  }else if( coord == "Y" ) {
22  return setAngleY( val );
23  }else if( coord == "Z" ) {
24  return setAngleZ( val );
25  }else {
26  std::cerr << "!!! FATAL ERROR ALIRmDataFromFile::setAngle. Coordinate must be X, Y or Z, it ii " << coord << std::endl;
28  }
29  return false;
30 }
ALIbool setAngleX(const ALIdouble val)
ALIbool setAngleZ(const ALIdouble val)
ALIbool setAngleY(const ALIdouble val)
ALIbool ALIRmDataFromFile::setAngleX ( const ALIdouble  val)

Definition at line 33 of file ALIRmDataFromFile.cc.

References theAngleX, and theDataFilled.

Referenced by setAngle().

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

Definition at line 41 of file ALIRmDataFromFile.cc.

References theAngleY, and theDataFilled.

Referenced by setAngle().

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

Definition at line 49 of file ALIRmDataFromFile.cc.

References theAngleZ, and theDataFilled.

Referenced by setAngle().

50 {
51  theAngleZ = val;
52  theDataFilled += "Z";
53  return 1;
54 }

Member Data Documentation

ALIdouble ALIRmDataFromFile::theAngleX
private

Definition at line 38 of file ALIRmDataFromFile.h.

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

ALIdouble ALIRmDataFromFile::theAngleY
private

Definition at line 38 of file ALIRmDataFromFile.h.

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

ALIdouble ALIRmDataFromFile::theAngleZ
private

Definition at line 38 of file ALIRmDataFromFile.h.

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

ALIstring ALIRmDataFromFile::theDataFilled
private

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().