]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Split: TOF/TOFcalib removed
authordberzano <dario.berzano@cern.ch>
Mon, 19 Jan 2015 13:05:35 +0000 (14:05 +0100)
committerdberzano <dario.berzano@cern.ch>
Mon, 19 Jan 2015 13:31:34 +0000 (14:31 +0100)
TOF/CMakeLists.txt
TOF/TOFcalib/AliTOFAnalysisTaskCalibPass0.cxx [deleted file]
TOF/TOFcalib/AliTOFAnalysisTaskCalibPass0.h [deleted file]
TOF/TOFcalib/AliTOFAnalysisTaskCalibTree.cxx [deleted file]
TOF/TOFcalib/AliTOFAnalysisTaskCalibTree.h [deleted file]
TOF/TOFcalib/CMakeLists.txt [deleted file]
TOF/TOFcalib/TOFcalibLinkDef.h [deleted file]

index d9ae02e8462931172e226c69c39f3f262c289b5c..35421466f5160cf8b462e5c85b9e3c2455d508d9 100644 (file)
@@ -14,7 +14,6 @@
 # **************************************************************************
 
 add_subdirectory(TOFbase)
-add_subdirectory(TOFcalib)
 add_subdirectory(TOFrec)
 add_subdirectory(TOFsim)
 
