macros for simulation and reconstruction
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Apr 2007 11:36:31 +0000 (11:36 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Apr 2007 11:36:31 +0000 (11:36 +0000)
T0/Reconstruct.C [new file with mode: 0644]
T0/Simulate.C [new file with mode: 0644]

diff --git a/T0/Reconstruct.C b/T0/Reconstruct.C
new file mode 100644 (file)
index 0000000..6ea2eda
--- /dev/null
@@ -0,0 +1,35 @@
+/**************************************************************************
+ * 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.                  *
+ **************************************************************************/
+
+
+void 
+Reconstruct()
+{
+  //  AliCDBManager* cdb = AliCDBManager::Instance();
+  //  cdb->SetDefaultStorage("local://cdb");
+  AliLog::SetModuleDebugLevel("T0", 10);
+  AliReconstruction rec;   
+  rec.SetRunLocalReconstruction("T0");
+  rec.SetRunVertexFinder(kFALSE);
+  rec.SetRunTracking(" "); 
+  rec.SetFillESD("T0"); 
+  rec.SetInput("./");
+//      rec.Run("raw.root"); 
+   rec.Run(); 
+}
+
+//
+// EOF
+//
diff --git a/T0/Simulate.C b/T0/Simulate.C
new file mode 100644 (file)
index 0000000..3dd8bd4
--- /dev/null
@@ -0,0 +1,45 @@
+ /**************************************************************************
+ * 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$ */
+
+// Script to do test the FMD digitization class. 
+void
+Simulate()
+{
+  AliLog::SetModuleDebugLevel("T0", 10);
+  AliSimulation sim;
+//   sim.SetConfigFile("$(ALICE_ROOT)/T0/Config_PDC06.C");
+   sim.SetConfigFile("$(ALICE_ROOT)/T0/Config.C");
+   sim.SetMakeSDigits(" ");
+   sim.SetMakeDigits("T0"); 
+   //   sim.SetMakeTrigger( "TEST" );
+   sim.SetWriteRawData("T0"); 
+   // sim.SetMakeDigitsFromHits("FMD"); 
+   TStopwatch w; 
+   w.Start(); 
+   //sim.RunTrigger("TEST");
+   sim.Run(3);  
+   //   sim.RunDigitization();  
+   //sim.WriteRawData("T0","raw.root");
+   // sim.WriteRawData("T0");
+   w.Stop(); 
+   w.Print(); 
+}
+
+//
+// EOF
+//