GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XGammaLink.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
23 #ifndef GW_XGAMMALINK_H
24 #define GW_XGAMMALINK_H
25 #define Gw_XGammaLink GW_XGAMMALINK_H
26 
27 #ifndef ROOT_TList
28 #include <TList.h>
29 #endif
30 
31 #ifndef GW_GAMMALINK_H
32 #include "GammaLink.h"
33 #endif
34 
35 #ifndef GW_RANDOBJ_H
36 #include "RandObj.h"
37 #endif
38 
39 namespace Gw {
40 
54 class XGammaLink : public GammaLink
55 {
56 private:
57  Bool_t fIsX; // true if the conversion must be done during DoCascade
58 
59 protected:
60  TList fX; // list of X-rays associated with this gamma
61  RandObj fRandX; // Random generator to select one link
62 
63 public:
64  XGammaLink();
65  virtual ~XGammaLink();
66 
67  virtual Bool_t IsX() const
68  {
69  return fIsX == kTRUE;
70  }
71  virtual void DoX(Bool_t x = kTRUE )
72  {
73  fIsX = x ;
74  }
75 
77 
86  void SetX(Int_t, Float_t *, Float_t *);
87 
89 
96  //virtual void DoCascade(Cascade &cas, Option_t *opt = "") ;
97  virtual Int_t DoCascade(TSeqCollection &col, Option_t *opt = "");
98 
99  //virtual void ls(Option_t* option = "") const ;
100 
102  ClassDef(XGammaLink,1); // a XGammaLink in a converted GammaLink
103 };
104 // inline members
105 
106 }
107 #endif
A class to select randomly an object in a TObjArray of objects.
Definition: RandObj.h:55
header file for a RandObj