From ad8630e5d2ea6ed704e6b8a749628cb368316c46 Mon Sep 17 00:00:00 2001 From: ivana Date: Thu, 2 Mar 2006 17:20:54 +0000 Subject: [PATCH] Removing files (Laurent) --- MUON/AliMUON1DMap.cxx | 71 ------------------------------- MUON/AliMUON1DMap.h | 38 ----------------- MUON/AliMUON3DMap.cxx | 75 --------------------------------- MUON/AliMUON3DMap.h | 40 ------------------ MUON/AliMUONCalibParam.cxx | 66 ----------------------------- MUON/AliMUONCalibParam.h | 40 ------------------ MUON/AliMUONV1DStore.cxx | 25 ----------- MUON/AliMUONV1DStore.h | 36 ---------------- MUON/AliMUONV3DStore.cxx | 29 ------------- MUON/AliMUONV3DStore.h | 33 --------------- MUON/AlirootRun_MUONtestcb.sh | 79 ----------------------------------- 11 files changed, 532 deletions(-) delete mode 100644 MUON/AliMUON1DMap.cxx delete mode 100644 MUON/AliMUON1DMap.h delete mode 100644 MUON/AliMUON3DMap.cxx delete mode 100644 MUON/AliMUON3DMap.h delete mode 100644 MUON/AliMUONCalibParam.cxx delete mode 100644 MUON/AliMUONCalibParam.h delete mode 100644 MUON/AliMUONV1DStore.cxx delete mode 100644 MUON/AliMUONV1DStore.h delete mode 100644 MUON/AliMUONV3DStore.cxx delete mode 100644 MUON/AliMUONV3DStore.h delete mode 100755 MUON/AlirootRun_MUONtestcb.sh diff --git a/MUON/AliMUON1DMap.cxx b/MUON/AliMUON1DMap.cxx deleted file mode 100644 index c97bb5af98f..00000000000 --- a/MUON/AliMUON1DMap.cxx +++ /dev/null @@ -1,71 +0,0 @@ -/************************************************************************** -* 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; -} - - - - - diff --git a/MUON/AliMUON1DMap.h b/MUON/AliMUON1DMap.h deleted file mode 100644 index bd09449ebb0..00000000000 --- a/MUON/AliMUON1DMap.h +++ /dev/null @@ -1,38 +0,0 @@ -/* 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 diff --git a/MUON/AliMUON3DMap.cxx b/MUON/AliMUON3DMap.cxx deleted file mode 100644 index 86fb9c536ef..00000000000 --- a/MUON/AliMUON3DMap.cxx +++ /dev/null @@ -1,75 +0,0 @@ -/************************************************************************** -* 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(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(fStore->Get(i)); - if (!m) - { - fStore->Set(i,new AliMUON2DMap,replace); - m = static_cast(fStore->Get(i)); - } - return m->Set(j,k,object,replace); -} - - - diff --git a/MUON/AliMUON3DMap.h b/MUON/AliMUON3DMap.h deleted file mode 100644 index 826b682209a..00000000000 --- a/MUON/AliMUON3DMap.h +++ /dev/null @@ -1,40 +0,0 @@ -/* 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 diff --git a/MUON/AliMUONCalibParam.cxx b/MUON/AliMUONCalibParam.cxx deleted file mode 100644 index 8dda1b5265f..00000000000 --- a/MUON/AliMUONCalibParam.cxx +++ /dev/null @@ -1,66 +0,0 @@ -/************************************************************************** -* 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; -} - - - diff --git a/MUON/AliMUONCalibParam.h b/MUON/AliMUONCalibParam.h deleted file mode 100644 index 7c74a297bc6..00000000000 --- a/MUON/AliMUONCalibParam.h +++ /dev/null @@ -1,40 +0,0 @@ -/* 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 diff --git a/MUON/AliMUONV1DStore.cxx b/MUON/AliMUONV1DStore.cxx deleted file mode 100644 index 60e07e843a9..00000000000 --- a/MUON/AliMUONV1DStore.cxx +++ /dev/null @@ -1,25 +0,0 @@ -/************************************************************************** -* 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() -{ -} diff --git a/MUON/AliMUONV1DStore.h b/MUON/AliMUONV1DStore.h deleted file mode 100644 index 96fff0e9670..00000000000 --- a/MUON/AliMUONV1DStore.h +++ /dev/null @@ -1,36 +0,0 @@ -/* 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 diff --git a/MUON/AliMUONV3DStore.cxx b/MUON/AliMUONV3DStore.cxx deleted file mode 100644 index a1288f0f9d1..00000000000 --- a/MUON/AliMUONV3DStore.cxx +++ /dev/null @@ -1,29 +0,0 @@ -/************************************************************************** -* 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() -{ -} - - - - diff --git a/MUON/AliMUONV3DStore.h b/MUON/AliMUONV3DStore.h deleted file mode 100644 index bf017c47a85..00000000000 --- a/MUON/AliMUONV3DStore.h +++ /dev/null @@ -1,33 +0,0 @@ -/* 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 diff --git a/MUON/AlirootRun_MUONtestcb.sh b/MUON/AlirootRun_MUONtestcb.sh deleted file mode 100755 index 548cdd07e20..00000000000 --- a/MUON/AlirootRun_MUONtestcb.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/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 -- 2.43.0