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.

28 { return theAngleX; }

References theAngleX.

◆ angleY()

ALIdouble ALIRmDataFromFile::angleY ( ) const
inline

Definition at line 29 of file ALIRmDataFromFile.h.

29 { return theAngleY; }

References theAngleY.

◆ angleZ()

ALIdouble ALIRmDataFromFile::angleZ ( ) const
inline

Definition at line 30 of file ALIRmDataFromFile.h.

30 { return theAngleZ; }

References theAngleZ.

◆ constructRm()

void ALIRmDataFromFile::constructRm ( )

Definition at line 51 of file ALIRmDataFromFile.cc.

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 }

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

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

◆ dataFilled()

ALIstring ALIRmDataFromFile::dataFilled ( ) const
inline

Definition at line 32 of file ALIRmDataFromFile.h.

32 { return theDataFilled; }

References theDataFilled.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

◆ rm()

CLHEP::HepRotation ALIRmDataFromFile::rm ( ) const
inline

Definition at line 31 of file ALIRmDataFromFile.h.

31 { return theRm; }

References theRm.

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

◆ setAngle()

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

Definition at line 14 of file ALIRmDataFromFile.cc.

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 }

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

Referenced by FittedEntriesReader::readFittedEntriesFromFile().

◆ setAngleX()

ALIbool ALIRmDataFromFile::setAngleX ( const ALIdouble  val)

Definition at line 30 of file ALIRmDataFromFile.cc.

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

References theAngleX, theDataFilled, and heppy_batch::val.

Referenced by setAngle().

◆ setAngleY()

ALIbool ALIRmDataFromFile::setAngleY ( const ALIdouble  val)

Definition at line 37 of file ALIRmDataFromFile.cc.

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

References theAngleY, theDataFilled, and heppy_batch::val.

Referenced by setAngle().

◆ setAngleZ()

ALIbool ALIRmDataFromFile::setAngleZ ( const ALIdouble  val)

Definition at line 44 of file ALIRmDataFromFile.cc.

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

References theAngleZ, theDataFilled, and heppy_batch::val.

Referenced by setAngle().

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

ALIRmDataFromFile::theAngleZ
ALIdouble theAngleZ
Definition: ALIRmDataFromFile.h:37
ALIRmDataFromFile::setAngleX
ALIbool setAngleX(const ALIdouble val)
Definition: ALIRmDataFromFile.cc:30
ALIRmDataFromFile::setAngleZ
ALIbool setAngleZ(const ALIdouble val)
Definition: ALIRmDataFromFile.cc:44
ALIRmDataFromFile::theAngleY
ALIdouble theAngleY
Definition: ALIRmDataFromFile.h:37
ALIRmDataFromFile::theAngleX
ALIdouble theAngleX
Definition: ALIRmDataFromFile.h:37
ALIRmDataFromFile::setAngleY
ALIbool setAngleY(const ALIdouble val)
Definition: ALIRmDataFromFile.cc:37
ALIRmDataFromFile::theDataFilled
ALIstring theDataFilled
Definition: ALIRmDataFromFile.h:38
cppFunctionSkipper.exception
exception
Definition: cppFunctionSkipper.py:10
heppy_batch.val
val
Definition: heppy_batch.py:351
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition: EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8
ALIRmDataFromFile::theRm
CLHEP::HepRotation theRm
Definition: ALIRmDataFromFile.h:36