KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDetectorEvent.h
Go to the documentation of this file.
1 /***************************************************************************
2  kvdetectorevent.h - description
3  -------------------
4  begin : Sun May 19 2002
5  copyright : (C) 2002 by J.D. Frankland
6  email : frankland@ganil.fr
7 
8 $Id: KVDetectorEvent.h,v 1.8 2006/10/19 14:32:43 franklan Exp $
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  ***************************************************************************/
19 
20 #ifndef KVDETECTOREVENT_H
21 #define KVDETECTOREVENT_H
22 
23 #include "KVBase.h"
24 #include "KVUniqueNameList.h"
25 #include "KVTemplateEvent.h"
26 #include "KVGroup.h"
27 
55 class KVDetectorEvent: public KVBase {
56 
57 private:
58 
59  KVUniqueNameList* fHitGroups;
60 
61 public:
62 
63  KVDetectorEvent();
64  virtual ~ KVDetectorEvent();
65  virtual void init();
66  void AddGroup(KVGroup* grp)
67  {
68  fHitGroups->Add(grp);
69  }
70  virtual void Clear(Option_t* opt = "");
71  virtual void Print(Option_t* t = "") const;
72  KVUniqueNameList* GetGroups()
73  {
74  return fHitGroups;
75  }
76  Bool_t ContainsGroup(KVGroup* grp)
77  {
78  return (fHitGroups->FindObject(grp->GetName()) != 0);
79  }
80  virtual UInt_t GetMult() const
81  {
82  return fHitGroups->GetSize();
83  }
84 
85  ClassDef(KVDetectorEvent, 2) // List of hit groups in a multidetector array
86 };
87 #endif
unsigned int UInt_t
bool Bool_t
const char Option_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:141
void init()
Default initialisation.
Definition: KVBase.cpp:138
virtual void Clear(Option_t *opt="")
Clear object properties : name, type/title, number, label.
Definition: KVBase.cpp:380
virtual void Print(Option_t *option="") const
Definition: KVBase.cpp:410
Group of detectors which can be treated independently of all others in array.
Definition: KVGroup.h:19
virtual Int_t GetSize() const
virtual TObject * FindObject(const char *name) const
Optimised list in which named objects can only be placed once.
virtual void Add(TObject *obj)
virtual const char * GetName() const