Added the specialised FMD display for raws (cholm)
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Aug 2008 14:47:45 +0000 (14:47 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Aug 2008 14:47:45 +0000 (14:47 +0000)
FMD/scripts/PatternRaw.C [new file with mode: 0644]

diff --git a/FMD/scripts/PatternRaw.C b/FMD/scripts/PatternRaw.C
new file mode 100644 (file)
index 0000000..67a2060
--- /dev/null
@@ -0,0 +1,31 @@
+//____________________________________________________________________
+//
+// $Id: PatternDigits.C 28055 2008-08-18 00:33:20Z cholm $
+//
+// Draw hits in the specialised FMD event display 
+//
+/** Display hits 
+    @ingroup FMD_script
+ */
+void
+PatternRaw(const char* file="raw.root")
+{
+  AliLog::SetModuleDebugLevel("FMD", 3);
+  AliCDBManager* cdb = AliCDBManager::Instance();
+  cdb->SetDefaultStorage("local://$ALICE_ROOT");
+  cdb->SetRun(0);
+  AliFMDParameters::Instance()->Init();
+  gSystem->Load("libFMDutil.so");
+  AliFMDPattern* d = new AliFMDPattern;
+  d->AddLoad(AliFMDInput::kRaw);
+  d->SetRawFile(file);
+  d->SetName("raw");
+  d->SetTitle("Raw");
+  // d->AddLoad(AliFMDInput::kKinematics);
+  d->Run();
+}
+
+//____________________________________________________________________
+//
+// EOF
+//