diff --git a/TOF/TOFcalib/AliTOFAnalysisTaskCalibPass0.cxx b/TOF/TOFcalib/AliTOFAnalysisTaskCalibPass0.cxx
deleted file mode 100644 (file)
index 73715b4..0000000
+++ /dev/null
@@ -1,976 +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.                  *
-***************************************************************************/
-
-///////////////////////////////////////////////////////////////
-//                                                           //
-//   This class provides TOF pass0/passX calibration tools   //
-//                                                           //
-///////////////////////////////////////////////////////////////
-
-#include "AliTOFAnalysisTaskCalibPass0.h"
-#include "AliESDtrack.h"
-#include "AliESDEvent.h"
-#include "AliPhysicsSelection.h"
-#include "AliESDtrackCuts.h"
-#include "AliCDBManager.h"
-#include "AliGRPManager.h"
-#include "AliGRPObject.h"
-#include "AliTOFcalib.h"
-#include "TList.h"
-#include "TH2F.h"
-#include "TFile.h"
-#include "TH1D.h"
-#include "TObjArray.h"
-#include "TString.h"
-#include "TObjString.h"
-#include "TROOT.h"
-#include "TF1.h"
-#include "TTime.h"
-#include "TGrid.h"
-#include "TTimeStamp.h"
-#include "AliTOFRunParams.h"
-#include "AliCDBStorage.h"
-#include "AliCDBId.h"
-#include "AliCDBMetaData.h"
-#include "TSystem.h"
-#include "AliLog.h"
-
-ClassImp(AliTOFAnalysisTaskCalibPass0)
-  
-//_______________________________________________________
-
-const Char_t *AliTOFAnalysisTaskCalibPass0::fgkStatusCodeName[AliTOFAnalysisTaskCalibPass0::kNStatusCodes] = {
-  "ok",
-  "input error",
-  "data error",
-  "not active",
-  "low statistics",
-  "no measurement",
-  "store error"
-};
-
-const Int_t AliTOFAnalysisTaskCalibPass0::fgkMaxNumberOfPoints = 10000; // max number of points
-Double_t AliTOFAnalysisTaskCalibPass0::fgMinVertexIntegral = 100.;
-Double_t AliTOFAnalysisTaskCalibPass0::fgMinDeltatIntegral = 2000.;
-Double_t AliTOFAnalysisTaskCalibPass0::fgMinVertexIntegralSample = 1000.;
-Double_t AliTOFAnalysisTaskCalibPass0::fgMinDeltatIntegralSample = 20000.;
-
-//_______________________________________________________
-  
-AliTOFAnalysisTaskCalibPass0::AliTOFAnalysisTaskCalibPass0() :
-  AliAnalysisTaskSE("TOFCalib-Pass0"),
-  fStatus(kOk),
-  fInitFlag(kFALSE),
-  fEventSelectionFlag(kFALSE),
-  fVertexSelectionFlag(kFALSE),
-  fVertexCut(10.),
-  fRunNumber(0),
-  fESDEvent(NULL),
-  fEventCuts(new AliPhysicsSelection()),
-  fTrackCuts(new AliESDtrackCuts()),
-  fStartTime(0),
-  fEndTime(0),
-  fEventTime(0),
-  fElapsedTime(0),
-  fkVertex(NULL),
-  fGRPManager(new AliGRPManager()),
-  fkGRPObject(NULL),
-  fTOFcalib(new AliTOFcalib()),
-  fHistoList(new TList()),
-  fHistoVertexTimestamp(NULL),
-  fHistoDeltatTimestamp(NULL),
-  fHistoDeltazEta(NULL),
-  fHistoDeltatEta(NULL),
-  fHistoDeltazCosTheta(NULL),
-  fHistoAcceptedTracksEtaPt(NULL),
-  fHistoMatchedTracksEtaPt(NULL)
-{
-  /* 
-   * default constructor 
-   */
-
-  /* define output */
-  fHistoList->SetOwner(kTRUE);
-  DefineOutput(1, TList::Class());
-}
-
-//_______________________________________________________
-
-AliTOFAnalysisTaskCalibPass0::~AliTOFAnalysisTaskCalibPass0()
-{
-  /*
-   * default destructor
-   */
-
-  if (fHistoList) delete fHistoList;
-}
-
-//_______________________________________________________
-
-Bool_t
-AliTOFAnalysisTaskCalibPass0::InitRun()
-{
-  /*
-   * init run
-   */
-
-  /* get ESD event */
-  fESDEvent = dynamic_cast<AliESDEvent *>(InputEvent());
-  if (!fESDEvent) {
-    AliError("cannot get ESD event");
-    return kFALSE;
-  }
-  /* get run number */
-  Int_t runNb = fESDEvent->GetRunNumber();
-  /* check run already initialized */
-  if (fInitFlag && fRunNumber == runNb) return kTRUE;
-  if (fInitFlag && fRunNumber != runNb) {
-    AliFatal(Form("run number has changed within same job and this is not allowed: %d -> %d", fRunNumber, runNb));
-    return kTRUE;
-  }
-  fInitFlag = kFALSE;
-  /* init cdb if not yet done */
-  AliCDBManager *cdb = AliCDBManager::Instance();
-  if (!cdb->IsDefaultStorageSet())
-    cdb->SetDefaultStorage("raw://");
-  if (cdb->GetRun() < 0)
-    cdb->SetRun(runNb);
-    /* init TOF calib */
-  if (!fTOFcalib->Init()) {
-    AliError("cannot init TOF calib");
-    return kFALSE;
-  }
-  /* get GRP data */
-  if (!fGRPManager->ReadGRPEntry()) {
-    AliError("error while reading \"GRPEntry\" from OCDB");
-    return kFALSE;
-  }
-  fkGRPObject = fGRPManager->GetGRPData();
-  if (!fkGRPObject) {
-    AliError("cannot get \"GRPData\" from GRP manager");
-    return kFALSE;
-  }
-  fStartTime = fkGRPObject->GetTimeStart();
-  fEndTime = fkGRPObject->GetTimeEnd();
-  AliInfo(Form("got \"GRPData\": startTime=%d, endTime=%d", fStartTime, fEndTime));
-  
-  AliInfo(Form("initialized for run %d", runNb));
-  fInitFlag = kTRUE;
-  fRunNumber = runNb;
-  
-  Int_t useBPTX = fTOFcalib->GetUseLHCClockPhase() ? 1 : 0;
-
-  /* set histo title with run-number and start-time */
-  fHistoVertexTimestamp->SetTitle(Form("run: %d, startTimestamp: %u, BPTX: %d", fRunNumber, fStartTime, useBPTX));
-  fHistoDeltatTimestamp->SetTitle(Form("run: %d, startTimestamp: %u, BPTX: %d", fRunNumber, fStartTime, useBPTX));
-  fHistoDeltazEta->SetTitle(Form("run: %d, startTimestamp: %u, BPTX: %d", fRunNumber, fStartTime, useBPTX));
-  fHistoDeltatEta->SetTitle(Form("run: %d, startTimestamp: %u, BPTX: %d", fRunNumber, fStartTime, useBPTX));
-  fHistoDeltazCosTheta->SetTitle(Form("run: %d, startTimestamp: %u, BPTX: %d", fRunNumber, fStartTime, useBPTX));
-  fHistoAcceptedTracksEtaPt->SetTitle(Form("run: %d, startTimestamp: %u, BPTX: %d", fRunNumber, fStartTime, useBPTX));
-  fHistoMatchedTracksEtaPt->SetTitle(Form("run: %d, startTimestamp: %u, BPTX: %d", fRunNumber, fStartTime, useBPTX));
-  
-  return kTRUE;
-}
-
-//_______________________________________________________
-
-Bool_t
-AliTOFAnalysisTaskCalibPass0::InitEvent()
-{
-  /*
-   * init event
-   */
-
-  /* get ESD event */
-  fESDEvent = dynamic_cast<AliESDEvent *>(InputEvent());
-  if (!fESDEvent) return kFALSE;
-  /* set event time and elapsed time */
-  fEventTime = fESDEvent->GetTimeStamp();
-  fElapsedTime = fESDEvent->GetTimeStamp() - fStartTime;
-  /* event selection */
-  if (fEventSelectionFlag && !fEventCuts->IsCollisionCandidate(fESDEvent)) return kFALSE;
-  /* vertex selection */
-  fkVertex = fESDEvent->GetPrimaryVertexTracks();
-  if (fVertexSelectionFlag && fkVertex->GetNContributors() < 1) {
-    fkVertex = fESDEvent->GetPrimaryVertexSPD();
-    if (fkVertex->GetNContributors() < 1) return kFALSE;
-  }
-  if (fVertexSelectionFlag && TMath::Abs(fkVertex->GetZ()) > fVertexCut) return kFALSE;
-  /* calibrate ESD if requested */
-  fTOFcalib->CalibrateESD(fESDEvent);
-
-  return kTRUE;
-}
-
-//_______________________________________________________
-
-Bool_t
-AliTOFAnalysisTaskCalibPass0::HasTOFMeasurement(const AliESDtrack *track) const
-{
-  /*
-   * has TOF measurement
-   */
-
-  /* check TOF status flags */
-  if (!(track->GetStatus() & AliESDtrack::kTOFout) ||
-      !(track->GetStatus() & AliESDtrack::kTIME)) return kFALSE;
-  /* check integrated length */
-  if (track->GetIntegratedLength() < 350.) return kFALSE;
-
-  /* TOF measurement ok */
-  return kTRUE;
-}
-
-//_______________________________________________________
-
-void
-AliTOFAnalysisTaskCalibPass0::UserCreateOutputObjects()
-{
-  /*
-   * user create output objects
-   */
-
-  /* time binning */
-  Int_t timeBins = 288;
-  Float_t timeMin = 0.;
-  Float_t timeMax = 24. * 3600.;
-  /* vertex binning */
-  Int_t vertexBins = 200;
-  Float_t vertexMin = -50.;
-  Float_t vertexMax = 50.;
-  /* deltat binning */
-  Int_t deltatBins = 2000;
-  Float_t deltatMin = -24400.;
-  Float_t deltatMax = 24400.;
-  /* deltaz binning */
-  Int_t deltazBins = 200;
-  Float_t deltazMin = -10.;
-  Float_t deltazMax = 10.;
-  /* eta binning */
-  Int_t etaBins = 200;
-  Float_t etaMin = -1.;
-  Float_t etaMax = 1.;
-  /* p binning */
-  Int_t pBins = 500;
-  Float_t pMin = 0.;
-  Float_t pMax = 5.;
-  
-  fHistoVertexTimestamp = new TH2F("hHistoVertexTimestamp", "Vertex position;elapsed time (s);z (cm);", timeBins, timeMin, timeMax, vertexBins, vertexMin, vertexMax);
-  fHistoList->Add(fHistoVertexTimestamp);
-
-  fHistoDeltatTimestamp = new TH2F("hHistoDeltatTimestamp", "Global time shift (T0-fill);elapsed time (s);t - t_{exp}^{(#pi)} (ps);", timeBins, timeMin, timeMax, deltatBins, deltatMin, deltatMax);
-  fHistoList->Add(fHistoDeltatTimestamp);
-
-  fHistoDeltazEta = new TH2F("hHistoDeltazEta", "Matching residuals (longitudinal);#eta;#Deltaz (cm);", etaBins, etaMin, etaMax, deltazBins, deltazMin, deltazMax);
-  fHistoList->Add(fHistoDeltazEta);
-
-  fHistoDeltatEta = new TH2F("hHistoDeltatEta", "Global time shift (T0-fill) vs #eta; #eta; t - t_{exp}^{(#pi)} (ps);", etaBins, etaMin, etaMax, deltatBins, deltatMin, deltatMax);
-  fHistoList->Add(fHistoDeltatEta);
-
-  fHistoDeltazCosTheta = new TH2F("hHistoDeltazCosTheta", "Matching residuals (longitudinal);cos #theta;#Deltaz (cm);", etaBins, etaMin, etaMax, deltazBins, deltazMin, deltazMax);
-  fHistoList->Add(fHistoDeltazCosTheta);
-
-  fHistoAcceptedTracksEtaPt = new TH2F("hHistoAcceptedTracksEtaPt", "Accepted tracks;#eta;#p_{T} (GeV/c);", etaBins, etaMin, etaMax, pBins, pMin, pMax);
-  fHistoList->Add(fHistoAcceptedTracksEtaPt);
-
-  fHistoMatchedTracksEtaPt = new TH2F("hHistoMatchedTracksEtaPt", "Matched tracks;#eta;p_{T} (GeV/c);", etaBins, etaMin, etaMax, pBins, pMin, pMax);
-  fHistoList->Add(fHistoMatchedTracksEtaPt);
-
-  /* post data */
-  PostData(1, fHistoList);
-}
-
-//_______________________________________________________
-
-void
-AliTOFAnalysisTaskCalibPass0::UserExec(Option_t *)
-{
-  /*
-   * user exec
-   */
-
-  /* init run */
-  if (!InitRun()) return;
-  /* init event */
-  if (!InitEvent()) return;
-
-  /*** ACCEPTED EVENT ***/
-  
-  /* fill vertex histo */
-  fHistoVertexTimestamp->Fill(fElapsedTime, fkVertex->GetZ());
-
-  /* loop over ESD tracks */
-  Int_t nTracks = fESDEvent->GetNumberOfTracks();
-  AliESDtrack *track;
-  Double_t eta, costheta, pt, time, timei[AliPID::kSPECIESC], deltat, deltaz;
-  for (Int_t itrk = 0; itrk < nTracks; itrk++) {
-    /* get track */
-    track = fESDEvent->GetTrack(itrk);
-    if (!track) continue;
-    /* check accept track */
-    if (!fTrackCuts->AcceptTrack(track)) continue;
-    /* get track info */
-    eta = track->Eta();
-    costheta = TMath::Cos(track->Theta());
-    pt = track->Pt();
-    /* fill accepted tracks histo */
-    fHistoAcceptedTracksEtaPt->Fill(eta, pt);
-    /* check TOF measurement */
-    if (!HasTOFMeasurement(track)) continue;
-
-    /*** ACCEPTED TRACK WITH TOF MEASUREMENT ***/
-
-    /* fill matched tracks histo */
-    fHistoMatchedTracksEtaPt->Fill(eta, pt);
-    /* get TOF info */
-    time = track->GetTOFsignal();
-    track->GetIntegratedTimes(timei);
-    deltat = time - timei[AliPID::kPion];
-    deltaz = track->GetTOFsignalDz();
-    
-    /* fill histos */
-    fHistoDeltatTimestamp->Fill(fElapsedTime, deltat);
-    fHistoDeltazEta->Fill(eta, deltaz);
-    fHistoDeltatEta->Fill(eta, deltat);
-    fHistoDeltazCosTheta->Fill(costheta, deltaz);
-    
-  } /* end of loop over ESD tracks */
-
-  /* post data */
-  PostData(1, fHistoList);
-  
-}
-
-//_______________________________________________________
-
-Int_t
-AliTOFAnalysisTaskCalibPass0::GetStatus()
-{
-  /*
-   * get status
-   */
-
-  switch (fStatus) {
-
-    /* OK, return zero */
-  case kOk:
-    return 0;
-    break;
-    
-    /* non-fatal error, return negative status */
-  case kNotActive:
-  case kLowStatistics:
-  case kNoMeasurement:
-    return -fStatus;
-    break;
-    
-    /* fatal error, return positive status */
-  case kInputError: 
-  case kDataError:
-  case kStoreError:
-    return fStatus;
-    break;
-
-    /* anything else, return negative large number */
-  default:
-    return -999;
-    break;
-  }
-  
-  /* should never arrive here, anyway return negative large number */
-  return -999;
-}
-
-//_______________________________________________________
-
-void
-AliTOFAnalysisTaskCalibPass0::PrintStatus()
-{
-  /*
-   * print status
-   */
-
-  Int_t status = GetStatus();
-  if (status == 0) {
-    AliInfo(Form("TOF calibration successful: %s (status=%d)", fgkStatusCodeName[fStatus], status));
-  }
-  else if (status > 0) {
-    AliInfo(Form("TOF calibration failed: %s (status=%d)", fgkStatusCodeName[fStatus], status));
-  }
-  else if (status < 0) {
-    AliInfo(Form("TOF calibration failed (expected): %s (status=%d)", fgkStatusCodeName[fStatus], status));
-  }
-  
-}
-
-//_______________________________________________________
-
-Bool_t
-AliTOFAnalysisTaskCalibPass0::ProcessOutput(const Char_t *filename, AliCDBStorage* db)
-{
-  /*
-   * process output
-   */
-
-  Int_t ret = DoProcessOutput(filename, db);
-  PrintStatus();
-  return ret;
-}
-
-//_______________________________________________________
-
-Bool_t
-AliTOFAnalysisTaskCalibPass0::DoProcessOutput(const Char_t *filename, AliCDBStorage *db)
-{
-  /*
-   * do process output
-   */
-
-  /* reset status to OK */
-  fStatus = kOk;
-
-  /* open file */
-  TFile *file = TFile::Open(filename);
-  if (!file || !file->IsOpen()) {
-    AliError(Form("cannot open output file %s", filename));
-    fStatus = kInputError;
-    return kFALSE;
-  }
-  /* get histograms */
-  TList *list = (TList *)file->Get("TOFHistos");
-  TH2F *histoVertexTimestamp = NULL;
-  TH2F *histoDeltatTimestamp = NULL;
-  TH2F *histoDeltazEta = NULL;
-  TH2F *histoDeltatEta = NULL;
-  TH2F *histoDeltazCosTheta = NULL;
-  TH2F *histoAcceptedTracksEtaPt = NULL;
-  TH2F *histoMatchedTracksEtaPt = NULL;
-  if (list) {
-    AliInfo(Form("getting histograms from \"Histos\" list from file %s", filename));
-    histoVertexTimestamp = (TH2F *)list->FindObject("hHistoVertexTimestamp");
-    histoDeltatTimestamp = (TH2F *)list->FindObject("hHistoDeltatTimestamp");
-    histoDeltazEta = (TH2F *)list->FindObject("hHistoDeltazEta");
-    histoDeltatEta = (TH2F *)list->FindObject("hHistoDeltatEta");
-    histoDeltazCosTheta = (TH2F *)list->FindObject("hHistoDeltazCosTheta");
-    histoAcceptedTracksEtaPt = (TH2F *)list->FindObject("hHistoAcceptedTracksEtaPt");
-    histoMatchedTracksEtaPt = (TH2F *)list->FindObject("hHistoMatchedTracksEtaPt");
-  }
-  else {
-    AliInfo(Form("getting histograms directly from file %s", filename));
-    histoVertexTimestamp = (TH2F *)file->Get("hHistoVertexTimestamp");
-    histoDeltatTimestamp = (TH2F *)file->Get("hHistoDeltatTimestamp");
-    histoDeltazEta = (TH2F *)file->Get("hHistoDeltazEta");
-    histoDeltatEta = (TH2F *)file->Get("hHistoDeltatEta");
-    histoDeltazCosTheta = (TH2F *)file->Get("hHistoDeltazCosTheta");
-    histoAcceptedTracksEtaPt = (TH2F *)file->Get("hHistoAcceptedTracksEtaPt");
-    histoMatchedTracksEtaPt = (TH2F *)file->Get("hHistoMatchedTracksEtaPt");
-  }
-  /* check histos */ 
-  if (!histoVertexTimestamp) {
-    AliError(Form("cannot get \"hHistoVertexTimestamp\" object from file %s", filename));
-    fStatus = kInputError;
-    if (list)
-      delete list;
-    else {
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-  if (!histoDeltatTimestamp) {
-    AliError(Form("cannot get \"hHistoDeltatTimestamp\" object from file %s", filename));
-    fStatus = kInputError;
-    if (list)
-      delete list;
-    else{
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-  if (!histoDeltazEta) {
-    AliError(Form("cannot get \"hHistoDeltazEta\" object from file %s", filename));
-    fStatus = kInputError;
-    if (list)
-      delete list;
-    else{
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-  if (!histoDeltatEta) {
-    AliError(Form("cannot get \"hHistoDeltatEta\" object from file %s", filename));
-    fStatus = kInputError;
-    if (list)
-      delete list;
-    else{
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-  if (!histoDeltazCosTheta) {
-    AliError(Form("cannot get \"hHistoDeltazCosTheta\" object from file %s", filename));
-    fStatus = kInputError;
-    if (list)
-      delete list;
-    else{
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-  if (!histoAcceptedTracksEtaPt) {
-    AliError(Form("cannot get \"hHistoAccptedTracksEtaPt\" object from file %s", filename));
-    fStatus = kInputError;
-    if (list)
-      delete list;
-    else{
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-  if (!histoMatchedTracksEtaPt) {
-    AliError(Form("cannot get \"hHistoMatchedTracksEtaPt\" object from file %s", filename));
-    fStatus = kInputError;
-    if (list)
-      delete list;
-    else{
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-
-  /* check matching performance */
-  if (!CheckMatchingPerformance(histoDeltazEta, histoAcceptedTracksEtaPt, histoMatchedTracksEtaPt)) {
-    AliError("error while checking matching efficiency");
-    if (list)
-      delete list;
-    else{
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-  /* calibrate and store */
-  if (!CalibrateAndStore(histoVertexTimestamp, histoDeltatTimestamp, db)) {
-    AliError("error while calibrating and storing");
-    if (list)
-      delete list;
-    else{
-      if (histoVertexTimestamp) delete histoVertexTimestamp;
-      if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-      if (histoDeltazEta) delete histoDeltazEta;
-      if (histoDeltatEta) delete histoDeltatEta;
-      if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-      if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-      if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-    }
-    return kFALSE;
-  }
-
-  if (list)
-    delete list;
-  else{
-    if (histoVertexTimestamp) delete histoVertexTimestamp;
-    if (histoDeltatTimestamp )delete histoDeltatTimestamp;
-    if (histoDeltazEta) delete histoDeltazEta;
-    if (histoDeltatEta) delete histoDeltatEta;
-    if (histoDeltazCosTheta) delete histoDeltazCosTheta;
-    if (histoAcceptedTracksEtaPt) delete histoAcceptedTracksEtaPt;
-    if (histoMatchedTracksEtaPt) delete histoMatchedTracksEtaPt;
-  }
-
-  /* success */
-  return kTRUE;
-}
-
-//_______________________________________________________
-
-Bool_t
-AliTOFAnalysisTaskCalibPass0::CheckMatchingPerformance(const TH2F *histoDeltazCosTheta, const TH2F *histoAcceptedTracksEtaPt, const TH2F *histoMatchedTracksEtaPt) const
-{
-  /*
-   * check matching performance
-   */
-
-  /* check pointers */
-  if (!histoDeltazCosTheta || !histoAcceptedTracksEtaPt || !histoMatchedTracksEtaPt)
-    return kFALSE;
-  /* dummy for the time being */
-  return kTRUE;
-}
-
-//_______________________________________________________
-
-Bool_t
-AliTOFAnalysisTaskCalibPass0::CalibrateAndStore(TH2F *histoVertexTimestamp, TH2F *histoDeltatTimestamp, AliCDBStorage *db)
-{
-  /*
-   * calibrate and store
-   */
-
-  /* check pointers */
-  if (!histoVertexTimestamp || !histoDeltatTimestamp)
-    return kFALSE;
-
-  /*** GET RUN-NUMBER AND START-TIMESTAMP ***/
-
-  TString str;
-  TObjArray *strarr = NULL;
-  TObjString *ostr = NULL;
-  str = histoVertexTimestamp->GetTitle();
-  strarr = str.Tokenize(",");
-  if (!strarr) {
-    AliError("problems whith tokenize histogram title");
-    fStatus = kDataError;
-    return kFALSE;
-  }
-  
-  /* run number */
-  ostr = (TObjString *)strarr->At(0);
-  if (!ostr) {
-    AliError("problems while getting run number from histogram title");
-    fStatus = kDataError;
-    delete strarr;
-    return kFALSE;
-  }
-  str = ostr->GetString();
-  if (!str.BeginsWith("run:")) {
-    AliError("problems while getting run number from histogram title");
-    fStatus = kDataError;
-    delete strarr;
-    return kFALSE;
-  }
-  str.Remove(0, 5);
-  Int_t runNb = atoi(str.Data());
-  if (runNb <= 0) {
-    AliError(Form("bad run number: %d", runNb));
-    fStatus = kDataError;
-    delete strarr;
-    return kFALSE;
-  }
-  AliInfo(Form("got run number: %d", runNb));
-
-  /* start timestamp */
-  ostr = (TObjString *)strarr->At(1);
-  if (!ostr) {
-    AliError("problems while getting start timestamp from histogram title");
-    fStatus = kDataError;
-    delete strarr;
-    return kFALSE;
-  }
-  str = ostr->GetString();
-  str.Remove(0, 1); /* remove empty space at the beginning */
-  if (!str.BeginsWith("startTimestamp:")) {
-    AliError("problems while getting start timestamp from histogram title");
-    fStatus = kDataError;
-    delete strarr;
-    return kFALSE;
-  }
-  str.Remove(0, 16);
-  UInt_t startTimestamp = atoi(str.Data());
-  if (startTimestamp <= 0) {
-    AliError(Form("bad start timestamp: %d", startTimestamp));
-    fStatus = kDataError;
-    delete strarr;
-    return kFALSE;
-  }
-  TTimeStamp ts = startTimestamp;
-  AliInfo(Form("got start timestamp: %d (%s)", startTimestamp, ts.AsString()));
-
-  /* BPTX */
-  ostr = (TObjString *)strarr->At(2);
-  if (!ostr) {
-    AliError("problems while getting BPTX from histogram title");
-    fStatus = kDataError;
-    delete strarr;
-    return kFALSE;
-  }
-  str = ostr->GetString();
-  str.Remove(0, 1); /* remove empty space at the beginning */
-  if (!str.BeginsWith("BPTX:")) {
-    AliError("problems while getting BPTX from histogram title");
-    fStatus = kDataError;
-    delete strarr;
-    return kFALSE;
-  }
-  str.Remove(0, 6);
-  Bool_t useBPTX = atoi(str.Data());
-  AliInfo(Form("got BPTX: %d", useBPTX));
-
-  delete strarr;
-
-  /*** CALIBRATION STAGE ***/
-
-  /* get fit function */
-  //  TF1 *fitFunc = (TF1 *)gROOT->GetFunction("gaus");
-  TF1 ftgs("ftgs","gaus",-1,1);
-  TF1 *fitFunc = &ftgs; //new (TF1 *)gROOT->GetFunction("gaus");
-  
-  /* projection-x */
-  TH1D *histoVertexTimestamppx = histoVertexTimestamp->ProjectionX("histoVertexTimestamppx");
-  TH1D *histoDeltatTimestamppx = histoDeltatTimestamp->ProjectionX("histoDeltatTimestamppx");
-
-  /* check statistics */
-  if (histoVertexTimestamppx->Integral() < fgMinVertexIntegral ||
-      histoDeltatTimestamppx->Integral() < fgMinDeltatIntegral) {
-    fStatus = kLowStatistics;
-    return kFALSE;
-  }
-
-  /* define mix and max time bin */
-  Int_t minBin = histoVertexTimestamppx->FindFirstBinAbove(0);
-  Int_t maxBin = histoVertexTimestamppx->FindLastBinAbove(0);
-  Float_t minTime = histoVertexTimestamppx->GetBinLowEdge(minBin);
-  Float_t maxTime = histoVertexTimestamppx->GetBinLowEdge(maxBin + 1);
-  AliInfo(Form("min/max time defined: %d < t < %d s [%d, %d]", (Int_t)minTime, (Int_t)maxTime, minBin, maxBin));
-
-  /* loop over time bins */
-  Int_t nPoints = 0;
-  Float_t time[fgkMaxNumberOfPoints], timeerr[fgkMaxNumberOfPoints];
-  Float_t vertexMean[fgkMaxNumberOfPoints], vertexMeanerr[fgkMaxNumberOfPoints];
-  Float_t vertexSigma[fgkMaxNumberOfPoints], vertexSigmaerr[fgkMaxNumberOfPoints];
-  Float_t timeZeroMean[fgkMaxNumberOfPoints], timeZeroMeanerr[fgkMaxNumberOfPoints];
-  Float_t timeZeroSigma[fgkMaxNumberOfPoints], timeZeroSigmaerr[fgkMaxNumberOfPoints];
-  Float_t averageTimeZero = 0.;
-  Float_t averageTimeSigma = 0.;
-  Float_t averageVertexSpread = 0.;
-  for (Int_t ibin = minBin; ibin <= maxBin; ibin++) {
-
-    /* define time window */
-    Int_t startBin = ibin;
-    Int_t endBin = ibin;
-    while(histoVertexTimestamppx->Integral(startBin, endBin) < fgMinVertexIntegralSample ||
-         histoDeltatTimestamppx->Integral(startBin, endBin) < fgMinDeltatIntegralSample) {
-      if (endBin < maxBin) endBin++;
-      else if (startBin > minBin) startBin--;
-      else break;
-    }
-    if (histoVertexTimestamppx->Integral(startBin, endBin) < fgMinVertexIntegral ||
-        histoDeltatTimestamppx->Integral(startBin, endBin) < fgMinDeltatIntegral) continue;
-    Float_t startTime = histoVertexTimestamppx->GetBinLowEdge(startBin);
-    Float_t endTime = histoVertexTimestamppx->GetBinLowEdge(endBin + 1);
-    Float_t vertexIntegral = histoVertexTimestamppx->Integral(startBin, endBin);
-    Float_t deltatIntegral = histoDeltatTimestamppx->Integral(startBin, endBin);
-    AliInfo(Form("time window defined: %d < t < %d s [%d, %d]: %d vertices, %d tracks", (Int_t)startTime, (Int_t)endTime, startBin, endBin, (Int_t)vertexIntegral, (Int_t)deltatIntegral));
-
-    /* projection-y */
-    TH1D *histoVertexTimestamppy = histoVertexTimestamp->ProjectionY("histoVertexTimestamppy", startBin, endBin);
-    TH1D *histoDeltatTimestamppy = histoDeltatTimestamp->ProjectionY("histoDeltatTimestamppy", startBin, endBin);
-
-    /* average time */
-    histoVertexTimestamppx->GetXaxis()->SetRange(startBin, endBin);
-    time[nPoints] = histoVertexTimestamppx->GetMean();
-    timeerr[nPoints] = histoVertexTimestamppx->GetMeanError();
-
-    /* fit vertex */
-    if (FitPeak(fitFunc, histoVertexTimestamppy, 10., 3., 3.) != 0) {
-      AliError("troubles fitting vertex, skip");
-      delete histoVertexTimestamppy;
-      delete histoDeltatTimestamppy;
-      continue;
-    }
-    vertexMean[nPoints] = fitFunc->GetParameter(1);
-    vertexMeanerr[nPoints] = fitFunc->GetParError(1);
-    vertexSigma[nPoints] = fitFunc->GetParameter(2);
-    vertexSigmaerr[nPoints] = fitFunc->GetParError(2);
-    averageVertexSpread += fitFunc->GetParameter(2);
-
-    /* fit time-zero */
-    if (FitPeak(fitFunc, histoDeltatTimestamppy, 500., 2., 1.) != 0) {
-      AliError("troubles fitting time-zero TRACKS, skip");
-      delete histoVertexTimestamppy;
-      delete histoDeltatTimestamppy;
-      continue;
-    }
-    timeZeroMean[nPoints] = fitFunc->GetParameter(1);
-    timeZeroMeanerr[nPoints] = fitFunc->GetParError(1);
-    timeZeroSigma[nPoints] = fitFunc->GetParameter(2);
-    timeZeroSigmaerr[nPoints] = fitFunc->GetParError(2);
-    averageTimeZero += fitFunc->GetParameter(1);
-    averageTimeSigma += fitFunc->GetParameter(2);
-
-    /* delete projection-y */
-    delete histoVertexTimestamppy;
-    delete histoDeltatTimestamppy;
-
-    /* increment n points */
-    nPoints++;
-
-    /* set current bin */
-    ibin = endBin;
-
-  } /* end of loop over time bins */
-
-  /* delete projection-x */
-  delete histoVertexTimestamppx;
-  delete histoDeltatTimestamppx;
-
-  /* check points */
-  if (nPoints <= 0) {
-    AliError("no measurement available, quit");
-    fStatus = kNoMeasurement;
-    return kFALSE;
-  }
-  AliInfo(Form("average time-zero  = %f", averageTimeZero / nPoints));
-  AliInfo(Form("average time-sigma = %f", averageTimeSigma / nPoints));
-  AliInfo(Form("average v-spread   = %f", averageVertexSpread / nPoints));
-
-  /*** CREATE RUN PARAMS OBJECT ***/
-
-#if 0
-  /* get start time from GRP */
-  TGrid::Connect("alien://", 0, 0, "t");
-  AliCDBManager *cdb = AliCDBManager::Instance();
-  cdb->SetDefaultStorage("raw://");
-  cdb->SetRun(runNb);
-  AliGRPManager grp;
-  if (!grp.ReadGRPEntry()) {
-    AliError("error while reading GRP entry");
-    return kFALSE;
-  }
-  UInt_t startTimestamp = grp.GetGRPData()->GetTimeStart();
-  TTimeStamp ts;
-  ts = startTimestamp;
-  AliInfo(Form("got start time from GRP: %s", ts.AsString()));
-#endif
-    
-  /* create arrays */
-  UInt_t timestamp[fgkMaxNumberOfPoints];
-  Float_t t0[fgkMaxNumberOfPoints];
-  Float_t tofReso[fgkMaxNumberOfPoints];
-  Float_t t0Spread[fgkMaxNumberOfPoints];
-  for (Int_t ipoint = 0; ipoint < nPoints; ipoint++) {
-    timestamp[ipoint] = (UInt_t)time[ipoint] + startTimestamp;
-    t0[ipoint] = timeZeroMean[ipoint];
-    tofReso[ipoint] = timeZeroSigma[ipoint];
-    t0Spread[ipoint] = vertexSigma[ipoint] / 2.99792457999999984e-02;
-  }
-  UInt_t run[1] = {static_cast<UInt_t>(runNb)};
-  UInt_t runFirstPoint[1] = {0};
-  UInt_t runLastPoint[1] = {static_cast<UInt_t>(nPoints - 1)};
-  
-  /* create run params object */
-  AliTOFRunParams obj(nPoints, 1);
-  AliInfo(Form("create run params object for run %d with %d points", runNb, nPoints));
-  obj.SetTimestamp(timestamp);
-  obj.SetT0(t0);
-  obj.SetTOFResolution(tofReso);
-  obj.SetT0Spread(t0Spread);
-  obj.SetRunNb(run);
-  obj.SetRunFirstPoint(runFirstPoint);
-  obj.SetRunLastPoint(runLastPoint);
-  obj.SetUseLHCClockPhase(useBPTX);
-  
-  /*** CREATE OCDB ENTRY ***/
-
-  if (!db) {
-    AliError("cannot store object because of NULL storage");
-    fStatus = kStoreError;
-    return kFALSE;
-  }
-
-  /* install run params object in OCDB */
-  AliCDBId id("TOF/Calib/RunParams", runNb, runNb);
-  AliCDBMetaData md;
-  md.SetResponsible("Roberto Preghenella");
-  md.SetComment("offline TOF run parameters");
-  md.SetAliRootVersion(gSystem->Getenv("ARVERSION"));
-  md.SetBeamPeriod(0);
-  if (!db->Put(&obj, id, &md)) {
-    fStatus = kStoreError;
-    AliError(Form("error while putting object in storage %s", db->GetURI().Data()));
-    return kFALSE;
-  }
-
-  /* success */
-  return kTRUE;
-}
-
-//_____________________________________________________________
-
-Int_t
-AliTOFAnalysisTaskCalibPass0::FitPeak(TF1 *fitFunc, TH1D *h, Float_t startSigma, Float_t nSigmaMin, Float_t nSigmaMax)
-{
-  /*
-   * fit peak
-   */
-  for (int i=3;i--;) fitFunc->SetParError(i,0);
-  fitFunc->SetRange(h->GetXaxis()->GetXmin(),h->GetXaxis()->GetXmax());
-  Double_t fitCent = h->GetBinCenter(h->GetMaximumBin());
-  Double_t fitMin = fitCent - nSigmaMin * startSigma;
-  Double_t fitMax = fitCent + nSigmaMax * startSigma;
-  if (fitMin < h->GetXaxis()->GetXmin()) fitMin = h->GetXaxis()->GetXmin();
-  if (fitMax > h->GetXaxis()->GetXmax()) fitMax = h->GetXaxis()->GetXmax();
-  fitFunc->SetParameter(1, fitCent);
-  fitFunc->SetParameter(2, startSigma);
-  Int_t fitres = h->Fit(fitFunc, "WWq0", "", fitMin, fitMax);
-  if (fitres != 0) return fitres;
-  /* refit with better range */
-  for (Int_t i = 0; i < 3; i++) {
-    fitCent = fitFunc->GetParameter(1);
-    fitMin = fitCent - nSigmaMin * fitFunc->GetParameter(2);
-    fitMax = fitCent + nSigmaMax * fitFunc->GetParameter(2);
-    if (fitMin < h->GetXaxis()->GetXmin()) fitMin = h->GetXaxis()->GetXmin();
-    if (fitMax > h->GetXaxis()->GetXmax()) fitMax = h->GetXaxis()->GetXmax();
-    fitres = h->Fit(fitFunc, "q0", "", fitMin, fitMax);
-    if (fitres != 0) return fitres;
-  }
-  return fitres;
-}
diff --git a/TOF/TOFcalib/AliTOFAnalysisTaskCalibPass0.h b/TOF/TOFcalib/AliTOFAnalysisTaskCalibPass0.h
deleted file mode 100644 (file)
index 61261ee..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-#ifndef ALITOFANALYSISTASKCALIBPASS0_H
-#define ALITOFANALYSISTASKCALIBPASS0_H
-
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-///////////////////////////////////////////////////////////////
-//                                                           //
-//   This class provides TOF pass0/passX calibration tools   //
-//                                                           //
-///////////////////////////////////////////////////////////////
-
-#include "AliAnalysisTaskSE.h"
-
-class AliESDtrack;
-class AliESDEvent;
-class AliPhysicsSelection;
-class AliESDtrackCuts;
-class AliESDVertex;
-class AliGRPManager;
-class AliGRPObject;
-class AliTOFcalib;
-class TList;
-class TH2F;
-class TF1;
-class TH1D;
-class AliCDBStorage;
-
-class AliTOFAnalysisTaskCalibPass0 :
-public AliAnalysisTaskSE
-{
-
- public:
-
-  AliTOFAnalysisTaskCalibPass0(); // default constructor
-  virtual ~AliTOFAnalysisTaskCalibPass0(); // default destructor
-
-  virtual void UserCreateOutputObjects(); // user create output objects
-  virtual void UserExec(Option_t *); // user exec
-
-  /* getters */
-  AliPhysicsSelection *GetEventCuts() const {return fEventCuts;}; // getter
-  AliESDtrackCuts *GetTrackCuts() const {return fTrackCuts;}; // getter
-  AliTOFcalib *GetTOFcalib() const {return fTOFcalib;}; // getter
-  
-  /* setters */
-  void SetEventSelectionFlag(Bool_t value = kTRUE) {fEventSelectionFlag = value;}; // setter
-  void SetVertexSelectionFlag(Bool_t value = kTRUE) {fVertexSelectionFlag = value;}; // setter
-  void SetVertexCut(Double_t value) {fVertexCut = value;}; // setter
-
-  /* post-processing methods */
-  Bool_t ProcessOutput(const Char_t *filename, AliCDBStorage* db); // process output
-  Bool_t DoProcessOutput(const Char_t *filename, AliCDBStorage* db); // process output
-  Int_t GetStatus(); // get status
-  void PrintStatus(); // print status
-
-  /* static setters */
-  static void SetMinVertexIntegral(Double_t value) {fgMinVertexIntegral = value;}; // setter
-  static void SetMinDeltatIntegal(Double_t value) {fgMinDeltatIntegral = value;}; // setter
-  static void SetMinVertexIntegralSample (Double_t value) {fgMinVertexIntegralSample = value;}; // setter
-  static void SetMinDeltatIntegralSample (Double_t value) {fgMinDeltatIntegralSample = value;}; // setter
-  
- protected:
-
-  AliTOFAnalysisTaskCalibPass0(const AliTOFAnalysisTaskCalibPass0 &); // copy constructor
-  AliTOFAnalysisTaskCalibPass0 &operator=(const AliTOFAnalysisTaskCalibPass0 &); // operator=
-
-  /* status codes */
-  enum EStatusCode_t {
-    kOk,
-    kInputError, /* open file error, missing histos */
-    kDataError, /* problems with histo information */
-    kNotActive, /* not active in data taking and/or reconstruction */
-    kLowStatistics, /* too low statistics */
-    kNoMeasurement, /* no measurement performed */
-    kStoreError, /* problems storing OCDB */
-    kNStatusCodes
-  };
-  Int_t fStatus; /* status code */
-  static const Char_t *fgkStatusCodeName[kNStatusCodes];
-
-  /* methods */
-  Bool_t InitRun(); // init run
-  Bool_t InitEvent(); // init event
-  Bool_t HasTOFMeasurement(const AliESDtrack *track) const ; // has TOF measurement
-
-  /* post-processing methods */
-  Bool_t CheckMatchingPerformance(const TH2F *histoDeltazEta, const TH2F *histoAcceptedTracksEtaPt, const TH2F *histoMatchedTracksEtaPt) const; // check matching efficiency
-  Bool_t CalibrateAndStore(TH2F *histoVertexTimestamp, TH2F *histoDeltatTimestamp, AliCDBStorage *db); // calibrate and store
-  Int_t FitPeak(TF1 *fitFunc, TH1D *h, Float_t startSigma, Float_t nSigmaMin, Float_t nSigmaMax); // fit peak
-
-  /* flags and cuts */
-  Bool_t fInitFlag; // init flag
-  Bool_t fEventSelectionFlag; // event selection flag
-  Bool_t fVertexSelectionFlag; // vertex selection flag
-  Double_t fVertexCut; // vertex cut
-
-  /* ESD analysis */
-  Int_t fRunNumber; // run number
-  AliESDEvent *fESDEvent; // ESD event
-  AliPhysicsSelection *fEventCuts; // event cuts
-  AliESDtrackCuts *fTrackCuts; // track cuts
-  UInt_t fStartTime; // start time
-  UInt_t fEndTime; // end time
-  UInt_t fEventTime; // event time
-  UInt_t fElapsedTime; // event time since start
-  const AliESDVertex *fkVertex; // vertex
-
-  /* GRP related stuff */
-  AliGRPManager *fGRPManager; // GRP manager
-  const AliGRPObject *fkGRPObject; // GRP object
-  
-  /* TOF related stuff */
-  AliTOFcalib *fTOFcalib; // TOF calib
-
-  /* lists and histos */
-  TList *fHistoList; // list of histograms
-  TH2F *fHistoVertexTimestamp; // vertex-timestamp histo
-  TH2F *fHistoDeltatTimestamp; // deltat-timestamp histo
-  TH2F *fHistoDeltazEta; // deltaz-eta histo
-  TH2F *fHistoDeltatEta; // deltaTime-eta histo
-  TH2F *fHistoDeltazCosTheta; // deltaz-costheta histo
-  TH2F *fHistoAcceptedTracksEtaPt; // accepted tracks eta-pt histo
-  TH2F *fHistoMatchedTracksEtaPt; // matched tracks eta-pt histo
-
-  /* post-processing variables */
-  static const Int_t fgkMaxNumberOfPoints; // max number of points
-  static Double_t fgMinVertexIntegral; // min vertex integral
-  static Double_t fgMinDeltatIntegral; // min vertex integral
-  static Double_t fgMinVertexIntegralSample; // min vertex integral sample
-  static Double_t fgMinDeltatIntegralSample; // min vertex integral sample
-
-
-  ClassDef(AliTOFAnalysisTaskCalibPass0, 2);
-};
-
-#endif /* ALIANALYSISTASKEVENTTIME_H */
diff --git a/TOF/TOFcalib/AliTOFAnalysisTaskCalibTree.cxx b/TOF/TOFcalib/AliTOFAnalysisTaskCalibTree.cxx
deleted file mode 100644 (file)
index 5686970..0000000
+++ /dev/null
@@ -1,368 +0,0 @@
-#include "AliTOFAnalysisTaskCalibTree.h"
-#include "AliAnalysisManager.h"
-#include "AliAODHandler.h"
-#include "TTree.h"
-#include "AliCDBManager.h"
-#include "AliGRPManager.h"
-#include "AliGRPObject.h"
-#include "AliPhysicsSelection.h"
-#include "AliESDtrack.h"
-#include "AliESDEvent.h"
-#include "AliESDpid.h"
-#include "AliESDtrackCuts.h"
-#include "AliTOFT0v1.h"
-#include "AliTOFT0maker.h"
-#include "AliTOFcalib.h"
-
-ClassImp(AliTOFAnalysisTaskCalibTree)
-  
-//_______________________________________________________
-  
-AliTOFAnalysisTaskCalibTree::AliTOFAnalysisTaskCalibTree(const Char_t* name) :
-AliAnalysisTaskSE(name),
-  fInitFlag(kFALSE),                   
-  fEventSelectionFlag(kFALSE),        
-  fVertexSelectionFlag(kFALSE),       
-  fVertexCut(1000.),              
-  fDiscardPileupEventFlag(kFALSE),   
-  fCalibrateTOFsignal(kFALSE),       
-  fComputeT0TOF(kFALSE),             
-  fUseT0TOF(kFALSE),                 
-  fUseLHCClockPhase(kFALSE),         
-  fPrimaryDCASelectionFlag(kFALSE),  
-  fRunNumber(0),                   
-  fESDEvent(0),             
-  fEventCuts(new AliPhysicsSelection()),    
-  fTrackCuts(new AliESDtrackCuts()),  
-  fESDpid(new AliESDpid()),
-  fStartTime(0),
-  fEndTime(0),
-  fElapsedTime(0),
-  fIsCollisionCandidate(kFALSE),
-  fHasVertex(kFALSE),
-  fVertex(NULL),
-  fGRPManager(new AliGRPManager()),         
-  fGRPObject(NULL),     
-  fSpecificStorageParOffline(), 
-  fSpecificStorageRunParams(),  
-  fTimeResolution(80.),
-  fTOFcalib(new AliTOFcalib()),             
-  fTOFT0maker(new AliTOFT0maker(fESDpid, fTOFcalib)),         
-  fTOFT0v1(new AliTOFT0v1(fESDpid)),
-  ftimestamp(0),
-  fVertexZ(99999),
-  ftimezero(9999999),
-  fnhits(-1),
-  fOutputTree(0x0)             
-
-{
-  /* 
-   * default constructor 
-   */
-
-  for (Int_t i = 0; i < MAXHITS; i++){
-      fmomentum[i] = 999999;
-      flength[i] = 999999;
-      findex[i] = -1;
-      ftime[i] = 999999;
-      ftot[i] = 999999;
-      ftexp[i] = 999999;
-  }
-
-  DefineOutput(1, TTree::Class());  
-
-}
-
-//_______________________________________________________
-
-AliTOFAnalysisTaskCalibTree::~AliTOFAnalysisTaskCalibTree()
-{
-  /*
-   * default destructor
-   */
-  delete fEventCuts;
-  delete fTrackCuts;
-  delete fESDpid;
-  delete fTOFcalib;
-  delete fTOFT0maker;
-  delete fTOFT0v1;
-  if (fOutputTree) {
-    delete fOutputTree;
-    fOutputTree = 0x0;
-  }
-
-}
-
-//_______________________________________________________
-
-void
-AliTOFAnalysisTaskCalibTree::UserCreateOutputObjects()
-{
-  /*
-   * user create output objects
-   */
-
-  fOutputTree = new TTree("aodTree", "Tree with TOF calib output"); 
-
-  /* setup output tree */
-  fOutputTree->Branch("run", &fRunNumber, "run/I");
-  fOutputTree->Branch("timestamp", &ftimestamp, "timestamp/i");
-  fOutputTree->Branch("timezero", &ftimezero, "timezero/F");
-  fOutputTree->Branch("vertex", &fVertexZ, "vertex/F");
-  fOutputTree->Branch("nhits", &fnhits, "nhits/I");
-  fOutputTree->Branch("momentum", &fmomentum, "momentum[nhits]/F");
-  fOutputTree->Branch("length", &flength, "length[nhits]/F");
-  fOutputTree->Branch("index", &findex, "index[nhits]/I");
-  fOutputTree->Branch("time", &ftime, "time[nhits]/F");
-  fOutputTree->Branch("tot", &ftot, "tot[nhits]/F");
-  fOutputTree->Branch("texp", &ftexp, "texp[nhits]/F");
-
-  PostData(1, fOutputTree);
-
-}
-
-//_______________________________________________________
-
-void AliTOFAnalysisTaskCalibTree::UserExec(Option_t *) {
-  //
-  // user exec
-  //
-
-  // unset fill AOD
-  ((AliAODHandler*)(AliAnalysisManager::GetAnalysisManager()->GetOutputEventHandler()))->SetFillAOD(kFALSE);
-
-  //init run
-  if (!InitRun()) return;
-
-  //init event 
-  if (!InitEvent()) return;
-
-  /*** ACCEPTED EVENT ***/
-  
-  // set vertex
-  fVertexZ = fVertex->GetZ();
-
-  // compute T0-TOF using all availeble tracks 
-  fTOFT0v1->DefineT0("all", 0.0, 0.5);
-  Float_t timeZeroTOF = -1000. * fTOFT0v1->GetResult(0);
-  Float_t timeZeroTOF_sigma = 1000. * fTOFT0v1->GetResult(1);
-  //Int_t timeZeroTOF_tracks = fTOFT0v1->GetResult(3);  // not used for the time being
-
-  // check T0-TOF sigma 
-  if (timeZeroTOF_sigma >= 250.) ftimezero = 999999.; 
-  else ftimezero = timeZeroTOF;
-
-  // reset
-  fnhits = 0;
-  
-  // loop over ESD tracks
-  Int_t nTracks = fESDEvent->GetNumberOfTracks();
-  AliESDtrack *track;
-  Int_t index;
-  Double_t momentum, length, time, tot, timei[AliPID::kSPECIES];
-  for (Int_t itrk = 0; itrk < nTracks; itrk++) {
-    // get track
-    track = fESDEvent->GetTrack(itrk);
-    if (!track) continue;
-    // check accept track
-    if (!fTrackCuts->AcceptTrack(track)) continue;
-    // check primary DCA
-    if (fPrimaryDCASelectionFlag && !HasPrimaryDCA(track)) continue;
-    // check TOF measurement
-    if (!HasTOFMeasurement(track)) continue;
-
-    /*** ACCEPTED TRACK WITH TOF MEASUREMENT ***/
-
-    // get track info 
-    momentum = track->P();
-    length = track->GetIntegratedLength();
-    index = track->GetTOFCalChannel();
-    time = track->GetTOFsignal();
-    tot = track->GetTOFsignalToT();
-    track->GetIntegratedTimes(timei);
-
-    // add hit to array (if there is room)
-    if (fnhits > MAXHITS) continue;
-    fmomentum[fnhits] = momentum;
-    flength[fnhits] = length;
-    findex[fnhits] = index;
-    ftime[fnhits] = time;
-    ftot[fnhits] = tot;
-    ftexp[fnhits] = timei[AliPID::kPion];
-    fnhits++;
-
-  } /* end of loop over ESD tracks */
-
-  // check number of hits and set fill output tree
-  if (fnhits > 0)
-    fOutputTree->Fill();
-
-  PostData(1, fOutputTree);
-
-}
-
-//_______________________________________________________
-
-Bool_t AliTOFAnalysisTaskCalibTree::InitRun() {
-
-  //¯
-  // init run
-  //
-  
-  // get ESD event 
-  fESDEvent = dynamic_cast<AliESDEvent *>(InputEvent());
-  if (!fESDEvent) {
-    AliError("cannot get ESD event");
-    return kFALSE;
-  }
-
-  // get run number 
-  Int_t runNb = fESDEvent->GetRunNumber();
-
-  // check run already initialized 
-  if (fInitFlag && fRunNumber == runNb) return kTRUE;
-  fInitFlag = kFALSE;
-
-  // init cdb 
-  AliCDBManager *cdb = AliCDBManager::Instance();
-  cdb->SetDefaultStorage("raw://");
-  if (!fSpecificStorageParOffline.IsNull())
-    cdb->SetSpecificStorage("TOF/Calib/ParOffline", fSpecificStorageParOffline.Data());
-  if (!fSpecificStorageRunParams.IsNull())
-    cdb->SetSpecificStorage("TOF/Calib/RunParams", fSpecificStorageRunParams.Data());
-  cdb->SetRun(runNb);
-  
-  // init TOF calib
-  if (!fTOFcalib->Init()) {
-    AliError("cannot init TOF calib");
-    return kFALSE;
-  }
-
-  // get GRP data
-  if (!fGRPManager->ReadGRPEntry()) {
-    AliError("error while reading \"GRPEntry\" from OCDB");
-    return kFALSE;
-  }
-  fGRPObject = fGRPManager->GetGRPData();
-  if (!fGRPObject) {
-    AliError("cannot get \"GRPData\" from GRP manager");
-    return kFALSE;
-  }
-  fStartTime = fGRPObject->GetTimeStart();
-  fEndTime = fGRPObject->GetTimeEnd();
-  AliInfo(Form("got \"GRPData\": startTime=%d, endTime=%d", fStartTime, fEndTime));
-  
-  AliInfo(Form("initialized for run %d", runNb));
-  fInitFlag = kTRUE;
-  fRunNumber = runNb;
-  return kTRUE;
-}
-
-//_______________________________________________________
-
-Bool_t AliTOFAnalysisTaskCalibTree::InitEvent() {
-
-  //
-  // init event
-  //
-
-  // get ESD event 
-  fESDEvent = dynamic_cast<AliESDEvent *>(InputEvent());
-  if (!fESDEvent) return kFALSE;
-
-  // set event time and elapsed time
-  ftimestamp = fESDEvent->GetTimeStamp();
-  fElapsedTime = fESDEvent->GetTimeStamp() - fStartTime;
-
-  // event selection
-  if (fEventSelectionFlag){
-    fIsCollisionCandidate = fEventCuts->IsCollisionCandidate(fESDEvent);
-    if (!fIsCollisionCandidate) return kFALSE;
-  }
-
-  // vertex selection
-  fVertex = fESDEvent->GetPrimaryVertexTracks();
-  if (fVertex->GetNContributors() < 1) {
-    fVertex = fESDEvent->GetPrimaryVertexSPD();
-    if (fVertex->GetNContributors() < 1) fHasVertex = kFALSE;
-    else fHasVertex = kTRUE;
-  }
-  else fHasVertex = kTRUE;
-  if (fVertexSelectionFlag && (!fHasVertex || TMath::Abs(fVertex->GetZ()) > fVertexCut)) return kFALSE;
-
-  // discard pile-up event is requested
-  if (fDiscardPileupEventFlag) {
-    if (fESDEvent->IsPileupFromSPD()) {
-      printf("PILE-UP event, will be discarded\n");
-      return kFALSE;
-    }
-  }
-
-  // init TOF response 
-  fESDpid->GetTOFResponse().SetTimeResolution(fTimeResolution);
-
-  // init TOF-T0 maker 
-  fTOFT0maker->SetTimeResolution(fTimeResolution);
-  
-  // calibrate ESD if requested
-  if (fCalibrateTOFsignal)
-    fTOFcalib->CalibrateESD(fESDEvent);
-
-  // compute T0-TOF and apply it if requested
-  if (fComputeT0TOF) 
-    fTOFT0maker->ComputeT0TOF(fESDEvent);
-  if (fUseT0TOF) {
-    fTOFT0maker->ApplyT0TOF(fESDEvent);
-    //fESDpid->MakePID(fESDEvent, kFALSE, 0.);
-  }
-
-  // init T0-TOF
-  fTOFT0v1->Init(fESDEvent);
-
-  return kTRUE;
-
-}
-
-//_______________________________________________________
-
-Bool_t AliTOFAnalysisTaskCalibTree::HasTOFMeasurement(AliESDtrack *track) {
-
-  //
-  // has TOF measurement
-  //
-
-  //check TOF status flags 
-  if (!(track->GetStatus() & AliESDtrack::kTOFout) ||
-      !(track->GetStatus() & AliESDtrack::kTIME)) return kFALSE;
-
-  // check integrated length
-  if (track->GetIntegratedLength() < 350.) return kFALSE;
-
-  // TOF measurement ok
-  return kTRUE;
-}
-
-//_______________________________________________________
-
-Bool_t AliTOFAnalysisTaskCalibTree::HasPrimaryDCA(AliESDtrack *track) {
-
-  //
-  // has primary DCA
-  //
-
-  // cut on transverse impact parameter
-  Float_t d0z0[2],covd0z0[3];
-  track->GetImpactParameters(d0z0, covd0z0);
-  Float_t sigma= 0.0050 + 0.0060 / TMath::Power(track->Pt(), 0.9);
-  Float_t d0max = 7. * sigma;
-  //
-  Float_t sigmaZ = 0.0146 + 0.0070 / TMath::Power(track->Pt(), 1.114758);
-  if (track->Pt() > 1.) sigmaZ = 0.0216;
-  Float_t d0maxZ = 5. * sigmaZ;
-  //
-  if(TMath::Abs(d0z0[0]) > d0max || TMath::Abs(d0z0[1]) > d0maxZ) 
-    return kFALSE;
-  
-  /* primary DCA ok */
-  return kTRUE;
-}
diff --git a/TOF/TOFcalib/AliTOFAnalysisTaskCalibTree.h b/TOF/TOFcalib/AliTOFAnalysisTaskCalibTree.h
deleted file mode 100644 (file)
index c5eeb4a..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-#ifndef ALITOFANALYSISTASKCALIBTREE_H
-#define ALITOFANALYSISTASKCALIBTREE_H
-
-#include "AliAnalysisTaskSE.h"
-#include "TString.h"
-#include "TMath.h"
-
-class AliESDEvent;
-class AliESDtrackCuts;
-class AliESDtrackCuts;
-class AliESDtrack;
-class AliESDVertex;
-class AliESDpid;
-
-class AliPhysicsSelection;
-
-class AliTOFcalibHisto;
-class AliTOFcalib;
-class AliTOFT0maker;
-class AliTOFT0v1;
-
-class AliGRPManager;
-class AliGRPObject;
-
-class TH2F;
-
-#define MAXHITS 100000
-
-class AliTOFAnalysisTaskCalibTree :
-public AliAnalysisTaskSE
-{
-
- public:
-
-  AliTOFAnalysisTaskCalibTree(const Char_t* name = "TOFcalibTree"); // default constructor
-  virtual ~AliTOFAnalysisTaskCalibTree(); // default destructor
-
-  virtual void UserCreateOutputObjects(); // user create output objects
-  virtual void UserExec(Option_t *); // user exec
-
-  // getters
-  AliPhysicsSelection *GetEventCuts() const {return fEventCuts;}; // getter
-  AliESDtrackCuts *GetTrackCuts() const {return fTrackCuts;}; // getter
-  AliTOFcalib *GetTOFcalib() const {return fTOFcalib;}; // getter
-  AliTOFT0maker *GetTOFT0maker() const {return fTOFT0maker;}; // getter
-  AliTOFT0v1 *GetTOFT0v1() const {return fTOFT0v1;}; // getter
-  Float_t GetTimeResolution() const {return fTimeResolution;}; // time resolution
-  AliESDpid *GetESDpid() const {return fESDpid;}; // get ESD PID
-
-  // setters
-  void SetEventSelectionFlag(Bool_t value = kTRUE) {fEventSelectionFlag = value;}; // setter
-  void SetVertexSelectionFlag(Bool_t value = kTRUE) {fVertexSelectionFlag = value;}; // setter
-  void SetVertexCut(Double_t value) {fVertexCut = value;}; // setter
-  void SetDiscardPileupEventFlag(Bool_t value = kTRUE) {fDiscardPileupEventFlag = value;}; // setter
-  void SetPrimaryDCASelectionFlag(Bool_t value = kTRUE) {fPrimaryDCASelectionFlag = value;}; // setter
-  void SetTimeResolution(Float_t value) {fTimeResolution = value;}; // set time resolution
-  void SetCalibrateTOFsignal(Bool_t value = kTRUE) {fCalibrateTOFsignal = value;}; // setter
-  void SetComputeT0TOF(Bool_t value = kTRUE) {fComputeT0TOF = value;}; // setter
-  void SetUseT0TOF(Bool_t value = kTRUE) {fUseT0TOF = value;}; // setter
-  void SetUseLHCClockPhase(Bool_t value = kTRUE) {fUseLHCClockPhase = value;}; // setter
-  void SetSpecificStorageParOffline(Char_t *value) {fSpecificStorageParOffline = value;}; // set specific storage ParOffline
-  void SetSpecificStorageRunParams(Char_t *value) {fSpecificStorageRunParams = value;}; // set specific storage RunParams
-
- protected:
-
-  AliTOFAnalysisTaskCalibTree(const AliTOFAnalysisTaskCalibTree &); // copy constructor
-  AliTOFAnalysisTaskCalibTree &operator=(const AliTOFAnalysisTaskCalibTree &); // operator=
-
-  // methods:
-
-  Bool_t InitRun(); // init run
-  Bool_t InitEvent(); // init event
-  Bool_t HasTOFMeasurement(AliESDtrack *track); // has TOF
-  Bool_t HasPrimaryDCA(AliESDtrack *track); // has primary DCA
-
-  // members:
-
-  // flags and cuts
-  Bool_t fInitFlag;                   // init flag
-  Bool_t fEventSelectionFlag;         // event selection flag
-  Bool_t fVertexSelectionFlag;        // vertex selection flag
-  Double_t fVertexCut;                // vertex cut
-  Bool_t fDiscardPileupEventFlag;     // discard pile-up event flag
-  Bool_t fCalibrateTOFsignal;         // calibrate TOF signal
-  Bool_t fComputeT0TOF;               // compute T0-TOF
-  Bool_t fUseT0TOF;                   // use T0-TOF
-  Bool_t fUseLHCClockPhase;           // use LHC-clock phase
-  Bool_t fPrimaryDCASelectionFlag;    // selection of primaries with DCA cut
-
-  // ESD related stuff
-  Int_t fRunNumber;                   // run number
-  AliESDEvent *fESDEvent;             // ESD event
-  AliPhysicsSelection *fEventCuts;    // event cuts
-  AliESDtrackCuts *fTrackCuts;        // track cuts
-  AliESDpid *fESDpid;                 // ESD PID
-  UInt_t fStartTime;                  // start time
-  UInt_t fEndTime;                    // end time
-  UInt_t fElapsedTime;                // event time since start
-  Bool_t fIsCollisionCandidate;       // is collision candidate
-  Bool_t fHasVertex;                  // has vertex
-  const AliESDVertex *fVertex;        // vertex
-
-  // GRP related stuff
-  AliGRPManager *fGRPManager;         // GRP manager
-  const AliGRPObject *fGRPObject;     // GRP object
-
-  // TOF related stuff
-  TString fSpecificStorageParOffline; // specific storage ParOffline
-  TString fSpecificStorageRunParams;  // specific storage RunParams
-  Float_t fTimeResolution;            // time resolution
-  AliTOFcalib *fTOFcalib;             // TOF calib
-  AliTOFT0maker *fTOFT0maker;         // TOF-T0 maker
-  AliTOFT0v1 *fTOFT0v1;               // TOF-T0 v1
-
-  // task related stuff
-  UInt_t ftimestamp;
-  Float_t fVertexZ;
-  Float_t ftimezero;
-  Int_t fnhits;
-  Float_t fmomentum[MAXHITS];
-  Float_t flength[MAXHITS];
-  Int_t findex[MAXHITS];
-  Float_t ftime[MAXHITS];
-  Float_t ftot[MAXHITS];
-  Float_t ftexp[MAXHITS];
-
-  TTree* fOutputTree;                 // output tree
-
-  ClassDef(AliTOFAnalysisTaskCalibTree, 2);
-};
-
-#endif /* ALIANALYSISTASKTOFCOMPACTCALIB_H */
diff --git a/TOF/TOFcalib/CMakeLists.txt b/TOF/TOFcalib/CMakeLists.txt
deleted file mode 100644 (file)
index d3f680b..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# **************************************************************************
-# * Copyright(c) 1998-2014, 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.                  *
-# **************************************************************************
-
-# Module
-set(MODULE TOFcalib)
-
-# Module include folder
-include_directories(${AliRoot_SOURCE_DIR}/TOF/${MODULE})
-
-# Additional include folders in alphabetical order except ROOT
-include_directories(${ROOT_INCLUDE_DIRS}
-                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
-                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
-                    ${AliRoot_SOURCE_DIR}/OADB
-                    ${AliRoot_SOURCE_DIR}/STEER/AOD
-                    ${AliRoot_SOURCE_DIR}/STEER/CDB
-                    ${AliRoot_SOURCE_DIR}/STEER/ESD
-                    ${AliRoot_SOURCE_DIR}/STEER/STEER
-                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
-                    ${AliRoot_SOURCE_DIR}/TOF/TOFbase
-                    ${AliRoot_SOURCE_DIR}/TOF/TOFrec
-                   )
-
-# Sources in alphabetical order
-set(SRCS
-    AliTOFAnalysisTaskCalibPass0.cxx
-    AliTOFAnalysisTaskCalibTree.cxx
-   )
-
-# Headers from sources
-string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
-
-# Generate the dictionary
-# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
-get_directory_property(incdirs INCLUDE_DIRECTORIES)
-generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
-
-# Generate the ROOT map
-# Dependecies
-set(LIBDEPS STEERBase STEER CDB ESD AOD ANALYSIS ANALYSISalice TOFbase TOFrec)
-generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
-
-
-# Add a library to the project using the specified source files
-add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
-
-# Additional compilation flags
-set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
-
-# Linking the library
-target_link_libraries(${MODULE} ${LIBDEPS})
-
-# System dependent: Modify the way the library is build
-if(${CMAKE_SYSTEM} MATCHES Darwin)
-    set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
-endif(${CMAKE_SYSTEM} MATCHES Darwin)
-
-# Installation
-install(TARGETS ${MODULE}
-        ARCHIVE DESTINATION lib
-        LIBRARY DESTINATION lib)
-
-install(FILES ${HDRS} DESTINATION include)
diff --git a/TOF/TOFcalib/TOFcalibLinkDef.h b/TOF/TOFcalib/TOFcalibLinkDef.h
deleted file mode 100644 (file)
index 116ae44..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifdef __CINT__
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id: TOFbaseLinkDef.h 44711 2010-10-28 12:45:01Z rpreghen $ */
-
-#pragma link off all globals;
-#pragma link off all classes;
-#pragma link off all functions;
-#pragma link C++ class AliTOFAnalysisTaskCalibPass0+;
-#pragma link C++ class AliTOFAnalysisTaskCalibTree+;
-
-#endif