GENIEGenerator
Loading...
Searching...
No Matches
genie::masterclass::FastSimCherenkov Class Reference

Fast simulation of the response of a Cherenkov detector. More...

#include <FastSimCherenkov.h>

Public Member Functions

 FastSimCherenkov ()
 ~FastSimCherenkov ()
void SetEmbeddedCanvas (TRootEmbeddedCanvas *ec)
void Draw (EventRecord *event)

Private Attributes

TRootEmbeddedCanvas * fEmbeddedCanvas

Detailed Description

Fast simulation of the response of a Cherenkov detector.

Author
Costas Andreopoulos <c.andreopoulos \at cern.ch> University of Liverpool
Created:\n Sep 22, 2010
License:\n Copyright (c) 2003-2025, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org

Definition at line 29 of file FastSimCherenkov.h.

Constructor & Destructor Documentation

◆ FastSimCherenkov()

FastSimCherenkov::FastSimCherenkov ( )

Definition at line 32 of file FastSimCherenkov.cxx.

33{
34
35}

◆ ~FastSimCherenkov()

FastSimCherenkov::~FastSimCherenkov ( )

Definition at line 37 of file FastSimCherenkov.cxx.

38{
39
40}

Member Function Documentation

◆ Draw()

void FastSimCherenkov::Draw ( EventRecord * event)

Definition at line 47 of file FastSimCherenkov.cxx.

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}
#define pINFO
Definition Messenger.h:62
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96

References fEmbeddedCanvas, LOG, and pINFO.

◆ SetEmbeddedCanvas()

void FastSimCherenkov::SetEmbeddedCanvas ( TRootEmbeddedCanvas * ec)

Definition at line 42 of file FastSimCherenkov.cxx.

43{
44 fEmbeddedCanvas = ec;
45}

References fEmbeddedCanvas.

Member Data Documentation

◆ fEmbeddedCanvas

TRootEmbeddedCanvas* genie::masterclass::FastSimCherenkov::fEmbeddedCanvas
private

Definition at line 36 of file FastSimCherenkov.h.

Referenced by Draw(), and SetEmbeddedCanvas().


The documentation for this class was generated from the following files: