ROOT logo
// $Id$
// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007

/**************************************************************************
 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
 * full copyright notice.                                                 *
 **************************************************************************/

// Function to spawn a gui for reading rootified raw-data from TPC sector test.
//
// To use:
// a) select AliEveTPCLoader entry in the list-tree view;
//    you'll get a dialog to steer the data-loading process in an adjacent window
// b) to select a ROOT file containing the raw-data double-click on 'File:'
//    text entry to spawn a file-dialog or type in the name
// c) click open to actually open the file and load an event

#ifdef __CINT__

class AliEveTPCData;
class AliEveTPCSector2D;
class AliEveTPCSector3D;

#else

#include <TEveManager.h>
#include <EveDet/AliEveTPCData.h>
#include <EveDet/AliEveTPCSector2D.h>
#include <EveDet/AliEveTPCSector3D.h>
#include <EveDet/AliEveTPCLoader.h>

#include <TSystem.h>
#include <TStyle.h>

#endif


AliEveTPCLoader* tpc_loader = 0;

void tpc_gui(const char *file=0, Int_t ievent=0)
{
  gStyle->SetPalette(1, 0);

  AliEveTPCLoader* l = tpc_loader = new AliEveTPCLoader;
  AliEveTPCData*   d = new AliEveTPCData;
  // d->SetLoadPedestal(5);
  d->SetLoadThreshold(5);
  d->SetAutoPedestal(kTRUE);
  l->SetData(d);
  // l->SetDoubleSR(kTRUE);
  l->SetInitParams(40, 980, 10); // min-time, max-time, threshold
  // l->SetTPCEquipementMap("EquipmentIdMap.data");

  gEve->AddElement(l);

  if(file != 0) {
    l->SetFile(file);
    l->OpenFile();
    l->GotoEvent(ievent);
  }
}
 tpc_gui.C:1
 tpc_gui.C:2
 tpc_gui.C:3
 tpc_gui.C:4
 tpc_gui.C:5
 tpc_gui.C:6
 tpc_gui.C:7
 tpc_gui.C:8
 tpc_gui.C:9
 tpc_gui.C:10
 tpc_gui.C:11
 tpc_gui.C:12
 tpc_gui.C:13
 tpc_gui.C:14
 tpc_gui.C:15
 tpc_gui.C:16
 tpc_gui.C:17
 tpc_gui.C:18
 tpc_gui.C:19
 tpc_gui.C:20
 tpc_gui.C:21
 tpc_gui.C:22
 tpc_gui.C:23
 tpc_gui.C:24
 tpc_gui.C:25
 tpc_gui.C:26
 tpc_gui.C:27
 tpc_gui.C:28
 tpc_gui.C:29
 tpc_gui.C:30
 tpc_gui.C:31
 tpc_gui.C:32
 tpc_gui.C:33
 tpc_gui.C:34
 tpc_gui.C:35
 tpc_gui.C:36
 tpc_gui.C:37
 tpc_gui.C:38
 tpc_gui.C:39
 tpc_gui.C:40
 tpc_gui.C:41
 tpc_gui.C:42
 tpc_gui.C:43
 tpc_gui.C:44
 tpc_gui.C:45
 tpc_gui.C:46
 tpc_gui.C:47
 tpc_gui.C:48
 tpc_gui.C:49
 tpc_gui.C:50
 tpc_gui.C:51
 tpc_gui.C:52
 tpc_gui.C:53
 tpc_gui.C:54
 tpc_gui.C:55
 tpc_gui.C:56
 tpc_gui.C:57
 tpc_gui.C:58
 tpc_gui.C:59
 tpc_gui.C:60
 tpc_gui.C:61
 tpc_gui.C:62
 tpc_gui.C:63