source: trunk/MagicSoft/Mars/mfileio/MChain.cc@ 3830

Last change on this file since 3830 was 2173, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 2.1 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, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
19!
20! Copyright: MAGIC Software Development, 2000-2003
21!
22!
23\* ======================================================================== */
24
25/////////////////////////////////////////////////////////////////////////////
26// //
27// MChain //
28// //
29// Helper class for MReadTree //
30// //
31/////////////////////////////////////////////////////////////////////////////
32#include "MChain.h"
33
34ClassImp(MChain);
35
36Int_t MChain::LoadTree(Int_t entry)
37{
38 //
39 // This is the code from TChain::LoadTree but skips the
40 // notification in LoadTree. If LoadTree raises the notification
41 // a flag is set and the notification is done by hand. This
42 // is done to be able to catch the return value from Notify. If
43 // it has not been successfull -15 is returned.
44 // This is to support return values from Notify()/Reinit()
45 //
46 TObject *notify = GetNotify();
47
48 SetNotify(this);
49
50 Int_t rc = TChain::LoadTree(entry);
51
52 if (rc >= 0 && fNotified && notify)
53 if (!notify->Notify())
54 rc = -15;
55
56 SetNotify(notify);
57
58 return rc;
59}
60
Note: See TracBrowser for help on using the repository browser.