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

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