VMC Version 2.0
Loading...
Searching...
No Matches
TVirtualMCSensitiveDetector.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------
2// Copyright (C) 2019 CERN and copyright holders of VMC Project.
3// This software is distributed under the terms of the GNU General Public
4// License v3 (GPL Version 3), copied verbatim in the file "LICENSE".
5//
6// See https://github.com/vmc-project/vmc for full licensing information.
7// -----------------------------------------------------------------------
8
9// Authors: Ivana Hrivnacova 19/04/2018
10
11/*************************************************************************
12 * Copyright (C) 2006, Rene Brun and Fons Rademakers. *
13 * Copyright (C) 2018 ALICE Experiment at CERN. *
14 * All rights reserved. *
15 * *
16 * For the licensing terms see $ROOTSYS/LICENSE. *
17 * For the list of contributors see $ROOTSYS/README/CREDITS. *
18 *************************************************************************/
19
20#ifndef ROOT_TVirtualMCSensitiveDetector
21#define ROOT_TVirtualMCSensitiveDetector
22
23// Class TVirtualMCSensitiveDetector
24// ---------------------------------
25// Interface to a user defined particles stack.
26//
27
28#include "TNamed.h"
29
30class TParticle;
31
32class TVirtualMCSensitiveDetector : public TNamed {
33
34public:
35 // Constructor
36 TVirtualMCSensitiveDetector(const char *name, const char *title = "");
37 TVirtualMCSensitiveDetector(const TString &name, const TString &title = "");
38
39 // Destructor
41
44 virtual void Initialize() = 0;
45
48 virtual void ProcessHits() = 0;
49
52 virtual void EndOfEvent() = 0;
53
54protected:
55 // Default constructor
57 // Copy constructor
59 // Assignment constructor
61
62 ClassDef(TVirtualMCSensitiveDetector, 1) // Interface to a user sensitive detector
63};
64
65#endif // ROOT_TVirtualMCSensitiveDetector
Interface to a user defined sensitive detector.
virtual void EndOfEvent()=0
End of event.
virtual ~TVirtualMCSensitiveDetector()
Destructor.
TVirtualMCSensitiveDetector()
Default constructor.
virtual void ProcessHits()=0
Process hits.
virtual void Initialize()=0
Initialize detector.
TVirtualMCSensitiveDetector & operator=(const TVirtualMCSensitiveDetector &rhs)
Assignment operator.