Skip to content

Commit

Permalink
macros for simulation and reconstruction
Browse files Browse the repository at this point in the history
alla committed Apr 4, 2007
1 parent 623de5d commit fb96b88
Showing 2 changed files with 80 additions and 0 deletions.
35 changes: 35 additions & 0 deletions T0/Reconstruct.C
Original file line number Diff line number Diff line change
@@ -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
//
45 changes: 45 additions & 0 deletions T0/Simulate.C
Original file line number Diff line number Diff line change
@@ -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
//

0 comments on commit fb96b88

Please sign in to comment.