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::ALIRmDataFromFile ( )

Definition at line 11 of file ALIRmDataFromFile.cc.

11 {}

◆ ~ALIRmDataFromFile()

ALIRmDataFromFile::~ALIRmDataFromFile ( )
inline

Definition at line 19 of file ALIRmDataFromFile.h.

19 {};

Member Function Documentation

◆ angleX()

ALIdouble ALIRmDataFromFile::angleX ( ) const
inline

Definition at line 28 of file ALIRmDataFromFile.h.

References theAngleX.

28 { return theAngleX; }

◆ angleY()

ALIdouble ALIRmDataFromFile::angleY ( ) const
inline

Definition at line 29 of file ALIRmDataFromFile.h.

References theAngleY.

29 { return theAngleY; }

◆ angleZ()

ALIdouble ALIRmDataFromFile::angleZ ( ) const
inline

Definition at line 30 of file ALIRmDataFromFile.h.

References theAngleZ.

30 { return theAngleZ; }

◆ constructRm()

void ALIRmDataFromFile::constructRm ( )

Definition at line 51 of file ALIRmDataFromFile.cc.

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

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

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

◆ dataFilled()

ALIstring ALIRmDataFromFile::dataFilled ( ) const
inline

Definition at line 32 of file ALIRmDataFromFile.h.

References theDataFilled.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

32 { return theDataFilled; }

◆ rm()

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

◆ setAngle()

ALIbool ALIRmDataFromFile::setAngle ( const ALIstring coord,
const ALIdouble  val 
)

Definition at line 14 of file ALIRmDataFromFile.cc.

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, cppFunctionSkipper::exception, setAngleX(), setAngleY(), setAngleZ(), and heppy_batch::val.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

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)

◆ setAngleX()

ALIbool ALIRmDataFromFile::setAngleX ( const ALIdouble  val)

Definition at line 30 of file ALIRmDataFromFile.cc.

References theAngleX, theDataFilled, and heppy_batch::val.

Referenced by setAngle().

30  {
31  theAngleX = val;
32  theDataFilled += "X";
33  return true;
34 }

◆ setAngleY()

ALIbool ALIRmDataFromFile::setAngleY ( const ALIdouble  val)

Definition at line 37 of file ALIRmDataFromFile.cc.

References theAngleY, theDataFilled, and heppy_batch::val.

Referenced by setAngle().

37  {
38  theAngleY = val;
39  theDataFilled += "Y";
40  return true;
41 }

◆ setAngleZ()

ALIbool ALIRmDataFromFile::setAngleZ ( const ALIdouble  val)

Definition at line 44 of file ALIRmDataFromFile.cc.

References theAngleZ, theDataFilled, and heppy_batch::val.

Referenced by setAngle().

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

Member Data Documentation

◆ theAngleX

ALIdouble ALIRmDataFromFile::theAngleX
private

Definition at line 37 of file ALIRmDataFromFile.h.

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

◆ theAngleY

ALIdouble ALIRmDataFromFile::theAngleY
private

Definition at line 37 of file ALIRmDataFromFile.h.

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

◆ theAngleZ

ALIdouble ALIRmDataFromFile::theAngleZ
private

Definition at line 37 of file ALIRmDataFromFile.h.

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

◆ theDataFilled

ALIstring ALIRmDataFromFile::theDataFilled
private

Definition at line 38 of file ALIRmDataFromFile.h.

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

◆ theRm

CLHEP::HepRotation ALIRmDataFromFile::theRm
private

Definition at line 36 of file ALIRmDataFromFile.h.

Referenced by constructRm(), and rm().