]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Alieve/AliEveJetPlane.cxx
Remove trailing whitespace.
[u/mrichter/AliRoot.git] / EVE / Alieve / AliEveJetPlane.cxx
CommitLineData
d810d0de 1// $Id$
2// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4673ff03 3
d810d0de 4/**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
51346b82 7 * full copyright notice. *
d810d0de 8 **************************************************************************/
9
10#include "AliEveJetPlane.h"
4673ff03 11#include <TString.h>
12#include <TBuffer3D.h>
13#include <TBuffer3DTypes.h>
14#include <TVirtualPad.h>
15#include <TVirtualViewer3D.h>
16
4673ff03 17
18//______________________________________________________________________
d810d0de 19// AliEveJetPlane
4673ff03 20//
21
22
d810d0de 23Bool_t AliEveJetPlane::fgOneMomentumXYZ = kFALSE;
24Bool_t AliEveJetPlane::fgOneMomentumPhiTheta = kFALSE;
25Bool_t AliEveJetPlane::fgOneEta = kFALSE;
26Bool_t AliEveJetPlane::fgOneE = kFALSE;
27Bool_t AliEveJetPlane::fgOneChgMass = kFALSE;
4673ff03 28
29
d810d0de 30ClassImp(AliEveJetPlane)
4673ff03 31
d810d0de 32AliEveJetPlane::AliEveJetPlane(Int_t iev) :
33 TEveElementList(Form("AliEveJetPlane %i",iev), Form("%i",iev)),
4673ff03 34
35 fMinEta (-1.5 ),
36 fMaxEta ( 1.5 ),
37 fMinPhi (-TMath::Pi() ),
38 fMaxPhi ( TMath::Pi() ),
39
40 fNEtaDiv(30),
41 fNPhiDiv(30),
42
43 fEtaScale(350/1.5),
44 fPhiScale(350/TMath::Pi()),
45 fEnergyScale(100.0),
46
47 fEnergyColorScale (0.),
48
49 fGridColor(5),
50
51 fRnrJets (kTRUE),
52 fRnrTracks (kTRUE),
53
54 fOneSelection (kTRUE),
55 fTwoSelection (kFALSE),
56
57 fSelectionFlag (1)
58{
59 SetMainColorPtr(&fGridColor);
60}
61
62/**************************************************************************/
63
d810d0de 64void AliEveJetPlane::AddJet(AliAODJet jet)
4673ff03 65{
66 fJets.push_back(jet);
67}
68
69/**************************************************************************/
70
d810d0de 71void AliEveJetPlane::AddTrack(AliAODTrack track)
4673ff03 72{
73 fTracks.push_back(track);
74}
75
76
77/**************************************************************************/
78
d810d0de 79void AliEveJetPlane::ComputeBBox()
4673ff03 80{
81 BBoxInit();
82 BBoxCheckPoint(-350, -350, -20);
83 BBoxCheckPoint( 350, 350, 20);
84}
85
d810d0de 86void AliEveJetPlane::Paint(Option_t* /*option*/)
4673ff03 87{
88 TBuffer3D buff(TBuffer3DTypes::kGeneric);
89
90 // Section kCore
91 buff.fID = this;
92 buff.fColor = fGridColor;
93 buff.fTransparency = 0;
94 fHMTrans.SetBuffer3D(buff);
95 buff.SetSectionsValid(TBuffer3D::kCore);
96
97 Int_t reqSections = gPad->GetViewer3D()->AddObject(buff);
98 if (reqSections == TBuffer3D::kNone) {
d810d0de 99 // printf("AliEveJetPlane::Paint viewer was happy with Core buff3d.\n");
4673ff03 100 return;
101 }
102}