GENIEGenerator
Loading...
Searching...
No Matches
Tools
Masterclass
FastSimScintCalo.cxx
Go to the documentation of this file.
1
//____________________________________________________________________________
2
/*
3
Copyright (c) 2003-2025, The GENIE Collaboration
4
For the full text of the license visit http://copyright.genie-mc.org
5
6
Costas Andreopoulos <c.andreopoulos \at cern.ch>
7
University of Liverpool
8
*/
9
//____________________________________________________________________________
10
11
#include <sstream>
12
#include <string>
13
#include <vector>
14
15
#include <TRootEmbeddedCanvas.h>
16
#include <TLorentzVector.h>
17
#include <TLine.h>
18
#include <TEllipse.h>
19
#include <TLatex.h>
20
#include <TCanvas.h>
21
#include <TStyle.h>
22
23
#include "
Framework/EventGen/EventRecord.h
"
24
#include "
Framework/GHEP/GHepParticle.h
"
25
#include "
Framework/Messenger/Messenger.h
"
26
#include "
Tools/Masterclass/FastSimScintCalo.h
"
27
28
using namespace
genie
;
29
using namespace
genie::masterclass
;
30
31
//______________________________________________________________________________
32
FastSimScintCalo::FastSimScintCalo
()
33
{
34
35
}
36
//______________________________________________________________________________
37
FastSimScintCalo::~FastSimScintCalo
()
38
{
39
40
}
41
//______________________________________________________________________________
42
void
FastSimScintCalo::SetEmbeddedCanvas
(TRootEmbeddedCanvas * ec)
43
{
44
fEmbeddedCanvas
= ec;
45
}
46
//______________________________________________________________________________
47
void
FastSimScintCalo::Draw
(
EventRecord
*
/*event*/
)
48
{
49
LOG
(
"MasterClass"
,
pINFO
) <<
"Drawing input event"
;
50
51
fEmbeddedCanvas
->GetCanvas()->cd();
52
fEmbeddedCanvas
->GetCanvas()->Clear();
53
54
fEmbeddedCanvas
->GetCanvas()->Range(0,0,200,100);
55
fEmbeddedCanvas
->GetCanvas()->SetFillColor(0);
56
fEmbeddedCanvas
->GetCanvas()->SetBorderMode(0);
57
58
//
59
// ...
60
//
61
62
fEmbeddedCanvas
->GetCanvas()->Update();
63
}
64
//______________________________________________________________________________
EventRecord.h
FastSimScintCalo.h
GHepParticle.h
Messenger.h
pINFO
#define pINFO
Definition
Messenger.h:62
LOG
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition
Messenger.h:96
genie::EventRecord
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
Definition
EventRecord.h:37
genie::masterclass::FastSimScintCalo::SetEmbeddedCanvas
void SetEmbeddedCanvas(TRootEmbeddedCanvas *ec)
Definition
FastSimScintCalo.cxx:42
genie::masterclass::FastSimScintCalo::Draw
void Draw(EventRecord *event)
Definition
FastSimScintCalo.cxx:47
genie::masterclass::FastSimScintCalo::fEmbeddedCanvas
TRootEmbeddedCanvas * fEmbeddedCanvas
Definition
FastSimScintCalo.h:38
genie::masterclass::FastSimScintCalo::~FastSimScintCalo
~FastSimScintCalo()
Definition
FastSimScintCalo.cxx:37
genie::masterclass::FastSimScintCalo::FastSimScintCalo
FastSimScintCalo()
Definition
FastSimScintCalo.cxx:32
genie::masterclass
Definition
FastSimCherenkov.h:27
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition
AlgCmp.h:25
Generated on
for GENIEGenerator by
1.14.0