+++ /dev/null
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * *
- * Author: The ALICE Off-line Project. *
- * Contributors are mentioned in the code where appropriate. *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
-
-/* $Id$ */
-
-///////////////////////////////////////////////////////////////////////////////
-// //
-// class for START calibrationalignment //
-// //
-///////////////////////////////////////////////////////////////////////////////
-
-#include "AliSTARTAlignData.h"
-
-ClassImp(AliSTARTAlignData)
-
-//________________________________________________________________
-AliSTARTAlignData::AliSTARTAlignData()
-{
- // Default constructor
- Reset();
-}
-
-//________________________________________________________________
-AliSTARTAlignData::AliSTARTAlignData(const char* name)
-{
- // Constructor
- TString namst = "Align_";
- namst += name;
- SetName(namst.Data());
- SetTitle(namst.Data());
- Reset();
-}
-
-//________________________________________________________________
-AliSTARTAlignData::AliSTARTAlignData(const AliSTARTAlignData& alignda) :
- TNamed(alignda)
-{
- // copy constructor
- SetName(alignda.GetName());
- SetTitle(alignda.GetName());
- Reset();
- fSTARTzPosition[0] = alignda.GetZposition(0);
- fSTARTzPosition[1] = alignda.GetZposition(1);
-}
-
-//________________________________________________________________
-AliSTARTAlignData &AliSTARTAlignData::operator =(const AliSTARTAlignData& alignda)
-{
- // assignment operator
- SetName(alignda.GetName());
- SetTitle(alignda.GetName());
- Reset();
- fSTARTzPosition[0] = alignda.GetZposition(0);
- fSTARTzPosition[1] = alignda.GetZposition(1);
- return *this;
-}
-
-//________________________________________________________________
-AliSTARTAlignData::~AliSTARTAlignData()
-{
- // Destructor
-}
-
-//________________________________________________________________
-void AliSTARTAlignData::Reset()
-{
- // Set all pedestals to 0 and all ADC channels to 1
- memset(fSTARTzPosition,0,2*sizeof(Float_t));
-
-}
-
-//________________________________________________________________
-void AliSTARTAlignData::Print(Option_t *option) const
-{
- // Print tables of pedestals and ADC channels
-
- printf("START aignment data:\n");
- printf("Z(A) = %f.2 cm, Z(C) = %f.2 cm\n",
- fSTARTzPosition[0],fSTARTzPosition[1]);
-
-}
+++ /dev/null
-#ifndef ALISTARTALIGNDATA_H
-#define ALISTARTALIGNDATA_H
-
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
-
-/* $Id$ */
-
-////////////////////////////////////////////////
-// class for START algnment //
-////////////////////////////////////////////////
-
-#include "TNamed.h"
-#include "AliSTART.h"
-
-class AliSTARTAlignData: public TNamed {
-
- public:
- AliSTARTAlignData();
- AliSTARTAlignData(const char* name);
- AliSTARTAlignData(const AliSTARTAlignData &alignda);
- AliSTARTAlignData& operator= (const AliSTARTAlignData &alignda);
- virtual ~AliSTARTAlignData();
- void Reset();
- virtual void Print(Option_t *option = "") const;
- //
- Float_t GetZposition(Int_t i) const {return fSTARTzPosition[i];}
- //
- void SetZposition( Float_t valueC, Float_t valueA) {
- fSTARTzPosition[0]=valueC, fSTARTzPosition[1]=valueA;}
-
- protected:
- Float_t fSTARTzPosition[2] ; // z-position of the two STARTs
- //
- ClassDef(AliSTARTAlignData,1) // START Alignment data
-};
-
-#endif