2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
12 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
13 * See cxx source for full Copyright notice */
16 /***********************************************************************
17 * This code defines the reconstructed v0 visualized with EVE
19 * Ludovic Gaudichet (gaudichet@to.infn.it)
20 ************************************************************************/
22 #include <TEveVSDStructs.h>
23 #include <TEveElement.h>
24 #include <TEveTrack.h>
26 #include <TPolyMarker3D.h>
27 #include <TPolyLine3D.h>
35 class AliEveV0 : public TEvePointSet
37 friend class AliEveV0List;
41 AliEveV0(TEveRecTrack* tNeg, TEveRecTrack* tPos, TEveRecV0* v0,
42 TEveTrackPropagator* rs);
47 virtual void SetMainColor(Color_t col)
49 TEvePointSet::SetMainColor(col);
50 fPointingLine->SetLineColor(fMarkerColor);
53 void SetRnrStyle(TEveTrackPropagator* rs) { fRnrStyle = rs; }
55 Float_t GetDaughterDCA() const { return fDaughterDCA; }
56 void SetDaughterDCA(Float_t dca) { fDaughterDCA = dca; }
58 Float_t GetRadius() const { return fRecDecayV.Perp(); }
59 Float_t GetPt() const { return fRecDecayP.Perp(); }
61 Bool_t GetOnFlyStatus() const { return fOnFlyStatus; }
62 void SetOnFlyStatus(Bool_t fs) { fOnFlyStatus = fs; }
64 Int_t GetESDIndex() const { return fESDIndex; }
65 void SetESDIndex(Int_t ind) { fESDIndex = ind;}
67 virtual const Text_t* GetName() const { return Form("ESDv0_%i",fESDIndex); }
68 virtual const Text_t* GetTitle() const { return Form("ESDv0_%i",fESDIndex); }
70 TEveTrackPropagator* GetPropagator() const { return fRnrStyle; }
72 TEveTrack* GetNegTrack() { return fNegTrack; }
73 TEveTrack* GetPosTrack() { return fPosTrack; }
75 TEveLine* GetPointingLine() { return fPointingLine; }
78 TEveVector fRecBirthV; // Reconstucted birth point of neutral particle
79 TEveVector fRecDecayV; // Point of closest approach
80 TEveVector fRecDecayP;
85 TEveTrackPropagator *fRnrStyle;
87 TEveLine *fPointingLine;
89 Int_t fESDIndex; // Index in ESD V0 array.
90 Bool_t fOnFlyStatus; // Reconstructed during tracking.
91 Float_t fDaughterDCA; // Distance at the point of closest approach.
92 Float_t fChi2V0; // Some Chi-square.
95 AliEveV0(const AliEveV0&); // Not implemented
96 AliEveV0& operator=(const AliEveV0&); // Not implemented
98 ClassDef(AliEveV0, 0); // Visual representation of a AliEveV0.
102 /******************************************************************************/
104 /******************************************************************************/
106 class AliEveV0List : public TEveElementList
108 friend class AliEveV0ListEditor;
112 AliEveV0List(TEveTrackPropagator* rs);
113 AliEveV0List(const Text_t* name, TEveTrackPropagator* rs=0);
114 virtual ~AliEveV0List() {}
116 virtual const Text_t* GetTitle() const { return fTitle; }
117 virtual void SetTitle(const Text_t* t) { fTitle = t; }
118 virtual void SetTracksColor(Color_t cNeg, Color_t cPos) {
119 fNegColor = cNeg; fPosColor = cPos;}
121 virtual Bool_t CanEditMainColor() const { return kTRUE; }
123 void SetRnrStyle(TEveTrackPropagator* rst) { fRnrStyle = rst; }
124 TEveTrackPropagator* GetPropagator() { return fRnrStyle; }
126 Bool_t GetRnrV0vtx() const { return fRnrV0vtx; }
127 Bool_t GetRnrV0path() const { return fRnrV0path; }
128 Bool_t GetRnrDaughters() const { return fRnrDaughters; }
132 void FilterByRadius(Float_t minR, Float_t maxR);
133 void FilterByDaughterDCA(Float_t minDaughterDCA, Float_t maxDaughterDCA);
134 void FilterByPt(Float_t minPt, Float_t maxPt);
139 TEveTrackPropagator *fRnrStyle;
141 Bool_t fRnrDaughters;
151 Float_t fMinDaughterDCA;
152 Float_t fMaxDaughterDCA;
160 AliEveV0List(const AliEveV0List&); // Not implemented
161 AliEveV0List& operator=(const AliEveV0List&); // Not implemented
163 ClassDef(AliEveV0List, 0); // A list of AliEveV0 objecs.