+++ /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$
-
-#include "AliMUON1DMap.h"
-
-#include "AliLog.h"
-#include "AliMpExMap.h"
-
-ClassImp(AliMUON1DMap)
-
-//_____________________________________________________________________________
-AliMUON1DMap::AliMUON1DMap() : AliMUONV1DStore(), fMap(new AliMpExMap(true))
-{
-}
-
-//_____________________________________________________________________________
-AliMUON1DMap::~AliMUON1DMap()
-{
- delete fMap;
-}
-
-//_____________________________________________________________________________
-TObject*
-AliMUON1DMap::Get(Int_t detElemId) const
-{
- return fMap->GetValue(detElemId);
-}
-
-//_____________________________________________________________________________
-Bool_t
-AliMUON1DMap::IsOwner() const
-{
- return kTRUE;
-}
-
-//_____________________________________________________________________________
-Bool_t
-AliMUON1DMap::Set(Int_t detElemId, TObject* object, Bool_t replace)
-{
- TObject* o = Get(detElemId);
- if ( o && !replace )
- {
- AliError(Form("Object %p is already there for detElemId %d",o,detElemId));
- return kFALSE;
- }
- if ( o && IsOwner() )
- {
- delete o;
- }
- fMap->Add(detElemId,object);
- return kTRUE;
-}
-
-
-
-
-
+++ /dev/null
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
-* See cxx source for full Copyright notice */
-
-// $Id$
-
-/// \ingroup
-/// \class AliMUONDeMap
-/// \brief Basic implementation of AliMUONV1DStore container using
-/// AliMpExMap internally
-///
-/// Should be revised for better preformance ...
-///
-/// \author Laurent Aphecetche
-
-#ifndef AliMUON1DMAP_H
-#define AliMUON1DMAP_H
-
-class AliMpExMap;
-
-#include "AliMUONV1DStore.h"
-
-class AliMUON1DMap : public AliMUONV1DStore
-{
-public:
- AliMUON1DMap();
- virtual ~AliMUON1DMap();
-
- virtual TObject* Get(Int_t detElemId) const;
- virtual Bool_t Set(Int_t detElemId, TObject* object, Bool_t replace=kTRUE);
- virtual Bool_t IsOwner() const;
-
-private:
- AliMpExMap* fMap;
-
- ClassDef(AliMUON1DMap,1) //
-};
-
-#endif
+++ /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$
-
-#include "AliMUON3DMap.h"
-
-ClassImp(AliMUON3DMap)
-
-#include "AliMUON1DMap.h"
-#include "AliMUON2DMap.h"
-
-#include "Riostream.h"
-
-//_____________________________________________________________________________
-AliMUON3DMap::AliMUON3DMap() : AliMUONV3DStore(), fStore(new AliMUON1DMap)
-{
-}
-
-//_____________________________________________________________________________
-AliMUON3DMap::~AliMUON3DMap()
-{
- delete fStore;
-}
-
-//_____________________________________________________________________________
-TObject*
-AliMUON3DMap::Get(Int_t i, Int_t j, Int_t k) const
-{
- AliMUONV2DStore* m = static_cast<AliMUONV2DStore*>(fStore->Get(i));
- if (!m) return 0x0;
- return m->Get(j,k);
-}
-
-//_____________________________________________________________________________
-Bool_t
-AliMUON3DMap::IsOwner() const
-{
- return kTRUE;
-}
-
-//_____________________________________________________________________________
-void
-AliMUON3DMap::Print(Option_t*) const
-{
- cout << "Would need an iterator here to be able to print !" << endl;
-}
-
-//_____________________________________________________________________________
-Bool_t
-AliMUON3DMap::Set(Int_t i, Int_t j, Int_t k, TObject* object, Bool_t replace)
-{
- AliMUONV2DStore* m = static_cast<AliMUONV2DStore*>(fStore->Get(i));
- if (!m)
- {
- fStore->Set(i,new AliMUON2DMap,replace);
- m = static_cast<AliMUONV2DStore*>(fStore->Get(i));
- }
- return m->Set(j,k,object,replace);
-}
-
-
-
+++ /dev/null
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
-* See cxx source for full Copyright notice */
-
-// $Id$
-
-/// \ingroup base
-/// \class AliMUON3DMap
-/// \brief Basic implementation of AliMUONV3DStore container using
-/// AliMpExMap internally
-///
-/// Should be revised for better preformance ...
-///
-/// \author Laurent Aphecetche
-
-#ifndef ALIMUON3DMAP_H
-#define ALIMUON3DMAP_H
-
-#ifndef ALIMUONV3DSTORE_H
-# include "AliMUONV3DStore.h"
-#endif
-
-class AliMUONV1DStore;
-
-class AliMUON3DMap : public AliMUONV3DStore
-{
-public:
- AliMUON3DMap();
- virtual ~AliMUON3DMap();
-
- virtual TObject* Get(Int_t i, Int_t j, Int_t k) const;
- virtual Bool_t Set(Int_t i, Int_t j, Int_t k, TObject*, Bool_t replace);
- virtual Bool_t IsOwner() const;
- virtual void Print(Option_t* opt="") const;
-
-private:
- AliMUONV1DStore* fStore;
- ClassDef(AliMUON3DMap,1) //
-};
-
-#endif
+++ /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$
-
-#include "AliMUONCalibParam.h"
-
-#include "Riostream.h"
-
-ClassImp(AliMUONCalibParam)
-
-//_____________________________________________________________________________
-AliMUONCalibParam::AliMUONCalibParam(Float_t mean, Float_t sigma)
-: TObject()
-{
- Set(mean,sigma);
-}
-
-//_____________________________________________________________________________
-AliMUONCalibParam::~AliMUONCalibParam()
-{
-}
-
-//_____________________________________________________________________________
-Float_t
-AliMUONCalibParam::Mean() const
-{
- return fMean;
-}
-
-//_____________________________________________________________________________
-void
-AliMUONCalibParam::Print(Option_t*) const
-{
- cout << "Mean=" << Mean() << " Sigma=" << Sigma() << endl;
-}
-
-//_____________________________________________________________________________
-void
-AliMUONCalibParam::Set(Float_t mean, Float_t sigma)
-{
- fMean = mean;
- fSigma = sigma;
-}
-
-//_____________________________________________________________________________
-Float_t
-AliMUONCalibParam::Sigma() const
-{
- return fSigma;
-}
-
-
-
+++ /dev/null
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
-* See cxx source for full Copyright notice */
-
-// $Id$
-
-/// \ingroup base
-/// \class AliMUONCalibParam
-/// \brief Container for 2 floats (one mean and one sigma)
-///
-/// \author Laurent Aphecetche
-
-#ifndef AliMUONCALIBPARAM_H
-#define AliMUONCALIBPARAM_H
-
-#ifndef ROOT_TObject
-# include "TObject.h"
-#endif
-
-class AliMUONCalibParam : public TObject
-{
-public:
- AliMUONCalibParam(Float_t mean=0.0, Float_t sigma=0.0);
- virtual ~AliMUONCalibParam();
-
- Float_t Mean() const;
-
- virtual void Print(Option_t*) const;
-
- void Set(Float_t mean, Float_t sigma);
-
- Float_t Sigma() const;
-
-private:
- Float_t fMean;
- Float_t fSigma;
-
- ClassDef(AliMUONCalibParam,1) //
-};
-
-#endif
+++ /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$
-
-#include "AliMUONV1DStore.h"
-
-ClassImp(AliMUONV1DStore)
-
-//_____________________________________________________________________________
-AliMUONV1DStore::~AliMUONV1DStore()
-{
-}
+++ /dev/null
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
-* See cxx source for full Copyright notice */
-
-// $Id$
-
-/// \ingroup base
-/// \class AliMUON1DStore
-/// \brief Generic container indexed by a detection element ID
-///
-/// \author Laurent Aphecetche
-
-#ifndef AliMUONV1DSTORE_H
-#define AliMUONV1DSTORE_H
-
-#ifndef ROOT_TObject
-# include "TObject.h"
-#endif
-
-class AliMUONV1DStore : public TObject
-{
-public:
-
- virtual ~AliMUONV1DStore();
-
- virtual TObject* Get(Int_t detElemId) const = 0;
-
- virtual Bool_t Set(Int_t detElemId, TObject*, Bool_t replace) = 0;
-
- virtual Bool_t IsOwner() const = 0;
-
-private:
-
- ClassDef(AliMUONV1DStore,0) //
-};
-
-#endif
+++ /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$
-
-#include "AliMUONV3DStore.h"
-
-ClassImp(AliMUONV3DStore)
-
-//_____________________________________________________________________________
-AliMUONV3DStore::~AliMUONV3DStore()
-{
-}
-
-
-
-
+++ /dev/null
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
-* See cxx source for full Copyright notice */
-
-// $Id$
-
-/// \ingroup base
-/// \class AliMUONV3DStore
-/// \brief Generic containers indexed by a triplet
-/// (typically detElemId,manuId,manuChannel)
-///
-/// \author Laurent Aphecetche
-
-#ifndef ALIMUONV3DSTORE_H
-#define ALIMUONV3DSTORE_H
-
-#ifndef ROOT_TObject
-# include "TObject.h"
-#endif
-
-class AliMUONV3DStore : public TObject
-{
-public:
- virtual ~AliMUONV3DStore();
-
- virtual TObject* Get(Int_t i, Int_t j, Int_t k) const = 0;
- virtual Bool_t Set(Int_t i, Int_t j, Int_t k, TObject*, Bool_t replace) = 0;
- virtual Bool_t IsOwner() const = 0;
-
-private:
- ClassDef(AliMUONV3DStore,0) //
-};
-
-#endif
+++ /dev/null
-#!/bin/sh
-# $Id$
-
-CURDIR=`pwd`
-OUTDIR=test_out
-
-rm -fr $OUTDIR
-mkdir $OUTDIR
-cp .rootrc rootlogon.C $OUTDIR
-cd $OUTDIR
-
-SEED=1234567
-
-CDBDIRECTORY="$ALICE_ROOT/MUON/CDB/Random";
-
-CDB="local://$CDBDIRECTORY";
-
-if [ ! -d $CDBDIRECTORY"/MUON" ]; then
-
-echo "Generating Condition Database in directory $CDBDIRECTORY. This may take a while, so please be patient..."
-
-aliroot -b >& testGenerateCalibrations.out << EOF
-.L ../MUONCDB.C++
-gRandom->SetSeed($SEED);
-generateCalibrations("$CDB",false);
-.q
-EOF
-
-else
-
-echo "Condition Database found in directory $CDBDIRECTORY. Will use it if needed."
-
-fi
-
-echo "Running simulation ..."
-
-aliroot -b >& testSim.out << EOF
-AliCDBManager::Instance()->SetDefaultStorage("$CDB");
-AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C")
-gRandom->SetSeed($SEED);
-MuonSim.Run(100)
-.q
-EOF
-
-echo "Running reconstruction ..."
-
-aliroot -b >& testReco.out << EOF
-AliCDBManager::Instance()->SetDefaultStorage("$CDB");
-AliReconstruction MuonRec("galice.root")
-MuonRec.SetRunTracking("")
-MuonRec.SetRunVertexFinder(kFALSE)
-MuonRec.SetRunLocalReconstruction("MUON")
-MuonRec.SetFillESD("MUON")
-gRandom->SetSeed($SEED);
-MuonRec.Run()
-.q
-EOF
-
-echo "Running Trigger efficiency ..."
-
-aliroot -b >& testTriggerResults.out << EOF
-.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
-MUONTriggerEfficiency();
-.q
-EOF
-
-echo "Running efficiency ..."
-
-aliroot -b >& testResults.out << EOF
-.L $ALICE_ROOT/MUON/MUONefficiency.C++
-// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
-MUONefficiency();
-.q
-EOF
-
-echo "Finished"
-echo "... see results in test_out"
-
-cd $CURDIR