source: branches/removing_cpp11_features/macros/tutorials/readstarguider.C

Last change on this file was 7727, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1/* ======================================================================== *\
2!
3! *
4! * This file is part of MARS, the MAGIC Analysis and Reconstruction
5! * Software. It is distributed to you in the hope that it can be a useful
6! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
7! * It is distributed WITHOUT ANY WARRANTY.
8! *
9! * Permission to use, copy, modify and distribute this software and its
10! * documentation for any purpose is hereby granted without fee,
11! * provided that the above copyright notice appear in all copies and
12! * that both that copyright notice and this permission notice appear
13! * in supporting documentation. It is provided "as is" without express
14! * or implied warranty.
15! *
16!
17!
18! Author(s): Thomas Bretz, 5/2006 <mailto:tbretz@astro.uni-wuerzburg.de>
19!
20! Copyright: MAGIC Software Development, 2000-2006
21!
22!
23\* ======================================================================== */
24
25//////////////////////////////////////////////////////////////////////////////
26//
27// This macro demonstrates how to fill MHPoinitingPos directly from a
28// CC file. This may be helpfull when debugging reading starguider
29// information from a CC file.
30//
31//////////////////////////////////////////////////////////////////////////////
32
33void readstarguider(const char *fname="CC_2003_11_04_23_53_18.rep")
34{
35 //
36 // Read a report file and write containers into a root file
37 //
38 MParList plist;
39 MTaskList tlist;
40 plist.AddToList(&tlist);
41
42 MReportFileReadCC read(fname);
43 tlist.AddToList(&read);
44
45 read.AddToList("MReportStarguider");
46
47 MFillH fillh("MHPointing", "MTimeStarguider");
48 tlist.AddToList(&fillh);
49
50 MStatusDisplay *d = new MStatusDisplay;
51
52 MEvtLoop evtloop;
53 evtloop.SetParList(&plist);
54 evtloop.SetDisplay(d);
55
56 if (!evtloop.Eventloop())
57 return;
58}
Note: See TracBrowser for help on using the repository browser.