Simulate.C

Go to the documentation of this file.
00001 /**************************************************************************
00002  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
00003  *                                                                        *
00004  * Author: The ALICE Off-line Project.                                    *
00005  * Contributors are mentioned in the code where appropriate.              *
00006  *                                                                        *
00007  * Permission to use, copy, modify and distribute this software and its   *
00008  * documentation strictly for non-commercial purposes is hereby granted   *
00009  * without fee, provided that the above copyright notice appears in all   *
00010  * copies and that both the copyright notice and this permission notice   *
00011  * appear in the supporting documentation. The authors make no claims     *
00012  * about the suitability of this software for any purpose. It is          *
00013  * provided "as is" without express or implied warranty.                  *
00014  **************************************************************************/
00015 
00016 /* $Id: Simulate.C,v 1.11 2006/03/21 12:58:10 cholm Exp $ */
00017 
00018 // Script to do test the FMD digitization class. 
00019 void
00020 Simulate()
00021 {
00022   AliCDBManager* cdb = AliCDBManager::Instance();
00023   cdb->SetDefaultStorage("local://cdb");
00024   AliSimulation sim;
00025   AliCDBEntry* align = cdb->Get("FMD/Align/Data");
00026   if (align) {
00027     TClonesArray* array = dynamic_cast<TClonesArray*>(align->GetObject());
00028     if (array) sim.SetAlignObjArray(array);
00029   }
00030   sim.SetConfigFile("$(ALICE_ROOT)/FMD/Config.C");
00031   // sim.SetMakeSDigits("FMD");
00032   sim.SetMakeDigits("FMD"); 
00033   sim.SetWriteRawData("FMD"); 
00034   // sim.SetMakeDigitsFromHits("FMD"); 
00035   TStopwatch w; 
00036   w.Start(); 
00037   sim.Run(1);  
00038   w.Stop(); 
00039   w.Print(); 
00040 }
00041 
00042 //
00043 // EOF
00044 //

Generated on Fri Mar 24 17:11:21 2006 for ALICE FMD Off-line by  doxygen 1.4.6