forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TVirtualMCSensitiveDetector.h
58 lines (44 loc) · 1.97 KB
/
TVirtualMCSensitiveDetector.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// @(#)root/vmc:$Id$
// Authors: Ivana Hrivnacova 19/04/2018
/*************************************************************************
* Copyright (C) 2006, Rene Brun and Fons Rademakers. *
* Copyright (C) 2018 ALICE Experiment at CERN. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TVirtualMCSensitiveDetector
#define ROOT_TVirtualMCSensitiveDetector
// Class TVirtualMCSensitiveDetector
// ---------------------------------
// Interface to a user defined particles stack.
//
#include "TNamed.h"
class TParticle;
class TVirtualMCSensitiveDetector : public TNamed {
public:
// Constructor
TVirtualMCSensitiveDetector(const char *name, const char *title = "");
TVirtualMCSensitiveDetector(const TString &name, const TString &title = "");
// Destructor
virtual ~TVirtualMCSensitiveDetector();
/// Initialize detector.
/// Called at initialization of geometry before MCApplication::InitGeometry().
virtual void Initialize() = 0;
/// Process hits.
/// Called at each step when track pass through the associated volume
virtual void ProcessHits() = 0;
/// End of event.
/// Called at end of event before MCApplication::FinishEvent().
virtual void EndOfEvent() = 0;
protected:
// Default constructor
TVirtualMCSensitiveDetector();
// Copy constructor
TVirtualMCSensitiveDetector(const TVirtualMCSensitiveDetector &rhs);
// Assignment constructor
TVirtualMCSensitiveDetector &operator=(const TVirtualMCSensitiveDetector &rhs);
ClassDef(TVirtualMCSensitiveDetector, 1) // Interface to a user sensitive detector
};
#endif // ROOT_TVirtualMCSensitiveDetector