//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* *
-//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
+//* Primary Authors: Oystein Djuvsland *
//* for The ALICE HLT Project. *
//* *
//* Permission to use, copy, modify and distribute this software and its *
/// @author Oystein Djuvsland
/// @date 2009-10-08
/// @brief HLT class describing simple geometry of (sub-)detectors.
-/// Used for the AliHLTTriggerBarrelGeomMultiplicity classes
+/// Used for the AliHLTTriggerBarrelGeomMultiplicity class
// see header file for class documentation
// or
// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
#include "AliHLTTriggerDetectorGeom.h"
+#include <ostream>
/** ROOT macro for the implementation of ROOT specific class methods */
ClassImp(AliHLTTriggerDetectorGeom)
-AliHLTTriggerDetectorGeom::AliHLTTriggerDetectorGeom()
+AliHLTTriggerDetectorGeom::AliHLTTriggerDetectorGeom()
: TObject(),
fEtaMin(0),
fEtaMax(0),
fPhiMin(0),
fPhiMax(0),
- fInitalPoint(0),
- fNormVector(0),
fName('\0')
{
// See header file for class documentation
// See header file for class documentation
}
-void AliHLTTriggerDetectorGeom::SetInitialPoint(Double_t &point[3])
+void AliHLTTriggerDetectorGeom::SetInitialPoint(Double_t *point)
{
// See header file for class documentation
for(int i = 0; i < 3; i++)
}
}
-void AliHLTTriggerDetectorGeom::SetNormVector(Double_t &nVector[3])
+
+void AliHLTTriggerDetectorGeom::SetNormVector(Double_t *nVector)
{
// See header file for class documentation
for(int i = 0; i < 3; i++)
fNormVector[i] = nVector[i];
}
}
+
+void AliHLTTriggerDetectorGeom::GetInitialPoint(Double_t *point)
+{
+ // See header file for class documentation
+ for(int i = 0; i < 3; i++)
+ {
+ point[i] = fInitalPoint[i];
+ }
+}
+
+void AliHLTTriggerDetectorGeom::GetNormVector(Double_t *vec)
+{
+ // See header file for class documentation
+ for(int i = 0; i < 3; i++)
+ {
+ vec[i] = fNormVector[i];
+ }
+}
+
+void AliHLTTriggerDetectorGeom::PrintDetectorGeom(std::ostream &out)
+{
+ // See header file for class documentation
+
+ out << "Name: " << fName << std::endl;
+ out << "Eta Min: " << fEtaMin << std::endl;
+ out << "Eta Max: " << fEtaMax << std::endl;
+ out << "Phi Min: " << fPhiMin << std::endl;
+ out << "Phi Max: " << fPhiMax << std::endl;
+ out << "Initial Point: {" << fInitalPoint[0] << ", " << fInitalPoint[1] << ", " << fInitalPoint[2] << "}" << std::endl;
+ out << "Normal Vector: {" << fNormVector[0] << ", " << fNormVector[1] << ", " << fNormVector[2] << "}" << std::endl;
+}
+