KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDetectorEvent.h
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 "KVGroup.h"
26
55class KVDetectorEvent: public KVBase {
56
57private:
58
60
61public:
62
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;
73 {
74 return fHitGroups;
75 }
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:142
List of hit groups in a multidetector array.
virtual UInt_t GetMult() const
Bool_t ContainsGroup(KVGroup *grp)
KVUniqueNameList * GetGroups()
void AddGroup(KVGroup *grp)
virtual void Print(Option_t *t="") const
Print a listing of hit groups with fired detectors.
virtual void Clear(Option_t *opt="")
virtual void init()
Default initialisation.
KVUniqueNameList * fHitGroups
list of groups hit by particles in the event
Group of detectors which can be treated independently of all others in array.
Definition KVGroup.h:20
virtual TObject * FindObject(const char *name) const
virtual Int_t GetSize() const
Optimised list in which named objects can only be placed once.
virtual void Add(TObject *obj)
const char * GetName() const override