Removing obsolete class
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 11:17:56 +0000 (11:17 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 11:17:56 +0000 (11:17 +0000)
MUON/Doxymodules_STEER.h
STEER/AliTrackMapper.cxx [deleted file]
STEER/AliTrackMapper.h [deleted file]
STEER/CMakelibSTEER.pkg
STEER/STEERLinkDef.h

index 0bbb513..4d7d19c 100644 (file)
     class  AliRunLoader {};
     class  AliReconstructor {};
     class  AliTrackMap {};
-    class  AliTrackMapper {};
     class  AliMemoryWatcher {};
     class  AliMC {};
     class  AliSimulation {};
diff --git a/STEER/AliTrackMapper.cxx b/STEER/AliTrackMapper.cxx
deleted file mode 100644 (file)
index b166349..0000000
+++ /dev/null
@@ -1,232 +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$ */
-
-////////////////////////////////////////////////////////////////////////
-//
-// AliTrackMapper.cxx
-// description: 
-//        create an AliTrackMap - a relation between track label and 
-//        it's index in TreeH. Check all branches with hits.
-//        Output is in the root file.
-//
-////////////////////////////////////////////////////////////////////////
-
-#include <Riostream.h>
-
-#include "TError.h"
-#include "TFile.h"
-#include "TStopwatch.h"
-#include "TTree.h"
-
-#include "AliLog.h"
-#include "AliDetector.h"
-#include "AliHit.h"
-#include "AliLoader.h"
-#include "AliRun.h"
-#include "AliRunLoader.h"
-#include "AliTrackMap.h"
-#include "AliTrackMapper.h"
-
-ClassImp(AliTrackMapper)
-
-//_______________________________________________________________________
-AliTrackMapper::AliTrackMapper(): 
-  fDEBUG(0)
-{
-  //
-  // Default ctor
-  //
-}
-
-
-//_______________________________________________________________________
-void AliTrackMapper::CreateMap(Int_t nEvents, Int_t firstEventNr,
-                               const char* fnMap, const char* fnHits)
-{
-  //
-  // method to create a track map for a given number of events starting 
-  // from event firstEventNr. This method just opens and closes files and
-  // loops over events, the creation of map is delegated to 
-  // CreateMap(Int_t eventNr, TFile* fileMap) method
-  //
-  TStopwatch timer;
-  timer.Start();
-  
-  TFile *fileMap=TFile::Open(fnMap,"new");
-  if (!fileMap->IsOpen()) {AliErrorClass(Form("Can't open output file %s!", fnMap)); return;}
-
-  AliRunLoader* rl = AliRunLoader::Open(fnHits);
-  if (rl == 0x0) {AliErrorClass(Form("Can't open input file %s!\n", fnHits)); return;}
-  if (rl->LoadgAlice())
-    {
-      AliErrorClass("Error occured while loading AliRun");
-      return;
-    }
-    
-  if (!(gAlice=rl->GetAliRun())) {
-    AliErrorClass("gAlice have not been found on session !");
-    return;
-  }
-  
-  rl->LoadKinematics();
-  
-  for (Int_t eventNr = firstEventNr; eventNr < firstEventNr+nEvents;
-       eventNr++) {
-    CreateMap(eventNr,fileMap,rl);
-  } // end loop over events
-  
-  delete rl;
-  fileMap->Close();
-  delete fileMap;
-  timer.Stop();
-  if (fDEBUG > 0) timer.Print();
-}
-
-//_______________________________________________________________________
-Int_t  AliTrackMapper::CreateMap(Int_t eventNr, TFile* fileMap,AliRunLoader* rl) 
-{
-  //
-  // create an AliTrackMap for a given event
-  // correct gAlice must be already present in memory
-  //
-
-  rl->GetEvent(eventNr);
-
-  TTree *treeK = rl->TreeK();
-  if (!treeK) {
-    AliErrorClass(Form("Event %d, treeK not found.", eventNr));
-    return -1;
-  }
-  Int_t nAllParticles = static_cast<Int_t>(treeK->GetEntries());
-  Int_t *trackMap = new Int_t[nAllParticles];
-  for (Int_t i = 0; i<nAllParticles; i++) {trackMap[i] = kNoEntry;}
-
-
-  TObjArray *modules = gAlice->Detectors();
-  if (!modules) {
-    AliErrorClass("TObjArray with modules not found.");
-    return -1;
-  }
-  Int_t nModules = static_cast<Int_t>(modules->GetEntries());
-  AliHit* hit;
-  for (Int_t iModule = 0; iModule < nModules; iModule++) 
-   {
-    AliDetector * detector = dynamic_cast<AliDetector*>(modules->At(iModule));
-    if (!detector) continue;
-    AliLoader* loader = detector->GetLoader();
-    if (loader == 0x0)
-     {
-       AliWarningClass(Form("Can not get loader from detector %s.",
-                      detector->GetName()));
-       continue;
-     }
-    Int_t retval = loader->LoadHits();
-    if (retval) {
-      AliErrorClass(Form("Event %d: error occured while loading hits for %s",
-                        eventNr,detector->GetName()));
-      return -1;
-     }
-    
-    TTree *treeH = loader->TreeH();
-    if (!treeH) {
-      AliErrorClass(Form("Event %d: Can not get TreeH for %s",
-                        eventNr,detector->GetName()));
-      return -1;
-     }
-    Int_t treeHEntries = static_cast<Int_t>(treeH->GetEntries());
-    AliDebugClass(2, Form("treeHEntries %d", treeHEntries));
-     
-    detector->ResetHits();
-    
-    for (Int_t treeHIndex = 0; treeHIndex < treeHEntries; treeHIndex++)  
-     { // process only detectors with shunt = 0
-      treeH->GetEvent(treeHIndex);
-      if (detector->GetIshunt()) continue; 
-
-      hit=dynamic_cast<AliHit*>(detector->FirstHit(-1));
-      Int_t lastLabel=-1, label;
-      for( ; hit; hit=dynamic_cast<AliHit*>(detector->NextHit()) ) {
-       label=hit->Track();       
-       if (lastLabel != label) {
-         if (label < 0 || label >= nAllParticles) {
-           AliErrorClass(Form("label out of range. Event %d treeHIndex %d label = %d",
-                             eventNr, treeHIndex, label));
-           return -2;
-         }
-         if (trackMap[label] >=0 && trackMap[label] != treeHIndex) {
-           AliErrorClass(Form("different treeHIndex for label %d indeces: %d != %d event %d detector %s",
-                             label, trackMap[label], treeHIndex, eventNr, detector->GetName()));
-           return -3;
-         }
-         trackMap[label] = treeHIndex;
-         AliDebugClass(3, Form("treeHIndex, label = %d %d", treeHIndex, label));
-         lastLabel = label;
-       }
-      }
-    }//loop over hits in module
-    loader->UnloadHits();
-  }//loop over modules
-
-  ToAliDebugClass(3,
-    for (Int_t i = 0; i < nAllParticles; i++) {
-      cout<<eventNr<<"\t"<<i<<"\t"<<trackMap[i]<<endl;
-    }
-  )
-  fileMap->cd();
-  AliTrackMap* trackMapObject = new AliTrackMap(nAllParticles, trackMap);
-  trackMapObject->SetEventNr(eventNr);
-  trackMapObject->Write();
-  delete trackMapObject;
-
-  delete [] trackMap;
-  return 0;
-}
-  
-//_______________________________________________________________________
-AliTrackMap* AliTrackMapper::LoadTrackMap(Int_t eventNr, const char* fnMap, TFile* &fileMap) {
-  //
-  // read an AliTrackMap object for the given event eventNr from 
-  // the file fileMap
-  //
-  fileMap=TFile::Open(fnMap);
-  if (!fileMap->IsOpen()) {AliErrorClass(Form("Can't open file %s with map!", fnMap)); return 0;}
-  char mapName[20];
-  sprintf(mapName,"AliTrackMap_%5.5d",eventNr);
-  AliTrackMap* trackMapObject = dynamic_cast<AliTrackMap*>(fileMap->Get(mapName));
-  if (!trackMapObject) {
-    AliErrorClass(Form("map named %s not found.", mapName));
-    return 0;
-  }
-  return trackMapObject;
-}
-
-//_______________________________________________________________________
-void AliTrackMapper::CheckTrackMap(Int_t eventNr, const char* fnMap) {
-  //
-  // 
-  //
-  TFile *fileMap;
-  AliTrackMap* trackMapObject = LoadTrackMap(eventNr, fnMap, fileMap);
-  if (!trackMapObject) return;
-  
-  trackMapObject->PrintValues();
-  
-  delete trackMapObject;
-  fileMap->Close();
-  delete fileMap;
-}
-
diff --git a/STEER/AliTrackMapper.h b/STEER/AliTrackMapper.h
deleted file mode 100644 (file)
index 0a9eb7e..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef ALITRACKMAPPER_H
-#define ALITRACKMAPPER_H
-/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-////////////////////////////////////////////////////////////////////////
-//
-// description:
-//   create a relation between track label and it's index
-//   in TreeH. Check all branches with hits.
-//   Output is in the root file.
-//   See http://AliSoft.cern.ch/people/chudoba/classes/AliTrackMap.html
-//                  
-//  Author: Jiri Chudoba (CERN), 2002
-//
-////////////////////////////////////////////////////////////////////////
-
-// --- ROOT system ---
-
-class TFile;
-
-// --- AliRoot header files ---
-
-class AliTrackMap;
-class AliRunLoader;
-
-class AliTrackMapper {
-
-public:
-  AliTrackMapper();
-  virtual ~AliTrackMapper(){}
-  void CreateMap(Int_t nEvents, Int_t firstEventNr, 
-                 const char* fnMap = "trackMap.root",
-                 const char* fnHits   ="rfio:galice.root");
-  Int_t CreateMap(Int_t eventNr, TFile* fileMap,AliRunLoader* rl);
-  void SetDebug(Int_t level) {fDEBUG = level;}
-  void CheckTrackMap(Int_t eventNr, const char* fnMap = "trackMap.root");
-  AliTrackMap* LoadTrackMap(Int_t eventNr, const char* fnMap, TFile* &fileMap);
-
-    
-private:
-
-  Int_t fDEBUG;           // Debug flag
-  
-  ClassDef(AliTrackMapper,0)  // methods to create AliTrackMap
-};
-
-#endif // ALITRACKMAPPER_H
-
-
-
-
-
index ebff55f..096936f 100644 (file)
@@ -1,4 +1,4 @@
-set ( SRCS  AliRunLoader.cxx AliLoader.cxx AliDataLoader.cxx AliObjectLoader.cxx AliBaseLoader.cxx AliTreeLoader.cxx AliTaskLoader.cxx AliDetector.cxx AliDigit.cxx    AliHit.cxx AliRun.cxx AliGenerator.cxx AliVertexGenerator.cxx AliLego.cxx       AliModule.cxx   AliDigitNew.cxx AliGeometry.cxx AliRecPoint.cxx AliHitMap.cxx AliLegoGenerator.cxx AliLegoGeneratorXYZ.cxx AliLegoGeneratorPhiZ.cxx AliLegoGeneratorEta.cxx AliLegoGeneratorEtaR.cxx AliRndm.cxx AliDebugVolume.cxx AliConfig.cxx AliRunDigitizer.cxx AliDigitizer.cxx AliStream.cxx AliMergeCombi.cxx AliGausCorr.cxx AliTrackMap.cxx AliTrackMapper.cxx AliMemoryWatcher.cxx AliVertexer.cxx AliV0vertexer.cxx AliCascadeVertexer.cxx AliMC.cxx AliSimulation.cxx AliReconstruction.cxx AliVertexGenFile.cxx AliReconstructor.cxx AliGeomManager.cxx AliAlignObj.cxx AliAlignObjParams.cxx AliAlignObjMatrix.cxx AliMisAligner.cxx AliTriggerInput.cxx AliTriggerDetector.cxx AliTriggerConfiguration.cxx AliTriggerBCMask.cxx AliTriggerInteraction.cxx AliTriggerDescriptor.cxx AliTriggerClass.cxx AliTriggerCluster.cxx AliTriggerPFProtection.cxx AliCentralTrigger.cxx AliRieman.cxx AliTrackFitter.cxx AliTrackFitterRieman.cxx AliTrackFitterKalman.cxx AliTrackFitterStraight.cxx AliTrackResiduals.cxx AliTrackResidualsChi2.cxx AliTrackResidualsFast.cxx AliTrackResidualsLinear.cxx AliAlignmentTracks.cxx AliExpression.cxx AliCTPRawStream.cxx AliMathBase.cxx AliSignalProcesor.cxx AliTracker.cxx AliCluster.cxx AliCluster3D.cxx AliTrackleter.cxx AliHelix.cxx AliV0.cxx AliKink.cxx AliSelectorRL.cxx AliSurveyObj.cxx AliSurveyPoint.cxx AliSurveyToAlignObjs.cxx AliFstream.cxx AliCTPRawData.cxx AliQADataMaker.cxx AliGlobalQADataMaker.cxx AliQADataMakerSim.cxx AliQADataMakerRec.cxx AliCorrQADataMakerRec.cxx AliQAManager.cxx AliQAChecker.cxx AliCorrQAChecker.cxx AliGlobalQAChecker.cxx AliQACheckerBase.cxx AliQAThresholds.cxx AliMillepede.cxx AliPlaneEff.cxx AliTriggerRunScalers.cxx AliGRPPreprocessor.cxx AliGRPRecoParam.cxx AliRelAlignerKalman.cxx AliESDTagCreator.cxx AliGRPObject.cxx AliQAv1.cxx AliRunInfo.cxx AliEventInfo.cxx AliRecoParam.cxx AliDetectorRecoParam.cxx AliMillePedeRecord.cxx AliMillePede2.cxx AliMatrixSq.cxx AliVectorSparse.cxx AliMatrixSparse.cxx AliSymMatrix.cxx AliSymBDMatrix.cxx AliRectMatrix.cxx AliMinResSolve.cxx AliParamSolver.cxx AliGRPManager.cxx AliDCSArray.cxx AliLHCReader.cxx AliLHCDipValT.cxx AliLHCData.cxx AliCTPTimeParams.cxx AliCTPInputTimeParams.cxx AliLHCClockPhase.cxx AliLTUConfig.cxx)
+set ( SRCS  AliRunLoader.cxx AliLoader.cxx AliDataLoader.cxx AliObjectLoader.cxx AliBaseLoader.cxx AliTreeLoader.cxx AliTaskLoader.cxx AliDetector.cxx AliDigit.cxx    AliHit.cxx AliRun.cxx AliGenerator.cxx AliVertexGenerator.cxx AliLego.cxx       AliModule.cxx   AliDigitNew.cxx AliGeometry.cxx AliRecPoint.cxx AliHitMap.cxx AliLegoGenerator.cxx AliLegoGeneratorXYZ.cxx AliLegoGeneratorPhiZ.cxx AliLegoGeneratorEta.cxx AliLegoGeneratorEtaR.cxx AliRndm.cxx AliDebugVolume.cxx AliConfig.cxx AliRunDigitizer.cxx AliDigitizer.cxx AliStream.cxx AliMergeCombi.cxx AliGausCorr.cxx AliTrackMap.cxx AliMemoryWatcher.cxx AliVertexer.cxx AliV0vertexer.cxx AliCascadeVertexer.cxx AliMC.cxx AliSimulation.cxx AliReconstruction.cxx AliVertexGenFile.cxx AliReconstructor.cxx AliGeomManager.cxx AliAlignObj.cxx AliAlignObjParams.cxx AliAlignObjMatrix.cxx AliMisAligner.cxx AliTriggerInput.cxx AliTriggerDetector.cxx AliTriggerConfiguration.cxx AliTriggerBCMask.cxx AliTriggerInteraction.cxx AliTriggerDescriptor.cxx AliTriggerClass.cxx AliTriggerCluster.cxx AliTriggerPFProtection.cxx AliCentralTrigger.cxx AliRieman.cxx AliTrackFitter.cxx AliTrackFitterRieman.cxx AliTrackFitterKalman.cxx AliTrackFitterStraight.cxx AliTrackResiduals.cxx AliTrackResidualsChi2.cxx AliTrackResidualsFast.cxx AliTrackResidualsLinear.cxx AliAlignmentTracks.cxx AliExpression.cxx AliCTPRawStream.cxx AliMathBase.cxx AliSignalProcesor.cxx AliTracker.cxx AliCluster.cxx AliCluster3D.cxx AliTrackleter.cxx AliHelix.cxx AliV0.cxx AliKink.cxx AliSelectorRL.cxx AliSurveyObj.cxx AliSurveyPoint.cxx AliSurveyToAlignObjs.cxx AliFstream.cxx AliCTPRawData.cxx AliQADataMaker.cxx AliGlobalQADataMaker.cxx AliQADataMakerSim.cxx AliQADataMakerRec.cxx AliCorrQADataMakerRec.cxx AliQAManager.cxx AliQAChecker.cxx AliCorrQAChecker.cxx AliGlobalQAChecker.cxx AliQACheckerBase.cxx AliQAThresholds.cxx AliMillepede.cxx AliPlaneEff.cxx AliTriggerRunScalers.cxx AliGRPPreprocessor.cxx AliGRPRecoParam.cxx AliRelAlignerKalman.cxx AliESDTagCreator.cxx AliGRPObject.cxx AliQAv1.cxx AliRunInfo.cxx AliEventInfo.cxx AliRecoParam.cxx AliDetectorRecoParam.cxx AliMillePedeRecord.cxx AliMillePede2.cxx AliMatrixSq.cxx AliVectorSparse.cxx AliMatrixSparse.cxx AliSymMatrix.cxx AliSymBDMatrix.cxx AliRectMatrix.cxx AliMinResSolve.cxx AliParamSolver.cxx AliGRPManager.cxx AliDCSArray.cxx AliLHCReader.cxx AliLHCDipValT.cxx AliLHCData.cxx AliCTPTimeParams.cxx AliCTPInputTimeParams.cxx AliLHCClockPhase.cxx AliLTUConfig.cxx)
 
 string(REPLACE ".cxx" ".h" HDRS  "${SRCS}")
 
index 707d8df..197ea6d 100644 (file)
@@ -48,7 +48,6 @@
 #pragma link C++ class  AliRunLoader+;
 #pragma link C++ class  AliReconstructor+;
 #pragma link C++ class  AliTrackMap+;
-#pragma link C++ class  AliTrackMapper+;
 #pragma link C++ class  AliMemoryWatcher+;
 #pragma link C++ class  AliMC+;
 #pragma link C++ class  AliSimulation+;