Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
178 changed files
with
20,439 additions
and
20,357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,31 @@ | ||
// COCOA class header file | ||
//Id: CocoaSolidShape.h | ||
//CAT: Model | ||
// Id: CocoaSolidShape.h | ||
// CAT: Model | ||
// | ||
// Class to manage the sets of fitted entries (one set per each measurement data set) | ||
// | ||
// History: v1.0 | ||
// Class to manage the sets of fitted entries (one set per each measurement | ||
// data set) | ||
// | ||
// History: v1.0 | ||
// Pedro Arce | ||
|
||
#ifndef _CocoaSolidShape_HH | ||
#define _CocoaSolidShape_HH | ||
|
||
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" | ||
|
||
|
||
class CocoaSolidShape | ||
{ | ||
class CocoaSolidShape { | ||
|
||
public: | ||
//---------- Constructors / Destructor | ||
CocoaSolidShape( ALIstring type ); | ||
virtual ~CocoaSolidShape(){ }; | ||
CocoaSolidShape(ALIstring type); | ||
virtual ~CocoaSolidShape(){}; | ||
|
||
ALIstring getType() const { | ||
return theType; } | ||
ALIstring getType() const { return theType; } | ||
|
||
// ALIbool operator==(const CocoaSolidShape& mate ); | ||
|
||
private: | ||
|
||
ALIstring theType; | ||
|
||
}; | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,27 @@ | ||
// COCOA class implementation file | ||
//Id: CocoaMaterialElementary.cc | ||
//CAT: Model | ||
// Id: CocoaMaterialElementary.cc | ||
// CAT: Model | ||
// | ||
// History: v1.0 | ||
// Pedro Arce | ||
#include <map> | ||
#include <cmath> // include floating-point std::abs functions | ||
#include <fstream> | ||
#include <cmath> // include floating-point std::abs functions | ||
#include <map> | ||
|
||
#include "Alignment/CocoaDDLObjects/interface/CocoaMaterialElementary.h" | ||
|
||
CocoaMaterialElementary::CocoaMaterialElementary(ALIstring name, float density, | ||
ALIstring symbol, float A, | ||
ALIint Z) | ||
: theName(name), theDensity(density), theSymbol(symbol), theA(A), theZ(Z) {} | ||
|
||
CocoaMaterialElementary::CocoaMaterialElementary( ALIstring name, float density, ALIstring symbol, float A, ALIint Z ) : | ||
theName(name), | ||
theDensity(density), | ||
theSymbol(symbol), | ||
theA(A), | ||
theZ(Z) | ||
{ | ||
} | ||
|
||
|
||
ALIbool CocoaMaterialElementary::operator==(const CocoaMaterialElementary& mate ) const | ||
{ | ||
ALIbool CocoaMaterialElementary:: | ||
operator==(const CocoaMaterialElementary &mate) const { | ||
// GM: Using numeric_limits<float>::epsilon() might be better instead of a | ||
// magic number 'kTolerance'. Not changing this to not break code | ||
// potentially relying on this number. | ||
const float kTolerance = 1.E-9; | ||
return ( std::abs(mate.getDensity() - theDensity) < kTolerance | ||
&& mate.getSymbol() == theSymbol | ||
&& std::abs(mate.getA() - theA) < kTolerance | ||
&& mate.getZ() == theZ ); | ||
return (std::abs(mate.getDensity() - theDensity) < kTolerance && | ||
mate.getSymbol() == theSymbol && | ||
std::abs(mate.getA() - theA) < kTolerance && mate.getZ() == theZ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
// COCOA class implementation file | ||
//Id: CocoaSolidShape.cc | ||
//CAT: Model | ||
// Id: CocoaSolidShape.cc | ||
// CAT: Model | ||
// | ||
// History: v1.0 | ||
// History: v1.0 | ||
// Pedro Arce | ||
#include <map> | ||
#include <fstream> | ||
#include <map> | ||
|
||
#include "Alignment/CocoaDDLObjects/interface/CocoaSolidShape.h" | ||
|
||
|
||
CocoaSolidShape::CocoaSolidShape( ALIstring type ) | ||
{ | ||
|
||
theType = type; | ||
} | ||
CocoaSolidShape::CocoaSolidShape(ALIstring type) { theType = type; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
// COCOA class implementation file | ||
//Id: CocoaSolidShapeBox.cc | ||
//CAT: Model | ||
// Id: CocoaSolidShapeBox.cc | ||
// CAT: Model | ||
// | ||
// History: v1.0 | ||
// History: v1.0 | ||
// Pedro Arce | ||
#include <map> | ||
#include <fstream> | ||
#include <map> | ||
|
||
#include "Alignment/CocoaDDLObjects/interface/CocoaSolidShapeBox.h" | ||
|
||
|
||
CocoaSolidShapeBox::CocoaSolidShapeBox( ALIstring type, ALIfloat xdim, ALIfloat ydim, ALIfloat zdim ): CocoaSolidShape( type ) | ||
{ | ||
CocoaSolidShapeBox::CocoaSolidShapeBox(ALIstring type, ALIfloat xdim, | ||
ALIfloat ydim, ALIfloat zdim) | ||
: CocoaSolidShape(type) { | ||
|
||
theXHalfLength = xdim; | ||
theYHalfLength = ydim; | ||
theZHalfLength = zdim; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
// COCOA class implementation file | ||
//Id: CocoaSolidShapeTubs.cc | ||
//CAT: Model | ||
// Id: CocoaSolidShapeTubs.cc | ||
// CAT: Model | ||
// | ||
// History: v1.0 | ||
// History: v1.0 | ||
// Pedro Arce | ||
#include <map> | ||
#include <fstream> | ||
#include <map> | ||
|
||
#include "Alignment/CocoaDDLObjects/interface/CocoaSolidShapeTubs.h" | ||
|
||
CocoaSolidShapeTubs::CocoaSolidShapeTubs( const ALIstring type, ALIfloat pRMin, ALIfloat pRMax, ALIfloat pDz, ALIfloat pSPhi, ALIfloat pDPhi ) : CocoaSolidShape( type ) | ||
{ | ||
CocoaSolidShapeTubs::CocoaSolidShapeTubs(const ALIstring type, ALIfloat pRMin, | ||
ALIfloat pRMax, ALIfloat pDz, | ||
ALIfloat pSPhi, ALIfloat pDPhi) | ||
: CocoaSolidShape(type) { | ||
|
||
theInnerRadius = pRMin; | ||
theOuterRadius = pRMax; | ||
theZHalfLength = pDz; | ||
theStartPhiAngle = pSPhi; | ||
theDeltaPhiAngle = pDPhi; | ||
} | ||
|
Oops, something went wrong.