From: morsch Date: Fri, 8 Jan 2010 16:29:33 +0000 (+0000) Subject: Obsolete. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=461e04549a703ba8039c6847c16f2878aa4b73c3;hp=9bf660ff084231d55416efdf98b9c83840531b91 Obsolete. --- diff --git a/PWG1/PilotTrain/AliESDInputHandlerRPITS.cxx b/PWG1/PilotTrain/AliESDInputHandlerRPITS.cxx deleted file mode 100644 index c75ae064c50..00000000000 --- a/PWG1/PilotTrain/AliESDInputHandlerRPITS.cxx +++ /dev/null @@ -1,144 +0,0 @@ -/************************************************************************** - * Copyright(c) 1998-2007, 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$ */ - -//------------------------------------------------------------------------- -// Event handler for ESD input reading the RecPoint Trees in parallel -// Author: Andreas Morsch, CERN -//------------------------------------------------------------------------- - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "AliESDInputHandlerRPITS.h" -#include "AliESDEvent.h" -#include "AliESD.h" -#include "AliLog.h" - -ClassImp(AliESDInputHandlerRPITS) - -//______________________________________________________________________________ -AliESDInputHandlerRPITS::AliESDInputHandlerRPITS() : - AliESDInputHandlerRP() -{ - // Default constructor -} - - -//______________________________________________________________________________ -AliESDInputHandlerRPITS::AliESDInputHandlerRPITS(const char* name, const char* title): - AliESDInputHandlerRP(name, title) -{ - // Constructor -} - -//______________________________________________________________________________ -AliESDInputHandlerRPITS::~AliESDInputHandlerRPITS() -{ - // Destructor -} - - -Bool_t AliESDInputHandlerRPITS::Notify(const char *path) -{ - // Notify about directory change - // The directory is taken from the 'path' argument - // - AliInfo(Form("Directory change %s \n", path)); - // Get path to directory - TString fileName(path); - - if(fileName.Contains("#")){ - // If this is an archive it will contain a # - fIsArchive = kTRUE; - } else if(fileName.Contains("AliESDs.root")){ - fileName.ReplaceAll("AliESDs.root", ""); - } - - // - // At this point we have a path to the directory or to the archive anchor - *fPathName = fileName; - // - // Now filter the files containing RecPoints *.RecPoints.* - - TSeqCollection* members; - - - if (fIsArchive) { - // Archive - TFile* file = TFile::Open(fPathName->Data()); - TArchiveFile* arch = file->GetArchive(); - members = arch->GetMembers(); - } else { - // Directory or alien archive - if (fileName.BeginsWith("alien:")) { - TFile* file = TFile::Open(Form("%s/root_archive.zip", fPathName->Data())); - TArchiveFile* arch = file->GetArchive(); - members = arch->GetMembers(); - } else { - TString wd = gSystem->WorkingDirectory(); - TSystemDirectory dir(".", fPathName->Data()); - members = dir.GetListOfFiles(); - gSystem->cd(wd); - } - } - - TIter next(members); - TFile* entry; - Int_t ien = 0; - fDetectors->Delete(); - - while ( (entry = (TFile*) next()) ) - { - TString name(entry->GetName()); - TObjArray* tokens = name.Tokenize("."); - Int_t ntok = tokens->GetEntries(); - if (ntok <= 1) continue; - TString str = ((TObjString*) tokens->At(1))->GetString(); - if (!(strcmp(str.Data(), "RecPoints"))){ - TString det = ((TObjString*) tokens->At(0))->GetString(); - if (!(strcmp(det.Data(), "ITS"))) { - printf("Found file with RecPoints for %s \n", det.Data()); - TNamed* ent = new TNamed(det.Data(), det.Data()); - fRTrees->AddAt(0, ien); - ent->SetUniqueID(ien++); - fDetectors->Add(ent); - } - } - if(tokens) delete tokens; - } // loop over files - - - // Now we have the path and the list of detectors - - printf("AliESDInputHandlerRPITS::Notify() Path: %s\n", fPathName->Data()); - // - ResetIO(); - InitIO(""); - // Some clean-up - members->Delete(); - - return kTRUE; -} - diff --git a/PWG1/PilotTrain/AliESDInputHandlerRPITS.h b/PWG1/PilotTrain/AliESDInputHandlerRPITS.h deleted file mode 100644 index dcd9015d682..00000000000 --- a/PWG1/PilotTrain/AliESDInputHandlerRPITS.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef ALIESDINPUTHANDLERRPITS_H -#define ALIESDINPUTHANDLERRPITS_H -/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * - * See cxx source for full Copyright notice */ - -/* $Id: AliESDInputHandler.h 24521 2008-03-14 16:43:54Z morsch $ */ - -//------------------------------------------------------------------------- -// ESD Input Handler realisation of the AliVEventHandler interface -// Automatic loading of RecPoint Trees -// Author: Andreas Morsch, CERN -//------------------------------------------------------------------------- - -#include "AliESDInputHandlerRP.h" -#include "AliESDEvent.h" -class TList; -class TTree; -class TDirectoryFile; -class TString; - - -class AliESDInputHandlerRPITS : public AliESDInputHandlerRP { - - public: - AliESDInputHandlerRPITS(); - AliESDInputHandlerRPITS(const char* name, const char* title); - virtual ~AliESDInputHandlerRPITS(); - virtual Bool_t Notify(const char* path); - ClassDef(AliESDInputHandlerRPITS, 1); -}; - -#endif