CMS 3D CMS Logo

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 11 of file ALIRmDataFromFile.cc.

11 {}
ALIRmDataFromFile::~ALIRmDataFromFile ( )
inline

Definition at line 19 of file ALIRmDataFromFile.h.

References constructRm(), setAngle(), setAngleX(), setAngleY(), setAngleZ(), and heppy_batch::val.

19 {};

Member Function Documentation

ALIdouble ALIRmDataFromFile::angleX ( ) const
inline

Definition at line 28 of file ALIRmDataFromFile.h.

References theAngleX.

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

Definition at line 29 of file ALIRmDataFromFile.h.

References theAngleY.

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

Definition at line 30 of file ALIRmDataFromFile.h.

References theAngleZ.

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

Definition at line 51 of file ALIRmDataFromFile.cc.

References beam_dqm_sourceclient-live_cfg::cerr, theAngleX, theAngleY, theAngleZ, theDataFilled, and theRm.

Referenced by FittedEntriesReader::readFittedEntriesFromFile(), and ~ALIRmDataFromFile().

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

Definition at line 32 of file ALIRmDataFromFile.h.

References theDataFilled.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

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

Definition at line 31 of file ALIRmDataFromFile.h.

References theRm.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

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

Definition at line 14 of file ALIRmDataFromFile.cc.

References beam_dqm_sourceclient-live_cfg::cerr, cppFunctionSkipper::exception, setAngleX(), setAngleY(), and setAngleZ().

Referenced by FittedEntriesReader::readFittedEntriesFromFile(), and ~ALIRmDataFromFile().

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

Definition at line 30 of file ALIRmDataFromFile.cc.

References theAngleX, theDataFilled, and heppy_batch::val.

Referenced by setAngle(), and ~ALIRmDataFromFile().

30  {
31  theAngleX = val;
32  theDataFilled += "X";
33  return true;
34 }
ALIbool ALIRmDataFromFile::setAngleY ( const ALIdouble  val)

Definition at line 37 of file ALIRmDataFromFile.cc.

References theAngleY, theDataFilled, and heppy_batch::val.

Referenced by setAngle(), and ~ALIRmDataFromFile().

37  {
38  theAngleY = val;
39  theDataFilled += "Y";
40  return true;
41 }
ALIbool ALIRmDataFromFile::setAngleZ ( const ALIdouble  val)

Definition at line 44 of file ALIRmDataFromFile.cc.

References theAngleZ, theDataFilled, and heppy_batch::val.

Referenced by setAngle(), and ~ALIRmDataFromFile().

44  {
45  theAngleZ = val;
46  theDataFilled += "Z";
47  return true;
48 }

Member Data Documentation

ALIdouble ALIRmDataFromFile::theAngleX
private

Definition at line 37 of file ALIRmDataFromFile.h.

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

ALIdouble ALIRmDataFromFile::theAngleY
private

Definition at line 37 of file ALIRmDataFromFile.h.

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

ALIdouble ALIRmDataFromFile::theAngleZ
private

Definition at line 37 of file ALIRmDataFromFile.h.

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

ALIstring ALIRmDataFromFile::theDataFilled
private

Definition at line 38 of file ALIRmDataFromFile.h.

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

CLHEP::HepRotation ALIRmDataFromFile::theRm
private

Definition at line 36 of file ALIRmDataFromFile.h.

Referenced by constructRm(), and rm().