conventions.
In TPCSectorData remove PadRowHack structure and handling functions.
class AliEveCosmicRayFitter : public TEvePointSet
{
-private:
- AliEveCosmicRayFitter(const AliEveCosmicRayFitter&); // Not implemented
- AliEveCosmicRayFitter& operator=(const AliEveCosmicRayFitter&); // Not implemented
+public:
+ AliEveCosmicRayFitter(const Text_t* name = "CosmicRayFitter", Int_t n_points=0);
+ virtual ~AliEveCosmicRayFitter();
+
+ void AddFitPoint(Int_t); // slot for PointCtrlClicked() signal
-protected:
+ virtual void Start();
+ virtual void Stop();
+ virtual void FitTrack();
+ virtual void Reset(Int_t n_points=0, Int_t n_int_ids=0);
+ Bool_t GetConnected() { return fConnected; }
+ TVirtualFitter* GetLine3DFitter(){ return fLine3DFitter; }
+
+ TGraph* GetGraphSelected1() { return fGraphPicked1; }
+ TGraph* GetGraphSelected2() { return fGraphPicked2; }
+ TGraph2D* GetGraphSelected3() { return fGraphPicked3; }
+ TGraphErrors* GetGraphFitted1() { return fGraphLinear1; }
+ TGraphErrors* GetGraphFitted2() { return fGraphLinear2; }
+ TGraph2DErrors* GetGraphFitted3() { return fGraphLinear3; }
+ void DrawDebugGraph();
+
+ virtual void DestroyElements(); // *MENU*
+
+protected:
struct Point_t
{
// inner structure to check duplicates
}
};
- typedef std::map<Point_t, Int_t> PointMap_t;
+ typedef std::map<Point_t, Int_t> PointMap_t; // Map of registered points.
TVirtualFitter* fLine3DFitter; // 3D straight line fitter
TGraph2D *fGraphPicked3; // graph of selected points debug info
TGraph2DErrors *fGraphLinear3; // graph of fitted points for debug info
-public:
- AliEveCosmicRayFitter(const Text_t* name = "CosmicRayFitter", Int_t n_points=0);
- virtual ~AliEveCosmicRayFitter();
-
- void AddFitPoint(Int_t); // slot for PointCtrlClicked() signal
-
- virtual void Start();
- virtual void Stop();
- virtual void FitTrack();
- virtual void Reset(Int_t n_points=0, Int_t n_int_ids=0);
-
- Bool_t GetConnected() { return fConnected; }
- TVirtualFitter* GetLine3DFitter(){ return fLine3DFitter; }
-
- TGraph* GetGraphSelected1() { return fGraphPicked1; }
- TGraph* GetGraphSelected2() { return fGraphPicked2; }
- TGraph2D* GetGraphSelected3() { return fGraphPicked3; }
- TGraphErrors* GetGraphFitted1() { return fGraphLinear1; }
- TGraphErrors* GetGraphFitted2() { return fGraphLinear2; }
- TGraph2DErrors* GetGraphFitted3() { return fGraphLinear3; }
- void DrawDebugGraph();
-
- virtual void DestroyElements(); // *MENU*
+private:
+ AliEveCosmicRayFitter(const AliEveCosmicRayFitter&); // Not implemented
+ AliEveCosmicRayFitter& operator=(const AliEveCosmicRayFitter&); // Not implemented
ClassDef(AliEveCosmicRayFitter, 0); // Interface to TEvePointSet allowing 3D straight linear fit.
-}; // endclass AliEveCosmicRayFitter
+};
#endif
class TGNumberEntry;
class TGColorSelect;
-
class AliEveCosmicRayFitter;
class AliEveCosmicRayFitterEditor : public TGedFrame
{
-private:
- AliEveCosmicRayFitterEditor(const AliEveCosmicRayFitterEditor&); // Not implemented
- AliEveCosmicRayFitterEditor& operator=(const AliEveCosmicRayFitterEditor&); // Not implemented
-
-protected:
- AliEveCosmicRayFitter* fM; // fModel dynamic-casted to AliEveCosmicRayFitterEditor
-
- TGTextButton* fFit; // button to fit selection
- TGTextButton* fReset; // button to reset selection
- TGTextButton* fStart; // button to connect to signal
- TGTextButton* fStop; // button to disconnect from signal
- TGTextButton* fGraph; // button to draw graph
-
public:
AliEveCosmicRayFitterEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
virtual ~AliEveCosmicRayFitterEditor() {}
void DoStop();
void DoGraph();
+protected:
+ AliEveCosmicRayFitter* fM; // fModel dynamic-casted to AliEveCosmicRayFitterEditor
+
+ TGTextButton* fFit; // button to fit selection
+ TGTextButton* fReset; // button to reset selection
+ TGTextButton* fStart; // button to connect to signal
+ TGTextButton* fStop; // button to disconnect from signal
+ TGTextButton* fGraph; // button to draw graph
+
+private:
+ AliEveCosmicRayFitterEditor(const AliEveCosmicRayFitterEditor&); // Not implemented
+ AliEveCosmicRayFitterEditor& operator=(const AliEveCosmicRayFitterEditor&); // Not implemented
+
ClassDef(AliEveCosmicRayFitterEditor, 0); // Editor for AliEveCosmicRayFitter class.
};
class AliEveEventManager : public TEveEventManager
{
-private:
- AliEveEventManager(const AliEveEventManager&); // Not implemented
- AliEveEventManager& operator=(const AliEveEventManager&); // Not implemented
-
-protected:
- TString fPath; // URL to event-data.
- Int_t fEventId; // Id of current event.
-
- AliRunLoader* fRunLoader; // Run loader.
-
- TFile* fESDFile; // ESD file.
- TTree* fESDTree; // ESD tree.
- AliESDEvent* fESD; // ESDEvent object.
- AliESDfriend* fESDfriend; // ESDfriend object.
- Bool_t fESDfriendExists; // Flag specifying if ESDfriend was found during opening of the event-data.
-
- static TString fgCdbUri; // Global URI to CDB.
- static Bool_t fgAssertRunLoader; // Global flag specifying if AliRunLoader must be asserted during opening of the event-data.
- static Bool_t fgAssertESD; // Global flag specifying if ESDEvent must be asserted during opening of the event-data.
-
- static AliMagF* fgMagField; // Global pointer to magneti field.
-
public:
static void SetCdbUri(const Text_t* cdb) { if (cdb) fgCdbUri = cdb; }
static void SetAssertElements(Bool_t assertRunloader, Bool_t assertEsd)
static TGeoManager* AssertGeometry();
- ClassDef(AliEveEventManager, 1);
-}; // endclass AliEveEventManager
+protected:
+ TString fPath; // URL to event-data.
+ Int_t fEventId; // Id of current event.
+
+ AliRunLoader* fRunLoader; // Run loader.
+
+ TFile* fESDFile; // ESD file.
+ TTree* fESDTree; // ESD tree.
+ AliESDEvent* fESD; // ESDEvent object.
+ AliESDfriend* fESDfriend; // ESDfriend object.
+ Bool_t fESDfriendExists; // Flag specifying if ESDfriend was found during opening of the event-data.
+
+ static TString fgCdbUri; // Global URI to CDB.
+ static Bool_t fgAssertRunLoader; // Global flag specifying if AliRunLoader must be asserted during opening of the event-data.
+ static Bool_t fgAssertESD; // Global flag specifying if ESDEvent must be asserted during opening of the event-data.
+
+ static AliMagF* fgMagField; // Global pointer to magneti field.
+
+private:
+ AliEveEventManager(const AliEveEventManager&); // Not implemented
+ AliEveEventManager& operator=(const AliEveEventManager&); // Not implemented
+
+ ClassDef(AliEveEventManager, 0); // Interface for getting all event components in a uniform way.
+};
extern AliEveEventManager* gAliEveEvent;
{
friend class AliEveJetPlaneGL;
-private:
- AliEveJetPlane(const AliEveJetPlane&); // Not implemented
- AliEveJetPlane& operator=(const AliEveJetPlane&); // Not implemented
-
-protected:
- Float_t fMinEta; // Min eta for display.
- Float_t fMaxEta; // Max eta for display.
- Float_t fMinPhi; // Min phi for display.
- Float_t fMaxPhi; // Max phi for display.
- Int_t fNEtaDiv; // Number of eta divisions for display.
- Int_t fNPhiDiv; // Number of phi divisions for display.
-
- Float_t fEtaScale; // Multiplier for eta.
- Float_t fPhiScale; // Multiplier for phi.
- Float_t fEnergyScale; // Multiplier for energy.
- Float_t fEnergyColorScale; // Multiplier for energy color.
-
- Color_t fGridColor; // Color of coordinate grid.
-
- std::vector<AliAODJet> fJets; // Jets to display.
- std::vector<AliAODTrack> fTracks; // Tracks to display.
-
- Bool_t fRnrJets; // Show jets.
- Bool_t fRnrTracks; // Show tracks.
- Bool_t fOneSelection; // One object selected.
- Bool_t fTwoSelection; // Two objects selected.
-
- AliAODJet *fJet1, *fJet2; // Selection jets.
- AliAODTrack *fTrack1, *fTrack2; // Selection tracks.
-
- Int_t fSelectionFlag; // Selection state, handled by GL renderer.
-
- // Common settings:
- static Bool_t fgOneMomentumXYZ; // Display momentum as coordinates.
- static Bool_t fgOneMomentumPhiTheta; // Display momentum as phi/theta.
- static Bool_t fgOneEta; // Display eta.
- static Bool_t fgOneE; // Display energy.
- static Bool_t fgOneChgMass; // Display charge and mass.
-
public:
AliEveJetPlane(Int_t iev);
virtual ~AliEveJetPlane() {}
virtual void ComputeBBox();
virtual void Paint(Option_t* option = "");
- ClassDef(AliEveJetPlane, 1); // Show jets and tracks in eta-phi plane.
-}; // endclass AliEveJetPlane
+protected:
+ Float_t fMinEta; // Min eta for display.
+ Float_t fMaxEta; // Max eta for display.
+ Float_t fMinPhi; // Min phi for display.
+ Float_t fMaxPhi; // Max phi for display.
+ Int_t fNEtaDiv; // Number of eta divisions for display.
+ Int_t fNPhiDiv; // Number of phi divisions for display.
+
+ Float_t fEtaScale; // Multiplier for eta.
+ Float_t fPhiScale; // Multiplier for phi.
+ Float_t fEnergyScale; // Multiplier for energy.
+ Float_t fEnergyColorScale; // Multiplier for energy color.
+
+ Color_t fGridColor; // Color of coordinate grid.
+
+ std::vector<AliAODJet> fJets; // Jets to display.
+ std::vector<AliAODTrack> fTracks; // Tracks to display.
+
+ Bool_t fRnrJets; // Show jets.
+ Bool_t fRnrTracks; // Show tracks.
+ Bool_t fOneSelection; // One object selected.
+ Bool_t fTwoSelection; // Two objects selected.
+
+ AliAODJet *fJet1, *fJet2; // Selection jets.
+ AliAODTrack *fTrack1, *fTrack2; // Selection tracks.
+
+ Int_t fSelectionFlag; // Selection state, handled by GL renderer.
+
+ // Common settings:
+ static Bool_t fgOneMomentumXYZ; // Display momentum as coordinates.
+ static Bool_t fgOneMomentumPhiTheta; // Display momentum as phi/theta.
+ static Bool_t fgOneEta; // Display eta.
+ static Bool_t fgOneE; // Display energy.
+ static Bool_t fgOneChgMass; // Display charge and mass.
+
+private:
+ AliEveJetPlane(const AliEveJetPlane&); // Not implemented
+ AliEveJetPlane& operator=(const AliEveJetPlane&); // Not implemented
+
+ ClassDef(AliEveJetPlane, 0); // Show jets and tracks in eta-phi plane.
+};
#endif
class AliEveJetPlaneEditor : public TGedFrame
{
-private:
- AliEveJetPlaneEditor(const AliEveJetPlaneEditor&); // Not implemented
- AliEveJetPlaneEditor& operator=(const AliEveJetPlaneEditor&); // Not implemented
-
-protected:
- AliEveJetPlane *fM; // Model object.
-
- TGCheckButton *fRnrJets; // Widget for flag RnrJets.
- TGCheckButton *fRnrTracks; // Widget for flag RnrTracks.
- TEveGValuator *fEnergyScale; // Widget for EnergyScale.
- TEveGValuator *fEnergyColorScale; // Widget for EnergyColorScale.
- TGButton *fOneSelection, *fTwoSelection; // Widgets for one/two selection flags.
- TGButton *fInformationSetup; // Widget for InformationSetup.
-
public:
AliEveJetPlaneEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
// --- Internal class for common settings
-public:
+
class StaticDataWindow : public TGTransientFrame
{
- private:
- StaticDataWindow(const StaticDataWindow&); // Not implemented
- StaticDataWindow& operator=(const StaticDataWindow&); // Not implemented
-
- TGCompositeFrame *fFrame1, *fF2; // Frames.
- TGButton *fOkButton, *fCancelButton; // Ok, cancel buttons.
- TGLayoutHints *fL1, *fL2, *fL3, *fL5; // Layout hints.
- TGTab *fTab; // Tab container.
- TGButton *fChk1, *fChk2,*fChk3, *fChk4,*fChk5; // Check-buttons.
-
public:
StaticDataWindow(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h,
UInt_t options = kVerticalFrame);
void DoCancel();
void DoTab(Int_t id);
+ private:
+ StaticDataWindow(const StaticDataWindow&); // Not implemented
+ StaticDataWindow& operator=(const StaticDataWindow&); // Not implemented
+
+ TGCompositeFrame *fFrame1, *fF2; // Frames.
+ TGButton *fOkButton, *fCancelButton; // Ok, cancel buttons.
+ TGLayoutHints *fL1, *fL2, *fL3, *fL5; // Layout hints.
+ TGTab *fTab; // Tab container.
+ TGButton *fChk1, *fChk2,*fChk3, *fChk4,*fChk5; // Check-buttons.
+
ClassDef(StaticDataWindow, 0); // Common settings for all AliEveJetPlane objects.
};
protected:
+ AliEveJetPlane *fM; // Model object.
+
+ TGCheckButton *fRnrJets; // Widget for flag RnrJets.
+ TGCheckButton *fRnrTracks; // Widget for flag RnrTracks.
+ TEveGValuator *fEnergyScale; // Widget for EnergyScale.
+ TEveGValuator *fEnergyColorScale; // Widget for EnergyColorScale.
+ TGButton *fOneSelection, *fTwoSelection; // Widgets for one/two selection flags.
+ TGButton *fInformationSetup; // Widget for InformationSetup.
+
static StaticDataWindow* fgStaticWindow; // Common window for global settings.
- ClassDef(AliEveJetPlaneEditor, 1); // Editor for AliEveJetPlane.
-}; // endclass AliEveJetPlaneEditor
+private:
+ AliEveJetPlaneEditor(const AliEveJetPlaneEditor&); // Not implemented
+ AliEveJetPlaneEditor& operator=(const AliEveJetPlaneEditor&); // Not implemented
+
+ ClassDef(AliEveJetPlaneEditor, 0); // Editor for AliEveJetPlane.
+};
#endif
class AliEveJetPlaneGL : public TGLObject
{
-private:
- AliEveJetPlaneGL(const AliEveJetPlaneGL&); // Not implemented
- AliEveJetPlaneGL& operator=(const AliEveJetPlaneGL&); // Not implemented
-
-protected:
- AliEveJetPlane* fM; // Model object.
-
- virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
-
public:
AliEveJetPlaneGL();
virtual ~AliEveJetPlaneGL() {}
virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
+protected:
+ AliEveJetPlane* fM; // Model object.
+
+ virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
+
+private:
+ AliEveJetPlaneGL(const AliEveJetPlaneGL&); // Not implemented
+ AliEveJetPlaneGL& operator=(const AliEveJetPlaneGL&); // Not implemented
+
ClassDef(AliEveJetPlaneGL, 0); // GL renderer for AliEveJetPlane.
}; // endclass AliEveJetPlaneGL
class AliEveKineTools
{
-private:
- AliEveKineTools(const AliEveKineTools&); // Not implemented
- AliEveKineTools& operator=(const AliEveKineTools&); // Not implemented
-
public:
- AliEveKineTools(){}
- virtual ~AliEveKineTools(){}
+ AliEveKineTools() {}
+ virtual ~AliEveKineTools() {}
void SetDaughterPathMarks(TEveElement* cont, AliStack* stack, Bool_t recurse=kFALSE);
void SetTrackReferences (TEveElement* cont, TTree* treeTR=0, Bool_t recurse=kFALSE);
void SortPathMarks (TEveElement* cont, Bool_t recurse=kFALSE);
- ClassDef(AliEveKineTools, 1); // Tools for import of kinematics.
+private:
+ AliEveKineTools(const AliEveKineTools&); // Not implemented
+ AliEveKineTools& operator=(const AliEveKineTools&); // Not implemented
+
+ ClassDef(AliEveKineTools, 0); // Tools for import of kinematics.
};
#endif
Int_t alphaIdx = 0;
GetPoint(alphaIdx, x, y, z);
Float_t minR2=x*x + y*y;
- for (Int_t i=1; i<=fLastPoint; i++)
+ for (Int_t i=0; i<=fLastPoint; i++)
{
GetPoint(i, x, y, z);
Float_t cR2 = x*x + y*y;
- if ( minR2 > cR2 )
+ if (minR2 > cR2)
{
minR2 = cR2;
alphaIdx = i;
fAlpha = ATan2(y, x);
Float_t sin = Sin(-fAlpha);
Float_t cos = Cos(-fAlpha);
- for (Int_t i=0; i<=fLastPoint; i++) {
+ for (Int_t i = 0; i <= fLastPoint; ++i)
+ {
GetPoint(i, x, y, z);
fRieman->AddPoint(cos*x - sin*y, cos*y + sin*x, z, 1, 1);
}
// curvature to pt
param[4] /= TEveTrackPropagator::fgDefMagField*TEveTrackPropagator::fgkB2C;
// sign in tang
- if (param[4] < 0) param[3] *= -1;
+ if (param[4] < 0) param[3] = -param[3];
AliExternalTrackParam trackParam(r, fAlpha, param, cov);
trackParam.Print();
TEveTrack* track = new TEveTrack(&rc, fTrackList->GetPropagator());
track->SetName(Form("track %f", fAlpha));
- for(Int_t i=0; i<=fLastPoint; ++i)
- {
- TEvePathMark pm(TEvePathMark::kDaughter);
- GetPoint(i, x, y, z);
- pm.fV.Set(x, y, z);
- pm.fP.Set(p0);
- track->AddPathMark(pm);
- }
+
track->MakeTrack();
track->SetAttLineAttMarker(fTrackList);
fTrackList->AddElement(track);
class AliEveTrackFitter : public TEvePointSet
{
-private:
- AliEveTrackFitter(const AliEveTrackFitter&); // Not implemented
- AliEveTrackFitter& operator=(const AliEveTrackFitter&); // Not implemented
+public:
+ AliEveTrackFitter(const Text_t* name = "TrackFitter", Int_t nPoints=0);
+ virtual ~AliEveTrackFitter();
+
+ virtual void DestroyElements();
+
+ virtual void AddFitPoint(Int_t pointId); // slot for TEvePointSet::PointSelected() signal
+
+ virtual void Start();
+ virtual void Stop();
+ virtual void FitTrack();
+ virtual void Reset(Int_t nPoints=0, Int_t nIntIds=0);
+
+ Bool_t GetConnected() const { return fConnected; }
+ AliRieman* GetRieman() const { return fRieman; }
+
+ TGraph* GetGraphPicked() const { return fGraphPicked; }
+ TGraphErrors* GetGraphHelix() const { return fGraphHelix; }
+ void DrawDebugGraph();
+
protected:
TGraph *fGraphPicked; // graph of selected points debug info
TGraphErrors *fGraphHelix; // graph of fitted points for debug info
-public:
- AliEveTrackFitter(const Text_t* name = "TrackFitter", Int_t nPoints=0);
- virtual ~AliEveTrackFitter();
-
- virtual void DestroyElements();
-
- virtual void AddFitPoint(Int_t pointId); // slot for TEvePointSet::PointSelected() signal
-
- virtual void Start();
- virtual void Stop();
- virtual void FitTrack();
- virtual void Reset(Int_t nPoints=0, Int_t nIntIds=0);
-
- Bool_t GetConnected() const { return fConnected; }
- AliRieman* GetRieman() const { return fRieman; }
-
- TGraph* GetGraphPicked() const { return fGraphPicked; }
- TGraphErrors* GetGraphHelix() const { return fGraphHelix; }
- void DrawDebugGraph();
+private:
+ AliEveTrackFitter(const AliEveTrackFitter&); // Not implemented
+ AliEveTrackFitter& operator=(const AliEveTrackFitter&); // Not implemented
ClassDef(AliEveTrackFitter, 0); // Interface of TEvePointSet allowing helix fit.
};
class AliEveTrackFitterEditor : public TGedFrame
{
-private:
- AliEveTrackFitterEditor(const AliEveTrackFitterEditor&); // Not implemented
- AliEveTrackFitterEditor& operator=(const AliEveTrackFitterEditor&); // Not implemented
-
-protected:
- AliEveTrackFitter* fM; // fModel dynamic-casted to AliEveTrackFitterEditor
-
- TGTextButton* fFit; // button to fit selection
- TGTextButton* fReset; // button to reset selection
- TGTextButton* fStart; // button to connect to signal
- TGTextButton* fStop; // button to disconnect from signal
- TGTextButton* fGraph; // button to draw graph
-
public:
AliEveTrackFitterEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
virtual ~AliEveTrackFitterEditor() {}
void DoStop();
void DoGraph();
+protected:
+ AliEveTrackFitter* fM; // fModel dynamic-casted to AliEveTrackFitterEditor
+
+ TGTextButton* fFit; // button to fit selection
+ TGTextButton* fReset; // button to reset selection
+ TGTextButton* fStart; // button to connect to signal
+ TGTextButton* fStop; // button to disconnect from signal
+ TGTextButton* fGraph; // button to draw graph
+
+private:
+ AliEveTrackFitterEditor(const AliEveTrackFitterEditor&); // Not implemented
+ AliEveTrackFitterEditor& operator=(const AliEveTrackFitterEditor&); // Not implemented
+
ClassDef(AliEveTrackFitterEditor, 0); // Editor for AliEveTrackFitter class.
};
class AliEveVSDCreator : public TEveVSD
{
-private:
- AliEveVSDCreator(const AliEveVSDCreator&); // Not implemented
- AliEveVSDCreator& operator=(const AliEveVSDCreator&); // Not implemented
-
-protected:
- void MakeItsDigitsInfo();
- TEveMCRecCrossRef* GetGeninfo(Int_t label);
- AliTPCParam* GetTpcParam(const TEveException& eh);
-
- TString fDataDir; // Source data directory.
- Int_t fEvent; // Source event number.
-
- Float_t fTPCHitRes; // Resolution for storing TPC hits.
- Float_t fTRDHitRes; // Resolution for storing TRD hits.
-
- Int_t fDebugLevel; // Internal debug level.
-
- AliRunLoader *fRunLoader; // Internal run-loader.
-
- std::map<Int_t, TEveMCRecCrossRef*> fGenInfoMap; // Map label to MC-Rec cross-ref data structure.
-
public:
AliEveVSDCreator(const Text_t* name="AliEveVSDCreator", const Text_t* title="");
virtual ~AliEveVSDCreator() {}
Int_t GetDebugLevel() const { return fDebugLevel; }
void SetDebugLevel(Int_t dl) { fDebugLevel = dl; }
+protected:
+ void MakeItsDigitsInfo();
+ TEveMCRecCrossRef* GetGeninfo(Int_t label);
+ AliTPCParam* GetTpcParam(const TEveException& eh);
+
+ TString fDataDir; // Source data directory.
+ Int_t fEvent; // Source event number.
+
+ Float_t fTPCHitRes; // Resolution for storing TPC hits.
+ Float_t fTRDHitRes; // Resolution for storing TRD hits.
+
+ Int_t fDebugLevel; // Internal debug level.
+
+ AliRunLoader *fRunLoader; // Internal run-loader.
+
+ std::map<Int_t, TEveMCRecCrossRef*> fGenInfoMap; // Map label to MC-Rec cross-ref data structure.
+
+private:
+ AliEveVSDCreator(const AliEveVSDCreator&); // Not implemented
+ AliEveVSDCreator& operator=(const AliEveVSDCreator&); // Not implemented
+
ClassDef(AliEveVSDCreator, 0); // Create VSD file from ALICE data.
}; // endclass AliEveVSDCreator
class CascadeList;
class AliEveCascade : public TEveElement,
- public TPolyMarker3D
+ public TPolyMarker3D
{
-public:
- typedef std::vector<TEvePathMark*> vpPathMark_t;
-
-private:
friend class CascadeList;
- AliEveCascade(const AliEveCascade&); // Not implemented
- AliEveCascade& operator=(const AliEveCascade&); // Not implemented
-
-protected:
- typedef std::vector<TEvePathMark*>::iterator vpPathMark_i;
-
- TEveVector fV_neg; // Vertex of negative track
- TEveVector fP_neg; // Momentum of negative track
- TEveVector fV_pos; // Vertex of positive track
- TEveVector fP_pos; // Momentum of positive track
- TEveVector fV_bach; // Vertex of positive track
- TEveVector fP_bach; // Momentum of positive track
-
- TEveVector fV_decay; //decay point of the cascade
- TEveVector fV_birth; // Reconstructed birth point of neutral particle
-
- vpPathMark_t fPathMarksNeg;
- vpPathMark_t fPathMarksPos;
- vpPathMark_t fPathMarksBach;
- TEveTrackPropagator *fRnrStyle;
-
- TPolyLine3D fPolyLineNeg;
- TPolyLine3D fPolyLinePos;
- TPolyLine3D fPolyLineBach;
- TPolyLine3D fPolyLineV0; // line of AliEveV0 travel
- TPolyLine3D fPolyLineCas; // line of cascade travel
-
- Float_t fBeta_neg;
- Float_t fBeta_pos;
- Float_t fBeta_bach;
-
- Int_t fESDIndex;
-
- Float_t fDCA_v0_Bach;
- Float_t fCasCosPointingAngle;
- Float_t fCasDecayLength;
+public:
+ typedef std::vector<TEvePathMark*> vpPathMark_t;
- static const Float_t fgkMassPion2;
- static const Float_t fgkMassKaon2;
- static const Float_t fgkMassProton2;
- static const Float_t fgkMassLambda2;
-public:
AliEveCascade();
AliEveCascade(TEveTrackPropagator* rs);
virtual ~AliEveCascade();
Float_t GetOmegaMass() const;
Float_t GetAntiOmegaMass() const;
- ClassDef(AliEveCascade, 1); // Visual representation of a cascade.
-}; // endclass AliEveCascade
+
+protected:
+ typedef std::vector<TEvePathMark*>::iterator vpPathMark_i;
+
+ TEveVector fV_neg; // Vertex of negative track
+ TEveVector fP_neg; // Momentum of negative track
+ TEveVector fV_pos; // Vertex of positive track
+ TEveVector fP_pos; // Momentum of positive track
+ TEveVector fV_bach; // Vertex of positive track
+ TEveVector fP_bach; // Momentum of positive track
+
+ TEveVector fV_decay; //decay point of the cascade
+ TEveVector fV_birth; // Reconstructed birth point of neutral particle
+
+ vpPathMark_t fPathMarksNeg;
+ vpPathMark_t fPathMarksPos;
+ vpPathMark_t fPathMarksBach;
+ TEveTrackPropagator *fRnrStyle;
+
+ TPolyLine3D fPolyLineNeg;
+ TPolyLine3D fPolyLinePos;
+ TPolyLine3D fPolyLineBach;
+ TPolyLine3D fPolyLineV0; // line of AliEveV0 travel
+ TPolyLine3D fPolyLineCas; // line of cascade travel
+
+ Float_t fBeta_neg;
+ Float_t fBeta_pos;
+ Float_t fBeta_bach;
+
+ Int_t fESDIndex;
+
+ Float_t fDCA_v0_Bach;
+ Float_t fCasCosPointingAngle;
+ Float_t fCasDecayLength;
+
+ static const Float_t fgkMassPion2;
+ static const Float_t fgkMassKaon2;
+ static const Float_t fgkMassProton2;
+ static const Float_t fgkMassLambda2;
+
+private:
+ AliEveCascade(const AliEveCascade&); // Not implemented
+ AliEveCascade& operator=(const AliEveCascade&); // Not implemented
+
+ ClassDef(AliEveCascade, 0); // Visual representation of a cascade.
+};
class CascadeList : public TEveElementList
{
- CascadeList(const CascadeList&); // Not implemented
- CascadeList& operator=(const CascadeList&); // Not implemented
-
-private:
- void Init();
-
-protected:
- TString fTitle;
-
- TEveTrackPropagator *fRnrStyle;
-
- Bool_t fRnrBach;
- Bool_t fRnrV0Daughters;
- Bool_t fRnrV0vtx;
- Bool_t fRnrV0path;
- Bool_t fRnrCasVtx;
- Bool_t fRnrCasPath;
-
- Color_t fNegColor;
- Color_t fPosColor;
- Color_t fBachColor;
-
- static const Int_t fgkNcutVar = 14;
- TH1F *fHist[fgkNcutVar];
- Float_t fMin[fgkNcutVar];
- Float_t fMax[fgkNcutVar];
-
- static const Int_t fgkNcutVar2D = 1;
- TH2F *fHist2D[fgkNcutVar2D];
- Float_t fMinX[fgkNcutVar2D];
- Float_t fMinY[fgkNcutVar2D];
- Float_t fMaxX[fgkNcutVar2D];
- Float_t fMaxY[fgkNcutVar2D];
-
public:
CascadeList(TEveTrackPropagator* rs=0);
CascadeList(const Text_t* name, TEveTrackPropagator* rs=0);
void BachPtFilter(Float_t min, Float_t max);
void BachEtaFilter(Float_t min, Float_t max);
- //--------------------------------
+protected:
+ TString fTitle;
+
+ TEveTrackPropagator *fRnrStyle;
+
+ Bool_t fRnrBach;
+ Bool_t fRnrV0Daughters;
+ Bool_t fRnrV0vtx;
+ Bool_t fRnrV0path;
+ Bool_t fRnrCasVtx;
+ Bool_t fRnrCasPath;
+
+ Color_t fNegColor;
+ Color_t fPosColor;
+ Color_t fBachColor;
+
+ static const Int_t fgkNcutVar = 14;
+ TH1F *fHist[fgkNcutVar];
+ Float_t fMin[fgkNcutVar];
+ Float_t fMax[fgkNcutVar];
+
+ static const Int_t fgkNcutVar2D = 1;
+ TH2F *fHist2D[fgkNcutVar2D];
+ Float_t fMinX[fgkNcutVar2D];
+ Float_t fMinY[fgkNcutVar2D];
+ Float_t fMaxX[fgkNcutVar2D];
+ Float_t fMaxY[fgkNcutVar2D];
+
+private:
+ void Init();
+
+ CascadeList(const CascadeList&); // Not implemented
+ CascadeList& operator=(const CascadeList&); // Not implemented
- ClassDef(CascadeList, 1); // A list of AliEveCascade objects.
+ ClassDef(CascadeList, 0); // A list of AliEveCascade objects.
};
#endif
class CascadeListEditor : public TGedFrame
{
- CascadeListEditor(const CascadeListEditor&); // Not implemented
- CascadeListEditor& operator=(const CascadeListEditor&); // Not implemented
-
-protected:
- CascadeList* fMList; // fModel dynamic-casted to CascadeListEditor
-
- TGCheckButton* fRnrV0Daughters;
- TGCheckButton* fRnrV0path;
- TGCheckButton* fRnrVtx;
- TGCheckButton* fRnrBach;
- TGCheckButton* fRnrCasPath;
-
- TGTab *fMainTabA;
- TGTab *fMainTabB;
- TGTab *fTabA[3];
- TGTab *fTabB[3];
- static const Int_t fgkNRange = 14;
- TEveGDoubleValuator *fRange[fgkNRange];
-
- static const Int_t fgkNCanvas = 15;
- TRootEmbeddedCanvas *fCanvasA[fgkNCanvas];
- TRootEmbeddedCanvas *fCanvasB[fgkNCanvas];
-
- TGCompositeFrame* AddTab(TGTab *tab, Int_t i, Int_t can, char *name);
- TGCompositeFrame** CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t can);
-
- void UpdateAll(Int_t iCanA);
- void AddSelectTab();
- void AddSeeTab();
- void AddValuator(TGCompositeFrame* frame, char *name,
- Float_t min, Float_t max, Int_t pres, char *func,
- Int_t iHist);
-
-
public:
CascadeListEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
void BachPtRange();
void BachEtaRange();
- ClassDef(CascadeListEditor, 1); // Editor for CascadeList
-}; // endclass CascadeListEditor
+protected:
+ CascadeList* fMList; // fModel dynamic-casted to CascadeListEditor
+
+ TGCheckButton* fRnrV0Daughters;
+ TGCheckButton* fRnrV0path;
+ TGCheckButton* fRnrVtx;
+ TGCheckButton* fRnrBach;
+ TGCheckButton* fRnrCasPath;
+
+ TGTab *fMainTabA;
+ TGTab *fMainTabB;
+ TGTab *fTabA[3];
+ TGTab *fTabB[3];
+ static const Int_t fgkNRange = 14;
+ TEveGDoubleValuator *fRange[fgkNRange];
+
+ static const Int_t fgkNCanvas = 15;
+ TRootEmbeddedCanvas *fCanvasA[fgkNCanvas];
+ TRootEmbeddedCanvas *fCanvasB[fgkNCanvas];
+
+ TGCompositeFrame* AddTab(TGTab *tab, Int_t i, Int_t can, char *name);
+ TGCompositeFrame** CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t can);
+
+ void UpdateAll(Int_t iCanA);
+ void AddSelectTab();
+ void AddSeeTab();
+ void AddValuator(TGCompositeFrame* frame, char *name,
+ Float_t min, Float_t max, Int_t pres, char *func,
+ Int_t iHist);
+
+private:
+ CascadeListEditor(const CascadeListEditor&); // Not implemented
+ CascadeListEditor& operator=(const CascadeListEditor&); // Not implemented
+
+ ClassDef(CascadeListEditor, 0); // Editor for CascadeList
+};
#endif
{
friend class V0List;
- AliEveV0(const AliEveV0&); // Not implemented
- AliEveV0& operator=(const AliEveV0&); // Not implemented
-
public:
AliEveV0();
AliEveV0(TEveRecTrack* tNeg, TEveRecTrack* tPos, TEveRecV0* v0,
static const Float_t fgkMassPion2;
static const Float_t fgkMassProton2;
- ClassDef(AliEveV0, 1); // Visual representation of a AliEveV0.
-}; // endclass AliEveV0
+private:
+ AliEveV0(const AliEveV0&); // Not implemented
+ AliEveV0& operator=(const AliEveV0&); // Not implemented
+
+ ClassDef(AliEveV0, 0); // Visual representation of a AliEveV0.
+};
//______________________________________________________________________________
class V0List : public TEveElementList
{
- V0List(const V0List&); // Not implemented
- V0List& operator=(const V0List&); // Not implemented
-
public:
V0List();
V0List(TEveTrackPropagator* rs);
void PosEtaFilter(Float_t min, Float_t max);
void IndexFilter(Float_t min, Float_t max);
-
-private:
- void Init();
-
protected:
TString fTitle;
Float_t fMaxX[fgkNcutVar2D];
Float_t fMaxY[fgkNcutVar2D];
- ClassDef(V0List, 1); // A list of AliEveV0 objecs.
+private:
+ void Init();
+
+ V0List(const V0List&); // Not implemented
+ V0List& operator=(const V0List&); // Not implemented
+
+ ClassDef(V0List, 0); // A list of AliEveV0 objecs.
};
V0ListEditor(const V0ListEditor&); // Not implemented
V0ListEditor& operator=(const V0ListEditor&); // Not implemented
-protected:
- V0List* fMList; // fModel dynamic-casted to V0ListEditor
-
- TGCheckButton* fRnrV0sDaugh;
- TGCheckButton* fRnrV0vtx;
- TGCheckButton* fRnrV0path;
-
- TGTab *fMainTabA;
- TGTab *fMainTabB;
- TGTab *fTabA[3];
- TGTab *fTabB[3];
- static const Int_t fgkNRange = 13;
- TEveGDoubleValuator *fRange[fgkNRange];
-
- static const Int_t fgkNCanvas = 14;
- TRootEmbeddedCanvas *fCanvasA[fgkNCanvas];
- TRootEmbeddedCanvas *fCanvasB[fgkNCanvas];
-
- TGCompositeFrame* AddTab(TGTab *tab, Int_t i, Int_t can, char *name);
- TGCompositeFrame** CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t can);
-
- void UpdateAll(Int_t iCanA);
- void AddSelectTab();
- void AddSeeTab();
- void AddValuator(TGCompositeFrame* frame, char *name,
- Float_t min, Float_t max, Int_t pres, char *func,
- Int_t iHist);
-
-
public:
V0ListEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
void PosPtRange();
void PosEtaRange();
- ClassDef(V0ListEditor, 1); // Editor for V0List
-}; // endclass V0ListEditor
+protected:
+ V0List* fMList; // fModel dynamic-casted to V0ListEditor
+
+ TGCheckButton* fRnrV0sDaugh;
+ TGCheckButton* fRnrV0vtx;
+ TGCheckButton* fRnrV0path;
+
+ TGTab *fMainTabA;
+ TGTab *fMainTabB;
+ TGTab *fTabA[3];
+ TGTab *fTabB[3];
+ static const Int_t fgkNRange = 13;
+ TEveGDoubleValuator *fRange[fgkNRange];
+
+ static const Int_t fgkNCanvas = 14;
+ TRootEmbeddedCanvas *fCanvasA[fgkNCanvas];
+ TRootEmbeddedCanvas *fCanvasB[fgkNCanvas];
+
+ TGCompositeFrame* AddTab(TGTab *tab, Int_t i, Int_t can, char *name);
+ TGCompositeFrame** CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t can);
+
+ void UpdateAll(Int_t iCanA);
+ void AddSelectTab();
+ void AddSeeTab();
+ void AddValuator(TGCompositeFrame* frame, char *name,
+ Float_t min, Float_t max, Int_t pres, char *func,
+ Int_t iHist);
+
+ ClassDef(V0ListEditor, 0); // Editor for V0List
+};
#endif
class CLASS
{
-private:
- CLASS(const CLASS&); // Not implemented
- CLASS& operator=(const CLASS&); // Not implemented
-
-protected:
-
public:
CLASS();
virtual ~CLASS() {}
- ClassDef(CLASS, 1);
-}; // endclass CLASS
+protected:
+
+private:
+ CLASS(const CLASS&); // Not implemented
+ CLASS& operator=(const CLASS&); // Not implemented
+
+ ClassDef(CLASS, 0); // Short desc/purpose of CLASS
+};
}
/******************************************************************************/
class AliEveITSModuleSelection
{
-protected:
- Int_t fType; // Type of modules: 0 - SPD, 1 - SDD, 2 - SSD.
- Int_t fLayer; // Layer, 0 - inner SPD, 5 - outer SSD.
- Float_t fMinPhi; // Min phi.
- Float_t fMaxPhi; // Max phi.
- Float_t fMinTheta; // Min theta.
- Float_t fMaxTheta; // Max theta.
-
public:
AliEveITSModuleSelection();
virtual ~AliEveITSModuleSelection() {}
void SetPhiRange (Float_t x, Float_t y) { fMinPhi = x; fMaxPhi = y; }
void SetThetaRange(Float_t x, Float_t y) { fMinTheta = x; fMaxTheta = y; }
- ClassDef(AliEveITSModuleSelection, 1); // Helper for selecting a range of ITS modules by type, layer, phi and theta.
+protected:
+ Int_t fType; // Type of modules: 0 - SPD, 1 - SDD, 2 - SSD.
+ Int_t fLayer; // Layer, 0 - inner SPD, 5 - outer SSD.
+ Float_t fMinPhi; // Min phi.
+ Float_t fMaxPhi; // Max phi.
+ Float_t fMinTheta; // Min theta.
+ Float_t fMaxTheta; // Max theta.
+
+ ClassDef(AliEveITSModuleSelection, 0); // Helper for selecting a range of ITS modules by type, layer, phi and theta.
};
/******************************************************************************/
class AliEveITSDigitsInfo : public TObject, public TEveRefCnt
{
-private:
- AliEveITSDigitsInfo(const AliEveITSDigitsInfo&); // Not implemented
- AliEveITSDigitsInfo& operator=(const AliEveITSDigitsInfo&); // Not implemented
-
- Float_t fSPDZCoord[192]; // Precalculated z-coordinates for positions of digits.
-
- void InitInternals();
-
-protected:
- std::map<Int_t, TClonesArray*> fSPDmap; // Map from module-id to SPD data.
- std::map<Int_t, TClonesArray*> fSDDmap; // Map from module-id to SDD data.
- std::map<Int_t, TClonesArray*> fSSDmap; // Map from module-id to SSD data.
-
- void SetITSSegmentation();
-
public:
TTree* fTree; // Tree from which the digits are read.
virtual void Print(Option_t* opt="") const;
+protected:
+ std::map<Int_t, TClonesArray*> fSPDmap; // Map from module-id to SPD data.
+ std::map<Int_t, TClonesArray*> fSDDmap; // Map from module-id to SDD data.
+ std::map<Int_t, TClonesArray*> fSSDmap; // Map from module-id to SSD data.
+
+ void SetITSSegmentation();
+
+private:
+ Float_t fSPDZCoord[192]; // Precalculated z-coordinates for positions of digits.
+
+ void InitInternals();
+
+ AliEveITSDigitsInfo(const AliEveITSDigitsInfo&); // Not implemented
+ AliEveITSDigitsInfo& operator=(const AliEveITSDigitsInfo&); // Not implemented
+
ClassDef(AliEveITSDigitsInfo, 0); // Stores ITS geometry information and event-data in format suitable for visualization.
}; // endclass AliEveITSDigitsInfo
class AliEveITSModule : public TEveQuadSet
{
- AliEveITSModule(const AliEveITSModule&); // Not implemented
- AliEveITSModule& operator=(const AliEveITSModule&); // Not implemented
-
-protected:
- AliEveITSDigitsInfo* fInfo; // Source of geometry and data.
-
- Int_t fID; // Module id.
- Int_t fDetID; // Detector id (0~SPD, 1~SDD, 2~SSD).
-
- Int_t fLayer; // Layer (0 - 5).
- Int_t fLadder; // Ladder.
- Int_t fDet; // Detector.
-
- Float_t fDx; // Digit half-size in x.
- Float_t fDz; // Digit half-size in z.
- Float_t fDy; // Digit half-size in y.
-
- static Bool_t fgStaticInitDone; // Flag for static variable initialization.
-
public:
AliEveITSModule(const Text_t* n="AliEveITSModule", const Text_t* t=0);
AliEveITSModule(Int_t gid, AliEveITSDigitsInfo* info);
static TEveRGBAPalette *fgSDDPalette; // Signal to color mapping for SDD.
static TEveRGBAPalette *fgSSDPalette; // Signal to color mapping for SSD.
- ClassDef(AliEveITSModule, 1); // Visualization of an ITS module.
+protected:
+ AliEveITSDigitsInfo* fInfo; // Source of geometry and data.
+
+ Int_t fID; // Module id.
+ Int_t fDetID; // Detector id (0~SPD, 1~SDD, 2~SSD).
+
+ Int_t fLayer; // Layer (0 - 5).
+ Int_t fLadder; // Ladder.
+ Int_t fDet; // Detector.
+
+ Float_t fDx; // Digit half-size in x.
+ Float_t fDz; // Digit half-size in z.
+ Float_t fDy; // Digit half-size in y.
+
+ static Bool_t fgStaticInitDone; // Flag for static variable initialization.
+
+private:
+ AliEveITSModule(const AliEveITSModule&); // Not implemented
+ AliEveITSModule& operator=(const AliEveITSModule&); // Not implemented
+
+ ClassDef(AliEveITSModule, 0); // Visualization of an ITS module.
};
#endif
friend class ITSModuleStepperGL;
public:
+
typedef std::vector<UInt_t> vpInt_t;
typedef std::vector<UInt_t>::iterator vpInt_i;
-private:
- vpInt_t fIDs; // Vector of module IDs to be displayed.
- UInt_t fPosition; // Position of top corner ITS module in vector fIDs.
- AliEveITSModuleStepper(const AliEveITSModuleStepper&); // Not implemented
- AliEveITSModuleStepper& operator=(const AliEveITSModuleStepper&); // Not implemented
+ AliEveITSModuleStepper(AliEveITSDigitsInfo* di);
+ virtual ~AliEveITSModuleStepper();
+
+ // external functions
+ void DisplayDet(Int_t det, Int_t layer = -1);
+ void DisplayTheta(Float_t min, Float_t max);
+
+ // overlay functions
+ virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
+ virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec,
+ Event_t* event);
+ virtual void MouseLeave();
+ virtual void Render(TGLRnrCtx& rnrCtx);
+
+ // stepper
+ TEveGridStepper* GetStepper() { return fStepper; }
+ void SetStepper(TEveGridStepper* s) { fStepper = s; Apply(); }
+
+ Int_t GetCurrentPage() const;
+ Int_t GetPages();
+ void Start();
+ void Next();
+ void Previous();
+ void End();
+ void Apply();
+ void Capacity();
+
+ // getters/setters
+ Color_t GetWColor() const { return fWCol; }
+ void SetWColor(Color_t c) { fWCol = c; }
+ TGLText* GetFont() { return fText; }
+ void SetGLText(TGLText* t) { fText = t; }
+
protected:
+
AliEveITSDigitsInfo *fDigitsInfo; // Source of data and geometry.
AliEveDigitScaleInfo *fScaleInfo; // Parameters for digit-scaling.
Int_t fSubDet; // Sub-det, 0~SPD, 1~SDD, 2~SSD.
void ResetList() { fIDs.clear();}
void SetFirst(Int_t first);
-public:
- AliEveITSModuleStepper(AliEveITSDigitsInfo* di);
- virtual ~AliEveITSModuleStepper();
-
- // external functions
- void DisplayDet(Int_t det, Int_t layer = -1);
- void DisplayTheta(Float_t min, Float_t max);
-
- // overlay functions
- virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
- virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec,
- Event_t* event);
- virtual void MouseLeave();
- virtual void Render(TGLRnrCtx& rnrCtx);
-
- // stepper
- TEveGridStepper* GetStepper() { return fStepper; }
- void SetStepper(TEveGridStepper* s) { fStepper = s; Apply(); }
-
- Int_t GetCurrentPage() const;
- Int_t GetPages();
- void Start();
- void Next();
- void Previous();
- void End();
- void Apply();
- void Capacity();
+private:
+ vpInt_t fIDs; // Vector of module IDs to be displayed.
+ UInt_t fPosition; // Position of top corner ITS module in vector fIDs.
- // getters/setters
- Color_t GetWColor() const { return fWCol; }
- void SetWColor(Color_t c) { fWCol = c; }
- TGLText* GetFont() { return fText; }
- void SetGLText(TGLText* t) { fText = t; }
+ AliEveITSModuleStepper(const AliEveITSModuleStepper&); // Not implemented
+ AliEveITSModuleStepper& operator=(const AliEveITSModuleStepper&); // Not implemented
ClassDef(AliEveITSModuleStepper, 0); // Display scaled ITS modules in a paged layout, also providing GL-overaly control GUI.
};
class AliEveITSModuleStepperEditor : public TGedFrame
{
-private:
- AliEveITSModuleStepperEditor(const AliEveITSModuleStepperEditor&); // Not implemented
- AliEveITSModuleStepperEditor& operator=(const AliEveITSModuleStepperEditor&); // Not implemented
-
-protected:
- AliEveITSModuleStepper *fM; // Model object.
-
- TEveGridStepperSubEditor *fStepper; // GUI component for grid-stepper control.
-
public:
AliEveITSModuleStepperEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
virtual ~AliEveITSModuleStepperEditor() {}
void UpdateStepper();
+protected:
+ AliEveITSModuleStepper *fM; // Model object.
+
+ TEveGridStepperSubEditor *fStepper; // GUI component for grid-stepper control.
+
+private:
+ AliEveITSModuleStepperEditor(const AliEveITSModuleStepperEditor&); // Not implemented
+ AliEveITSModuleStepperEditor& operator=(const AliEveITSModuleStepperEditor&); // Not implemented
+
ClassDef(AliEveITSModuleStepperEditor, 0); // Editor for AliEveITSModuleStepper.
};
public:
enum StatType_e { kSTOccup, kSTAverage, kSTRms };
- // Bool_t fAutoUpdatePalette;
-private:
- AliEveDigitScaleInfo(const AliEveDigitScaleInfo&); // Not implemented
- AliEveDigitScaleInfo& operator=(const AliEveDigitScaleInfo&); // Not implemented
-
-protected:
- Int_t fScale; // Current scale.
- Int_t fStatType; // Digit scaling algorithm, see StatType_e.
-
- Bool_t fSyncPalette; // Synchronize palette on next usage.
-
-public:
AliEveDigitScaleInfo();
virtual ~AliEveDigitScaleInfo() {}
Bool_t GetSyncPalette() const { return fSyncPalette; }
void SetSyncPalette(Bool_t x) { fSyncPalette = x; }
- ClassDef(AliEveDigitScaleInfo, 1);
+protected:
+ Int_t fScale; // Current scale.
+ Int_t fStatType; // Digit scaling algorithm, see StatType_e.
+
+ Bool_t fSyncPalette; // Synchronize palette on next usage.
+
+private:
+ AliEveDigitScaleInfo(const AliEveDigitScaleInfo&); // Not implemented
+ AliEveDigitScaleInfo& operator=(const AliEveDigitScaleInfo&); // Not implemented
+
+ ClassDef(AliEveDigitScaleInfo, 0);
};
/******************************************************************************/
friend class ITSSDSubEditor;
public:
+ AliEveITSScaledModule(Int_t gid, AliEveITSDigitsInfo* info, AliEveDigitScaleInfo* si );
+ virtual ~AliEveITSScaledModule();
+
+ virtual void DigitSelected(Int_t idx);
+
+ virtual void LoadQuads();
+ void SetQuadValues();
+
+ void SyncPalette();
+
+ void GetScaleData(Int_t& cnx, Int_t& cnz, Int_t& total) const;
+ AliEveDigitScaleInfo* GetScaleInfo() { return fScaleInfo; }
+
+
+ // --- Inner structs
+
struct ScaledDigit_t : public TObject
{
public:
void Dump() const;
};
-private:
- std::map<Int_t, ScaledDigit_t> fDigitsMap;
-
- AliEveITSScaledModule(const AliEveITSScaledModule&); // Not implemented
- AliEveITSScaledModule& operator=(const AliEveITSScaledModule&); // Not implemented
-
protected:
Int_t fNx; // per module
Int_t fNz;
AliEveDigitScaleInfo* fScaleInfo;
-public:
- AliEveITSScaledModule(Int_t gid, AliEveITSDigitsInfo* info, AliEveDigitScaleInfo* si );
- virtual ~AliEveITSScaledModule();
-
- virtual void DigitSelected(Int_t idx);
-
- virtual void LoadQuads();
- void SetQuadValues();
-
- void SyncPalette();
+private:
+ std::map<Int_t, ScaledDigit_t> fDigitsMap;
- void GetScaleData(Int_t& cnx, Int_t& cnz, Int_t& total) const;
- AliEveDigitScaleInfo* GetScaleInfo() { return fScaleInfo; }
+ AliEveITSScaledModule(const AliEveITSScaledModule&); // Not implemented
+ AliEveITSScaledModule& operator=(const AliEveITSScaledModule&); // Not implemented
- ClassDef(AliEveITSScaledModule, 1); // Visualization of an ITS module with digits aggregated on a grid of pre-defined size.
-}; // endclass AliEveITSScaledModule
+ ClassDef(AliEveITSScaledModule, 0); // Visualization of an ITS module with digits aggregated on a grid of pre-defined size.
+};
#endif
class AliEveITSScaledModuleEditor : public TGedFrame
{
-private:
- AliEveITSScaledModuleEditor(const AliEveITSScaledModuleEditor&); // Not implemented
- AliEveITSScaledModuleEditor& operator=(const AliEveITSScaledModuleEditor&); // Not implemented
+public:
+ AliEveITSScaledModuleEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
+ virtual ~AliEveITSScaledModuleEditor() {}
- void CreateInfoFrame();
+ virtual void SetModel(TObject* obj);
+
+ void DoScale();
+ void DoStatType(Int_t t);
protected:
AliEveITSScaledModule *fModule; // Model object.
TGLabel *fInfoLabel0; // Info text.
TGLabel *fInfoLabel1; // Info text.
-public:
- AliEveITSScaledModuleEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
- virtual ~AliEveITSScaledModuleEditor() {}
-
- virtual void SetModel(TObject* obj);
+private:
+ void CreateInfoFrame();
- void DoScale();
- void DoStatType(Int_t t);
+ AliEveITSScaledModuleEditor(const AliEveITSScaledModuleEditor&); // Not implemented
+ AliEveITSScaledModuleEditor& operator=(const AliEveITSScaledModuleEditor&); // Not implemented
ClassDef(AliEveITSScaledModuleEditor, 0); // Editor for AliEveITSScaledModule.
};
friend class AliEveMUONChamberGL;
friend class AliEveMUONChamberEditor;
- AliEveMUONChamber(const AliEveMUONChamber&); // Not implemented
- AliEveMUONChamber& operator=(const AliEveMUONChamber&); // Not implemented
+public:
+ AliEveMUONChamber(Int_t id, const Text_t* n = "AliEveMUONChamber", const Text_t* t = 0);
+ virtual ~AliEveMUONChamber();
+
+ virtual void ComputeBBox();
+ virtual void Paint(Option_t* option = "");
+ virtual UInt_t IncRTS() { return ++fRTS; };
+ virtual Bool_t CanEditMainColor() const { return kTRUE; }
+
+ void SetDataSource(AliEveMUONData *data);
+ void SetChamberID(Int_t id);
+ void SetFrameColor(Color_t col) { fFrameColor = col; IncRTS(); };
+ AliEveMUONData* GetData() const { return fMUONData; };
+ AliEveMUONChamberData* GetChamberData() const;
+ Int_t GetID() const { return fChamberID; };
+ void SetThreshold(Short_t t);
+ void SetMaxVal(Int_t mv);
+ void SetClusterSize(Int_t size);
+ void SetHitSize(Int_t size);
protected:
void UpdateQuads();
void ColorFromArray(Int_t val, UChar_t* pix) const;
Int_t ColorIndex(Int_t val) const;
-public:
- AliEveMUONChamber(Int_t id, const Text_t* n = "AliEveMUONChamber", const Text_t* t = 0);
- virtual ~AliEveMUONChamber();
-
- virtual void ComputeBBox();
- virtual void Paint(Option_t* option = "");
- virtual UInt_t IncRTS() { return ++fRTS; };
- virtual Bool_t CanEditMainColor() const { return kTRUE; }
+private:
+ AliEveMUONChamber(const AliEveMUONChamber&); // Not implemented
+ AliEveMUONChamber& operator=(const AliEveMUONChamber&); // Not implemented
- void SetDataSource(AliEveMUONData *data);
- void SetChamberID(Int_t id);
- void SetFrameColor(Color_t col) { fFrameColor = col; IncRTS(); };
- AliEveMUONData* GetData() const { return fMUONData; };
- AliEveMUONChamberData* GetChamberData() const;
- Int_t GetID() const { return fChamberID; };
- void SetThreshold(Short_t t);
- void SetMaxVal(Int_t mv);
- void SetClusterSize(Int_t size);
- void SetHitSize(Int_t size);
+ ClassDef(AliEveMUONChamber, 0); // Visualisation of the MUON chambers
+};
- ClassDef(AliEveMUONChamber,1); // Visualisation of the MUON chambers
-};
+// --- Inlines ---
inline UChar_t* AliEveMUONChamber::ColorFromArray(Int_t val) const
{
class AliEveMUONChamberData : public TObject
{
- AliEveMUONChamberData(const AliEveMUONChamberData&); // Not implemented
- AliEveMUONChamberData& operator=(const AliEveMUONChamberData&); // Not implemented
-
-private:
- static AliMUONGeometryTransformer* fgTransformer; // geometry transformer
-
-protected:
-
- Int_t fChamberID; // number of the chamber, 0 to 13
- Float_t fFrameCoord[26][5]; // detector elements frames
- Int_t fNDetElem; // number of detector elements
- Int_t fNDigits; // number of found digits (times 7)
- Int_t fNClusters; // number of found rec points
- Int_t fNHits; // number of simulation hits
- Float_t fDigitBuffer[7*4096]; // digits coordinates, etc.
- Float_t fClusterBuffer[5*256]; // cluster coordinates, etc.
- Float_t fHitBuffer[3*256]; // hits coordinates
- Float_t fChamberBox[6]; // chamber envelope box
-
public:
AliEveMUONChamberData(Int_t chamber);
virtual ~AliEveMUONChamberData();
- void DropData();
+ void DropData();
void Init(Int_t chamber);
Float_t* GetChamberBox() { return &fChamberBox[0]; };
- ClassDef(AliEveMUONChamberData,1); // class with data for one chamber
+protected:
+
+ Int_t fChamberID; // number of the chamber, 0 to 13
+ Float_t fFrameCoord[26][5]; // detector elements frames
+ Int_t fNDetElem; // number of detector elements
+ Int_t fNDigits; // number of found digits (times 7)
+ Int_t fNClusters; // number of found rec points
+ Int_t fNHits; // number of simulation hits
+ Float_t fDigitBuffer[7*4096]; // digits coordinates, etc.
+ Float_t fClusterBuffer[5*256]; // cluster coordinates, etc.
+ Float_t fHitBuffer[3*256]; // hits coordinates
+ Float_t fChamberBox[6]; // chamber envelope box
+
+
+private:
+
+ static AliMUONGeometryTransformer* fgTransformer; // geometry transformer
+
+ AliEveMUONChamberData(const AliEveMUONChamberData&); // Not implemented
+ AliEveMUONChamberData& operator=(const AliEveMUONChamberData&); // Not implemented
+
+ ClassDef(AliEveMUONChamberData, 0); // class with data for one chamber
};
#endif
class AliEveMUONChamberEditor : public TGedFrame
{
- AliEveMUONChamberEditor(const AliEveMUONChamberEditor&); // Not implemented
- AliEveMUONChamberEditor& operator=(const AliEveMUONChamberEditor&); // Not implemented
-
-protected:
- AliEveMUONChamber* fM; // fModel dynamic-casted to AliEveMUONChamberEditor
-
- TEveGValuator *fThreshold; // digit ADC min
- TEveGValuator *fMaxVal; // digit ADC max
- TEveGValuator *fClusterSize; // cluster point size
- TEveGValuator *fHitSize; // hit point size
-
- public:
+public:
AliEveMUONChamberEditor(const TGWindow* p = 0,
- Int_t width = 170, Int_t height = 30,
- UInt_t options = kChildFrame,
- Pixel_t back = GetDefaultFrameBackground());
+ Int_t width = 170, Int_t height = 30,
+ UInt_t options = kChildFrame,
+ Pixel_t back = GetDefaultFrameBackground());
virtual ~AliEveMUONChamberEditor();
void DoClusterSize();
void DoHitSize();
- ClassDef(AliEveMUONChamberEditor, 0); // Editor for AliEveMUONChamber
+protected:
+ AliEveMUONChamber* fM; // fModel dynamic-casted to AliEveMUONChamberEditor
+ TEveGValuator *fThreshold; // digit ADC min
+ TEveGValuator *fMaxVal; // digit ADC max
+ TEveGValuator *fClusterSize; // cluster point size
+ TEveGValuator *fHitSize; // hit point size
+
+private:
+ AliEveMUONChamberEditor(const AliEveMUONChamberEditor&); // Not implemented
+ AliEveMUONChamberEditor& operator=(const AliEveMUONChamberEditor&); // Not implemented
+
+ ClassDef(AliEveMUONChamberEditor, 0); // Editor for AliEveMUONChamber
};
#endif
class TEveQuadSetGL;
-
class AliEveMUONChamber;
class AliEveMUONChamberGL : public TGLObject
{
- AliEveMUONChamberGL(const AliEveMUONChamberGL&); // Not implemented
- AliEveMUONChamberGL& operator=(const AliEveMUONChamberGL&); // Not implemented
+public:
+ AliEveMUONChamberGL();
+ virtual ~AliEveMUONChamberGL();
+
+ virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
+ virtual void SetBBox();
- protected:
+protected:
virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
void DrawChamberFrame() const;
void DrawQuads(TGLRnrCtx& rnrCtx) const;
mutable UInt_t fRTS; // render time stamp
- public:
- AliEveMUONChamberGL();
- virtual ~AliEveMUONChamberGL();
-
- virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
- virtual void SetBBox();
-
- ClassDef(AliEveMUONChamberGL,1); // the GL drawing class of one chamber
+private:
+ AliEveMUONChamberGL(const AliEveMUONChamberGL&); // Not implemented
+ AliEveMUONChamberGL& operator=(const AliEveMUONChamberGL&); // Not implemented
+ ClassDef(AliEveMUONChamberGL, 0); // the GL drawing class of one chamber
};
#endif
class AliRawReader;
-
class AliEveMUONChamberData;
class AliEveMUONData : public TObject, public TEveRefCnt
{
-
- protected:
-
- std::vector<AliEveMUONChamberData*> fChambers; // vector of 14 chambers
-
- static AliRawReader* fgRawReader; // raw reader
-
- Int_t fNTrackList; // number of MC tracks which have hits
- Int_t fTrackList[256]; // list of MC tracks which have hits
-
- public:
+public:
AliEveMUONData();
virtual ~AliEveMUONData();
AliEveMUONChamberData* GetChamberData(Int_t chamber);
- ClassDef(AliEveMUONData,1); // Manages MUON data for one event
+protected:
+
+ std::vector<AliEveMUONChamberData*> fChambers; // vector of 14 chambers
+
+ static AliRawReader *fgRawReader; // raw reader
+
+ Int_t fNTrackList; // number of MC tracks which have hits
+ Int_t fTrackList[256]; // list of MC tracks which have hits
+
+ ClassDef(AliEveMUONData, 0); // Manages MUON data for one event
};
class AliEveMUONTrack: public TEveTrack
{
-
- AliEveMUONTrack(const AliEveMUONTrack&); // Not implemented
- AliEveMUONTrack& operator=(const AliEveMUONTrack&); // Not implemented
-
public:
AliEveMUONTrack(TEveRecTrack* t, TEveTrackPropagator* rs);
private:
+ AliEveMUONTrack(const AliEveMUONTrack&); // Not implemented
+ AliEveMUONTrack& operator=(const AliEveMUONTrack&); // Not implemented
+
AliMUONTrack *fTrack; // pointer to the MUON track
TParticle *fPart; // pointer to the MC particle
Int_t fCount; // track points counter
static AliMagF *fgFieldMap; // pointer to the magnetic field map
- ClassDef(AliEveMUONTrack, 1); // Produce TEveUtil:TEveTrack from AliMUONTrack
+ ClassDef(AliEveMUONTrack, 0); // Produce TEveUtil:TEveTrack from AliMUONTrack
};
#endif
class AliEvePMDModule : public TEveQuadSet
{
-private:
- AliEvePMDModule(const AliEvePMDModule&); // Not implemented
- AliEvePMDModule& operator=(const AliEvePMDModule&); // Not implemented
+public:
+ AliEvePMDModule();
+ virtual ~AliEvePMDModule();
- void RectGeomCellPos(Int_t ism, Int_t irow, Int_t icol,
- Float_t &xpos, Float_t &ypos);
- void GenerateBox(Int_t ism, Float_t &xism, Float_t &yism,
- Float_t &dxism, Float_t &dyism);
+ static Int_t GetPRETotPads() { return fgPreTotPads; }
+ static Int_t GetCPVTotPads() { return fgCpvTotPads; }
+ static Int_t GetPRETotAdc() { return fgPreTotAdc; }
+ static Int_t GetCPVTotAdc() { return fgCpvTotAdc; }
+
+ Int_t GetNPads() const { return fNPads; }
+ Int_t GetAdc() const { return fAdc; }
+ TH1F *GetHisto() const { return fH1; }
+
+ void DisplayInit(Int_t ism);
+ void DisplayDigitsData(Int_t ism, TTree *pmdt);
+ void DisplayRawData(Int_t ism, TObjArray *ddlcont);
+ void SetPosition(Float_t x, Float_t y, Float_t z);
protected:
TH1F* fH1; // histogram
static Int_t fgPreTotAdc; // total pre signal
static Int_t fgCpvTotAdc; // total cpv signal
-public:
- AliEvePMDModule();
- virtual ~AliEvePMDModule();
-
- static Int_t GetPRETotPads() { return fgPreTotPads; }
- static Int_t GetCPVTotPads() { return fgCpvTotPads; }
- static Int_t GetPRETotAdc() { return fgPreTotAdc; }
- static Int_t GetCPVTotAdc() { return fgCpvTotAdc; }
-
- Int_t GetNPads() const { return fNPads; }
- Int_t GetAdc() const { return fAdc; }
- TH1F *GetHisto() const { return fH1; }
+private:
+ void RectGeomCellPos(Int_t ism, Int_t irow, Int_t icol,
+ Float_t &xpos, Float_t &ypos);
+ void GenerateBox(Int_t ism, Float_t &xism, Float_t &yism,
+ Float_t &dxism, Float_t &dyism);
- void DisplayInit(Int_t ism);
- void DisplayDigitsData(Int_t ism, TTree *pmdt);
- void DisplayRawData(Int_t ism, TObjArray *ddlcont);
- void SetPosition(Float_t x, Float_t y, Float_t z);
+ AliEvePMDModule(const AliEvePMDModule&); // Not implemented
+ AliEvePMDModule& operator=(const AliEvePMDModule&); // Not implemented
- ClassDef(AliEvePMDModule, 1);
+ ClassDef(AliEvePMDModule, 0);
}; // endclass AliEvePMDModule
#endif
class AliEvePMDModuleEditor : public TGedFrame
{
-private:
- AliEvePMDModuleEditor(const AliEvePMDModuleEditor&); // Not implemented
- AliEvePMDModuleEditor& operator=(const AliEvePMDModuleEditor&); // Not implemented
+public:
+ AliEvePMDModuleEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
+ virtual ~AliEvePMDModuleEditor() {}
- void CreateInfoFrame();
+ virtual void SetModel(TObject* obj);
+ void DisplayHistos();
protected:
AliEvePMDModule* fM; // Model object.
TGLabel* fInfoLabel4; // label
TGLabel* fInfoLabel5; // label
-public:
- AliEvePMDModuleEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
- virtual ~AliEvePMDModuleEditor() {}
+private:
+ void CreateInfoFrame();
- virtual void SetModel(TObject* obj);
- void DisplayHistos();
+ AliEvePMDModuleEditor(const AliEvePMDModuleEditor&); // Not implemented
+ AliEvePMDModuleEditor& operator=(const AliEvePMDModuleEditor&); // Not implemented
ClassDef(AliEvePMDModuleEditor, 0); // Editor for AliEvePMDModule
};
class AliEveT0Module : public TEveQuadSet
{
-private:
- AliEveT0Module(const AliEveT0Module&);
- AliEveT0Module& operator=(const AliEveT0Module&);
-
public:
AliEveT0Module(const Text_t* n="AliEveT0Module", Int_t sigType=0, AliT0digit *digits=0,AliT0RawReader *start=0);
virtual ~AliEveT0Module() {}
AliT0digit *fDigits; // Digits.
AliT0RawReader *fStart; // Reader.
- ClassDef(AliEveT0Module, 0);
+private:
+ AliEveT0Module(const AliEveT0Module&);
+ AliEveT0Module& operator=(const AliEveT0Module&);
+
+ ClassDef(AliEveT0Module, 0); // Representation of a T0 module.
};
#endif
class AliEveTOFDigitsInfo : public TObject, public TEveRefCnt
- {
- AliEveTOFDigitsInfo(const AliEveTOFDigitsInfo&); // Not implemented
- AliEveTOFDigitsInfo& operator=(const AliEveTOFDigitsInfo&); // Not implemented
+{
+public:
+ TTree* fTree;
+ TTree* fNewTree;
+ AliTOFGeometry* fGeom;
+ AliTOFDigitMap* fTOFdigitMap;
+
+ AliEveTOFDigitsInfo();
+ virtual ~AliEveTOFDigitsInfo();
- private:
-
- protected:
-
- void SetTOFSegmentation();
-
- public:
- TTree* fTree;
- TTree* fNewTree;
- AliTOFGeometry* fGeom;
- AliTOFDigitMap* fTOFdigitMap;
-
- AliEveTOFDigitsInfo();
- virtual ~AliEveTOFDigitsInfo();
-
- void SetTree(TTree* tree);
- void ReadRaw(AliRawReader* rawReader, Int_t nEvent, Bool_t newDecoder=kTRUE);
- void LoadDigits();
-
- void GetDigits(Int_t nSector, Int_t nPlate, Int_t nStrip,
- Int_t nPadZ, Int_t nPadX,
- Int_t indexDigit[3]);
- TClonesArray* GetDigits(Int_t nSector, Int_t nPlate, Int_t nStrip);
- TClonesArray* GetDigits(Int_t nSector);
-
- Int_t IsStripFilled(Int_t iSector, Int_t iPlate, Int_t iStrip);
- Int_t GetTOFInfos() const;
- //void GetDigits();
-
- TTree* GetTree() {return fTree;};
-
-
- ClassDef(AliEveTOFDigitsInfo, 1);
- }; // endclass AliEveTOFDigitsInfo
+ void SetTree(TTree* tree);
+ void ReadRaw(AliRawReader* rawReader, Int_t nEvent, Bool_t newDecoder=kTRUE);
+ void LoadDigits();
+
+ void GetDigits(Int_t nSector, Int_t nPlate, Int_t nStrip,
+ Int_t nPadZ, Int_t nPadX,
+ Int_t indexDigit[3]);
+ TClonesArray* GetDigits(Int_t nSector, Int_t nPlate, Int_t nStrip);
+ TClonesArray* GetDigits(Int_t nSector);
+
+ Int_t IsStripFilled(Int_t iSector, Int_t iPlate, Int_t iStrip);
+ Int_t GetTOFInfos() const;
+ //void GetDigits();
+
+ TTree* GetTree() { return fTree; }
+
+protected:
+ void SetTOFSegmentation();
+
+private:
+ AliEveTOFDigitsInfo(const AliEveTOFDigitsInfo&); // Not implemented
+ AliEveTOFDigitsInfo& operator=(const AliEveTOFDigitsInfo&); // Not implemented
+
+ ClassDef(AliEveTOFDigitsInfo, 0);
+}; // endclass AliEveTOFDigitsInfo
#endif
// fXYZZ->Connect("SignalName()", "AliEveTOFDigitsInfoEditor", this, "DoXYZZ()");
}
-AliEveTOFDigitsInfoEditor::~AliEveTOFDigitsInfoEditor()
-{}
-
/******************************************************************************/
void AliEveTOFDigitsInfoEditor::SetModel(TObject* obj)
class TGNumberEntry;
class TGColorSelect;
-
class AliEveTOFDigitsInfo;
class AliEveTOFDigitsInfoEditor : public TGedFrame
{
-private:
- AliEveTOFDigitsInfoEditor(const AliEveTOFDigitsInfoEditor&); // Not implemented
- AliEveTOFDigitsInfoEditor& operator=(const AliEveTOFDigitsInfoEditor&); // Not implemented
-
-protected:
- AliEveTOFDigitsInfo* fM; // fModel dynamic-casted to AliEveTOFDigitsInfoEditor
-
- // Declare widgets
- // TGSomeWidget* fXYZZ;
-
public:
AliEveTOFDigitsInfoEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
- virtual ~AliEveTOFDigitsInfoEditor();
+ virtual ~AliEveTOFDigitsInfoEditor() {}
virtual void SetModel(TObject* obj);
- // Declare callback/slot methods
- // void DoXYZZ();
+protected:
+ AliEveTOFDigitsInfo* fM; // Model object.
+
+private:
+ AliEveTOFDigitsInfoEditor(const AliEveTOFDigitsInfoEditor&); // Not implemented
+ AliEveTOFDigitsInfoEditor& operator=(const AliEveTOFDigitsInfoEditor&); // Not implemented
ClassDef(AliEveTOFDigitsInfoEditor, 0); // Editor for AliEveTOFDigitsInfo
-}; // endclass AliEveTOFDigitsInfoEditor
+};
#endif
#include <AliTOFGeometry.h>
- class AliEveTOFSector : public TEveQuadSet
-
- {
- AliEveTOFSector(const AliEveTOFSector&); // Not implemented
- AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
+class AliEveTOFSector : public TEveQuadSet
+{
+public:
+ AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
+ AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
+
+ AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
+ TClonesArray *tofArray);
+ AliEveTOFSector(TGeoManager *localGeoManager,
+ Int_t nSector, TTree *tofTree);
+ virtual ~AliEveTOFSector();
+
+ virtual void InitModule();
+ virtual void SetTrans();
+
+ static Bool_t fgStaticInitDone;
+ static void InitStatics();
+
+ void SetSectorID(Int_t id);
+ void SetAutoTrans(Bool_t r){fAutoTrans=r;};
+ void SetThreshold(Short_t t);
+ void SetMaxVal(Int_t mv);
+ Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
+ Short_t GetThreshold() const {return fThreshold;};
+ Int_t GetMaxVal() const {return fMaxVal;};
+ Bool_t GetAutoTrans() const {return fAutoTrans;};
+ Int_t GetSectorID() const {return fSectorID;};
+ virtual void DigitSelected(Int_t idx);
+ ///////////////////////////////////////////
+
+ void SetPlate(Int_t nPlate, Bool_t r);
+
+ static TEveFrameBox *fgTOFsectorFrameBox;
+ static TEveRGBAPalette *fgTOFsectorPalette;
- //Int_t fSectorID;
- private:
-
- void LoadQuads();
+protected:
+ AliTOFGeometry *fTOFgeometry;
- protected:
+ TClonesArray *fTOFarray;
+ TTree *fTOFtree;
- AliTOFGeometry *fTOFgeometry;
+ Int_t fSector;
+ //Int_t fPlate;
+ //Int_t fStrip;
- TClonesArray *fTOFarray;
- TTree *fTOFtree;
+ Float_t fDx;
+ Float_t fDy;
+ Float_t fDz;
+ ///////////////////////////////
- Int_t fSector;
- //Int_t fPlate;
- //Int_t fStrip;
+ Bool_t fAutoTrans;
+ //Int_t fMinTime;
+ //Int_t fMaxTime;
+ Short_t fThreshold;
+ Int_t fMaxVal;
+ Int_t fSectorID;
+ Bool_t *fPlateFlag;
- Float_t fDx;
- Float_t fDy;
- Float_t fDz;
- ///////////////////////////////
+ //Bool_t fPlateFlag0;
+ //Bool_t fPlateFlag1;
+ //Bool_t fPlateFlag2;
+ //Bool_t fPlateFlag3;
+ //Bool_t fPlateFlag4;
- Bool_t fAutoTrans;
- //Int_t fMinTime;
- //Int_t fMaxTime;
- Short_t fThreshold;
- Int_t fMaxVal;
- Int_t fSectorID;
- Bool_t *fPlateFlag;
+ //Color_t fFrameColor;
+ //Bool_t fRnrFrame;
- //Bool_t fPlateFlag0;
- //Bool_t fPlateFlag1;
- //Bool_t fPlateFlag2;
- //Bool_t fPlateFlag3;
- //Bool_t fPlateFlag4;
+ TGeoManager *fGeoManager;
- //Color_t fFrameColor;
- //Bool_t fRnrFrame;
+private:
+ void LoadQuads();
- TGeoManager *fGeoManager;
+ AliEveTOFSector(const AliEveTOFSector&); // Not implemented
+ AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
- public:
- // Bool_t fAutoTrans;
-
- virtual void InitModule();
- virtual void SetTrans();
- AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
- AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
-
- AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
- TClonesArray *tofArray);
- AliEveTOFSector(TGeoManager *localGeoManager,
- Int_t nSector, TTree *tofTree);
- virtual ~AliEveTOFSector();
-
- static Bool_t fgStaticInitDone;
- static void InitStatics();
-
- void SetSectorID(Int_t id);
- void SetAutoTrans(Bool_t r){fAutoTrans=r;};
- void SetThreshold(Short_t t);
- void SetMaxVal(Int_t mv);
- Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
- Short_t GetThreshold() const {return fThreshold;};
- Int_t GetMaxVal() const {return fMaxVal;};
- Bool_t GetAutoTrans() const {return fAutoTrans;};
- Int_t GetSectorID() const {return fSectorID;};
- virtual void DigitSelected(Int_t idx);
- ///////////////////////////////////////////
-
- void SetPlate(Int_t nPlate, Bool_t r);
-
- static TEveFrameBox *fgTOFsectorFrameBox;
- static TEveRGBAPalette *fgTOFsectorPalette;
-
- ClassDef(AliEveTOFSector, 1);
- };
+ ClassDef(AliEveTOFSector, 0); // Representation of a TOF sector.
+};
#endif
class AliEveTOFSectorEditor : public TGedFrame
{
-private:
- AliEveTOFSectorEditor(const AliEveTOFSectorEditor&); // Not implemented
- AliEveTOFSectorEditor& operator=(const AliEveTOFSectorEditor&); // Not implemented
-
-protected:
- AliEveTOFSector* fM; // Model object.
-
- TEveGValuator* fSectorID;
-
- TGCheckButton* fAutoTrans;
-
- TGCheckButton** fPlate;
-
- TGCheckButton* fPlate0;
- TGCheckButton* fPlate1;
- TGCheckButton* fPlate2;
- TGCheckButton* fPlate3;
- TGCheckButton* fPlate4;
-
- TEveGValuator* fThreshold;
- TEveGValuator* fMaxVal;
-
public:
AliEveTOFSectorEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
void DoThreshold();
void DoMaxVal();
+protected:
+ AliEveTOFSector* fM; // Model object.
+
+ TEveGValuator* fSectorID; // Valuator for sector id.
+
+ TGCheckButton* fAutoTrans; // Check-button for automatic translation.
+
+ TGCheckButton** fPlate; // Check-buttons for plates.
+
+ TGCheckButton* fPlate0; // Check-button for plate 0.
+ TGCheckButton* fPlate1; // Check-button for plate 1.
+ TGCheckButton* fPlate2; // Check-button for plate 2.
+ TGCheckButton* fPlate3; // Check-button for plate 3.
+ TGCheckButton* fPlate4; // Check-button for plate 4.
+
+ TEveGValuator* fThreshold; // Valuator for threshold.
+ TEveGValuator* fMaxVal; // Valuator for maximum value.
+
+private:
+ AliEveTOFSectorEditor(const AliEveTOFSectorEditor&); // Not implemented
+ AliEveTOFSectorEditor& operator=(const AliEveTOFSectorEditor&); // Not implemented
+
ClassDef(AliEveTOFSectorEditor, 0); // Editor for AliEveTOFSector
-}; // endclass AliEveTOFSectorEditor
+};
#endif
class AliEveTOFStrip : public TEveQuadSet
{
- AliEveTOFStrip(const AliEveTOFStrip&); // Not implemented
- AliEveTOFStrip& operator=(const AliEveTOFStrip&); // Not implemented
-
-private:
- void LoadQuads();
-
protected:
AliTOFGeometry *fTOFgeometry;
TClonesArray *tofArray);
virtual ~AliEveTOFStrip();
- static Bool_t fgStaticInitDone;
- static void InitStatics();
-
void SetThreshold(Short_t t);
void SetMaxVal(Int_t mv);
- Short_t GetThreshold() const {return fThreshold;};
- Int_t GetMaxVal() const {return fMaxVal;};
+ Short_t GetThreshold() const { return fThreshold; }
+ Int_t GetMaxVal() const { return fMaxVal; }
virtual void DigitSelected(Int_t idx);
- static TEveFrameBox* fgTOFstripFrameBox;
+protected:
+ static Bool_t fgStaticInitDone; // Has initialization of static variables been done.
+ static void InitStatics(); // Initialize static variables.
+
+ static TEveFrameBox *fgTOFstripFrameBox; // Shared box-frame for all strips.
+ static TEveRGBAPalette *fgTOFstripPalette; // Shared palette.
- static TEveRGBAPalette* fgTOFstripPalette;
+private:
+ void LoadQuads();
+
+ AliEveTOFStrip(const AliEveTOFStrip&); // Not implemented
+ AliEveTOFStrip& operator=(const AliEveTOFStrip&); // Not implemented
- ClassDef(AliEveTOFStrip, 1);
+ ClassDef(AliEveTOFStrip, 0); // Representation of a TOF strip.
};
#endif
ClassImp(AliEveTOFStripEditor)
AliEveTOFStripEditor::AliEveTOFStripEditor(const TGWindow *p, Int_t width, Int_t height,
- UInt_t options, Pixel_t back) :
+ UInt_t options, Pixel_t back) :
TGedFrame(p, width, height, options | kVerticalFrame, back),
fM (0),
fThreshold (0),
}
-AliEveTOFStripEditor::~AliEveTOFStripEditor()
-{}
-
/******************************************************************************/
void AliEveTOFStripEditor::SetModel(TObject* obj)
class AliEveTOFStripEditor : public TGedFrame
{
-private:
- AliEveTOFStripEditor(const AliEveTOFStripEditor&); // Not implemented
- AliEveTOFStripEditor& operator=(const AliEveTOFStripEditor&); // Not implemented
-
-protected:
- AliEveTOFStrip* fM; // fModel dynamic-casted to AliEveTOFStripEditor
-
- // Declare widgets
- // TGSomeWidget* fXYZZ;
-
- TEveGValuator* fThreshold;
- TEveGValuator* fMaxVal;
-
public:
AliEveTOFStripEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
- virtual ~AliEveTOFStripEditor();
+ virtual ~AliEveTOFStripEditor() {}
virtual void SetModel(TObject* obj);
+
void DoThreshold();
void DoMaxVal();
- // Declare callback/slot methods
- // void DoXYZZ();
+protected:
+ AliEveTOFStrip *fM; // Model object.
+
+ TEveGValuator *fThreshold; // Value widget for threshold.
+ TEveGValuator *fMaxVal; // Value widget for maximal value.
+
+private:
+ AliEveTOFStripEditor(const AliEveTOFStripEditor&); // Not implemented
+ AliEveTOFStripEditor& operator=(const AliEveTOFStripEditor&); // Not implemented
ClassDef(AliEveTOFStripEditor, 0); // Editor for AliEveTOFStrip
}; // endclass AliEveTOFStripEditor
continue;
}
- AliEveTPCSectorData::PadRowHack* prh = secData->GetPadRowHack(row, pad);
- if (prh != 0) {
- threshold = prh->fThrExt + Short_t(prh->fThrFac*fLoadThreshold);
- } else {
- threshold = fLoadThreshold;
- }
+ threshold = fLoadThreshold;
secData->BeginPad(row, pad, kTRUE);
inFill = kTRUE;
class AliEveTPCData : public TObject, public TEveRefCnt
{
-private:
- AliEveTPCData(const AliEveTPCData&); // Not implemented
- AliEveTPCData& operator=(const AliEveTPCData&); // Not implemented
-
-protected:
- std::vector<AliEveTPCSectorData*> fSectors; // Vector of sector-data.
- Int_t fSectorBlockSize; // Block-size of sector-data.
- Short_t fLoadThreshold; // Threshold at load-time.
- Short_t fLoadPedestal; // Pedestal at load-time.
- Bool_t fAutoPedestal; // If true determine pedestals automatically for each pad.
-
public:
AliEveTPCData();
virtual ~AliEveTPCData();
void LoadDigits(TTree* tree, Bool_t spawnSectors=kTRUE);
void LoadRaw(AliTPCRawStream& input, Bool_t spawnSectors=kTRUE, Bool_t warn=kFALSE);
- ClassDef(AliEveTPCData, 1); // Manages TPC data for an event.
-}; // endclass AliEveTPCData
+protected:
+ std::vector<AliEveTPCSectorData*> fSectors; // Vector of sector-data.
+ Int_t fSectorBlockSize; // Block-size of sector-data.
+ Short_t fLoadThreshold; // Threshold at load-time.
+ Short_t fLoadPedestal; // Pedestal at load-time.
+ Bool_t fAutoPedestal; // If true determine pedestals automatically for each pad.
+
+private:
+ AliEveTPCData(const AliEveTPCData&); // Not implemented
+ AliEveTPCData& operator=(const AliEveTPCData&); // Not implemented
+
+ ClassDef(AliEveTPCData, 0); // Manages TPC data for an event.
+};
#endif
{
friend class AliEveTPCLoaderEditor;
- AliEveTPCLoader(const AliEveTPCLoader&); // Not implemented
- AliEveTPCLoader& operator=(const AliEveTPCLoader&); // Not implemented
-
-protected:
- TString fFile; // File holding raw-data.
- Int_t fEvent; // Current event.
- Bool_t fDoubleSR; // Set to true for double sampling-rate.
-
- TString fTPCEquipementMap; // Equipement-map file-name, if set passed to raw-reader.
- AliRawReaderRoot *fReader; // Raw-data reader.
- AliEveTPCData *fData; // TPC data container.
-
- std::vector<AliEveTPCSector2D*> fSec2Ds; // 2D sector representations.
- std::vector<AliEveTPCSector3D*> fSec3Ds; // 3D sector representations.
-
- Bool_t fSetInitSectorParams; // If true, initial parameters of 2D and 3D sectors are set from values below.
- Int_t fInitMinTime; // Min time for display.
- Int_t fInitMaxTime; // Max time for display.
- Int_t fInitThreshold; // Threshold.
- Int_t fInitMaxVal; // Maximum-signal value (all signals above mapped to saturation color).
-
public:
AliEveTPCLoader(const Text_t* n="AliEveTPCLoader", const Text_t* t=0);
virtual ~AliEveTPCLoader();
void SetInitParams(Int_t mint, Int_t maxt, Int_t thr, Int_t maxval=128);
- ClassDef(AliEveTPCLoader, 1); // Front-end for stand-alone inspection of TPC raw-data.
-}; // endclass AliEveTPCLoader
+protected:
+ TString fFile; // File holding raw-data.
+ Int_t fEvent; // Current event.
+ Bool_t fDoubleSR; // Set to true for double sampling-rate.
+
+ TString fTPCEquipementMap; // Equipement-map file-name, if set passed to raw-reader.
+ AliRawReaderRoot *fReader; // Raw-data reader.
+ AliEveTPCData *fData; // TPC data container.
+
+ std::vector<AliEveTPCSector2D*> fSec2Ds; // 2D sector representations.
+ std::vector<AliEveTPCSector3D*> fSec3Ds; // 3D sector representations.
+
+ Bool_t fSetInitSectorParams; // If true, initial parameters of 2D and 3D sectors are set from values below.
+ Int_t fInitMinTime; // Min time for display.
+ Int_t fInitMaxTime; // Max time for display.
+ Int_t fInitThreshold; // Threshold.
+ Int_t fInitMaxVal; // Maximum-signal value (all signals above mapped to saturation color).
+
+private:
+ AliEveTPCLoader(const AliEveTPCLoader&); // Not implemented
+ AliEveTPCLoader& operator=(const AliEveTPCLoader&); // Not implemented
+
+ ClassDef(AliEveTPCLoader, 0); // Front-end for stand-alone inspection of TPC raw-data.
+};
#endif
AliEveTPCLoaderEditor(const AliEveTPCLoaderEditor&); // Not implemented
AliEveTPCLoaderEditor& operator=(const AliEveTPCLoaderEditor&); // Not implemented
-protected:
- AliEveTPCLoader *fM; // Model object.
-
- TGTextEntry *fFile; // Text entry for file-name.
- TGTextButton *fOpenFile; // Button to open the file.
-
- TEveGValuator *fEvent; // Valueator for event number.
- TGCheckButton *fDoubleSR; // Check-box for double sampling-rate.
-
- // AliEveTPCData loading settings
- TEveGValuator *fDataLoadThreshold; // Valuator for threshold.
- TEveGValuator *fDataLoadPedestal; // Valuator for pedestal.
- TGCheckButton *fDataAutoPedestal; // Check-box for auto pedestal.
-
- TGTextButton *fUpdateSectors; // Button to update sectors.
- TGTextButton *fReloadSectors; // Button to reload sectors.
- TGTextButton *fCreateSectors3D; // Button to create 3D sectors.
- TGTextButton *fDeleteSectors3D; // Button to delete 3D sectors.
-
public:
AliEveTPCLoaderEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
void DoCreateSectors3D();
void DoDeleteSectors3D();
+protected:
+ AliEveTPCLoader *fM; // Model object.
+
+ TGTextEntry *fFile; // Text entry for file-name.
+ TGTextButton *fOpenFile; // Button to open the file.
+
+ TEveGValuator *fEvent; // Valueator for event number.
+ TGCheckButton *fDoubleSR; // Check-box for double sampling-rate.
+
+ // AliEveTPCData loading settings
+ TEveGValuator *fDataLoadThreshold; // Valuator for threshold.
+ TEveGValuator *fDataLoadPedestal; // Valuator for pedestal.
+ TGCheckButton *fDataAutoPedestal; // Check-box for auto pedestal.
+
+ TGTextButton *fUpdateSectors; // Button to update sectors.
+ TGTextButton *fReloadSectors; // Button to reload sectors.
+ TGTextButton *fCreateSectors3D; // Button to create 3D sectors.
+ TGTextButton *fDeleteSectors3D; // Button to delete 3D sectors.
+
ClassDef(AliEveTPCLoaderEditor, 0); // Editor for AliEveTPCLoader.
};
friend class AliEveTPCSector2DGL;
friend class AliEveTPCSector2DEditor;
-protected:
- Bool_t fShowMax; // Show maximum signal-value in time range.
- Bool_t fAverage; // Show average signal value in time range.
-
- Bool_t fUseTexture; // Use texture to draw each segment.
- Bool_t fPickEmpty; // Pick also empty pads.
- Int_t fPickMode; // Pick mode: 0-print, 1-1dhisto of pad, 2-2dhisto of padrow.
-
public:
AliEveTPCSector2D(const Text_t* n="AliEveTPCSector2D", const Text_t* t=0);
virtual ~AliEveTPCSector2D() {}
virtual void Paint(Option_t* option="");
- ClassDef(AliEveTPCSector2D, 1); // Visualization of TPC raw-data in 2D.
-}; // endclass AliEveTPCSector2D
+protected:
+ Bool_t fShowMax; // Show maximum signal-value in time range.
+ Bool_t fAverage; // Show average signal value in time range.
+
+ Bool_t fUseTexture; // Use texture to draw each segment.
+ Bool_t fPickEmpty; // Pick also empty pads.
+ Int_t fPickMode; // Pick mode: 0-print, 1-1dhisto of pad, 2-2dhisto of padrow.
+
+ ClassDef(AliEveTPCSector2D, 0); // Visualization of TPC raw-data in 2D.
+};
#endif
class AliEveTPCSector2DEditor : public TGedFrame
{
- AliEveTPCSector2DEditor(const AliEveTPCSector2DEditor&); // Not implemented
- AliEveTPCSector2DEditor& operator=(const AliEveTPCSector2DEditor&); // Not implemented
-
-protected:
- AliEveTPCSector2D *fM; // Model object.
-
- TGCheckButton *fShowMax; // Check to show maximum signal.
- TGCheckButton *fAverage; // Check-box to show average of the signal.
-
- TGCheckButton *fUseTexture; // Check-box to use texture.
- TGCheckButton *fPickEmpty; // Check-box for picking of empty pads.
- TGComboBox *fPickMode; // Selector of pick-mode.
-
public:
AliEveTPCSector2DEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
void DoPickEmpty();
void DoPickMode(Int_t mode);
+protected:
+ AliEveTPCSector2D *fM; // Model object.
+
+ TGCheckButton *fShowMax; // Check to show maximum signal.
+ TGCheckButton *fAverage; // Check-box to show average of the signal.
+
+ TGCheckButton *fUseTexture; // Check-box to use texture.
+ TGCheckButton *fPickEmpty; // Check-box for picking of empty pads.
+ TGComboBox *fPickMode; // Selector of pick-mode.
+
+private:
+ AliEveTPCSector2DEditor(const AliEveTPCSector2DEditor&); // Not implemented
+ AliEveTPCSector2DEditor& operator=(const AliEveTPCSector2DEditor&); // Not implemented
+
ClassDef(AliEveTPCSector2DEditor, 0); // Editor for AliEveTPCSector2D.
};
class AliEveTPCSector2DGL : public TGLObject
{
- AliEveTPCSector2DGL(const AliEveTPCSector2DGL&); // Not implemented
- AliEveTPCSector2DGL& operator=(const AliEveTPCSector2DGL&); // Not implemented
+public:
+ AliEveTPCSector2DGL();
+ virtual ~AliEveTPCSector2DGL();
+
+ virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
+ virtual void SetBBox();
+ virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
+
+ virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
+
+ static void TraceStepsUp (const AliEveTPCSectorData::SegmentInfo& s);
+ static void TraceStepsDown(const AliEveTPCSectorData::SegmentInfo& s);
protected:
virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
static const Int_t fgkTextureHeight; // Height of the texture.
static const Int_t fgkTextureByteSize; // Size of the texture in bytes.
-public:
- AliEveTPCSector2DGL();
- virtual ~AliEveTPCSector2DGL();
-
- virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
- virtual void SetBBox();
- virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
-
- virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
-
- static void TraceStepsUp (const AliEveTPCSectorData::SegmentInfo& s);
- static void TraceStepsDown(const AliEveTPCSectorData::SegmentInfo& s);
+private:
+ AliEveTPCSector2DGL(const AliEveTPCSector2DGL&); // Not implemented
+ AliEveTPCSector2DGL& operator=(const AliEveTPCSector2DGL&); // Not implemented
ClassDef(AliEveTPCSector2DGL, 0); // GL renderer for AliEveTPCSector2D.
};
friend class AliEveTPCSector3DEditor;
friend class AliEveTPCSector3DGL;
+public:
+ AliEveTPCSector3D(const Text_t* n="AliEveTPCSector3D", const Text_t* t=0);
+ virtual ~AliEveTPCSector3D() {}
+
+ void SetPointFrac(Float_t f) { fPointFrac = f; IncRTS(); }
+ void SetPointSize(Float_t s) { fPointSize = s; }
+
+ void SetDriftVel(Float_t v) { fDriftVel = v; IncRTS(); }
+ void SetZStep(Float_t step) { fZStep = step; IncRTS(); }
+
+ virtual void SetRnrFrame(Bool_t rf);
+
+ virtual void ComputeBBox();
+ virtual void Paint(Option_t* option="");
+
protected:
void LoadPadrow(AliEveTPCSectorData::RowIterator& iter,
Float_t sx, Float_t sy, Float_t pw, Float_t ph);
Float_t fDriftVel; // Drift velocity for 'z' coordinate.
Float_t fZStep; // Z width of a time-bin.
-public:
- AliEveTPCSector3D(const Text_t* n="AliEveTPCSector3D", const Text_t* t=0);
- virtual ~AliEveTPCSector3D() {}
-
- void SetPointFrac(Float_t f) { fPointFrac = f; IncRTS(); }
- void SetPointSize(Float_t s) { fPointSize = s; }
-
- void SetDriftVel(Float_t v) { fDriftVel = v; IncRTS(); }
- void SetZStep(Float_t step) { fZStep = step; IncRTS(); }
-
- virtual void SetRnrFrame(Bool_t rf);
-
- virtual void ComputeBBox();
- virtual void Paint(Option_t* option="");
-
- ClassDef(AliEveTPCSector3D, 1); // Visualization of TPC raw-data in 3D.
+ ClassDef(AliEveTPCSector3D, 0); // Visualization of TPC raw-data in 3D.
};
#endif
class AliEveTPCSector3DEditor : public TGedFrame
{
- AliEveTPCSector3DEditor(const AliEveTPCSector3DEditor&); // Not implemented
- AliEveTPCSector3DEditor& operator=(const AliEveTPCSector3DEditor&); // Not implemented
-
-protected:
- AliEveTPCSector3D *fM; // Model object.
-
- TGCheckButton *fRnrFrame; // Check-box for frame rendering.
- TEveGValuator *fDriftVel; // Valuator for drift velocity.
-
- TEveGValuator *fPointFrac; // Valuator for signal fraction displayed as points.
- TEveGValuator *fPointSize; // Size of point in GL.
public:
AliEveTPCSector3DEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
void DoPointFrac();
void DoPointSize();
+protected:
+ AliEveTPCSector3D *fM; // Model object.
+
+ TGCheckButton *fRnrFrame; // Check-box for frame rendering.
+ TEveGValuator *fDriftVel; // Valuator for drift velocity.
+
+ TEveGValuator *fPointFrac; // Valuator for signal fraction displayed as points.
+ TEveGValuator *fPointSize; // Size of point in GL.
+
+private:
+ AliEveTPCSector3DEditor(const AliEveTPCSector3DEditor&); // Not implemented
+ AliEveTPCSector3DEditor& operator=(const AliEveTPCSector3DEditor&); // Not implemented
+
ClassDef(AliEveTPCSector3DEditor, 0); // Editor for AliEveTPCSector3D.
-}; // endclass AliEveTPCSector3DEditor
+};
#endif
class AliEveTPCSector3DGL : public TGLObject
{
- AliEveTPCSector3DGL(const AliEveTPCSector3DGL&); // Not implemented
- AliEveTPCSector3DGL& operator=(const AliEveTPCSector3DGL&); // Not implemented
-
-protected:
- AliEveTPCSector3D *fSector; // Model object.
- TEveBoxSetGL *fBoxRnr; // Box-set GL renderer.
-
- mutable UInt_t fRTS; // Rendering time-stamp.
-
- virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
-
public:
AliEveTPCSector3DGL();
virtual ~AliEveTPCSector3DGL();
virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
+protected:
+ AliEveTPCSector3D *fSector; // Model object.
+ TEveBoxSetGL *fBoxRnr; // Box-set GL renderer.
+
+ mutable UInt_t fRTS; // Rendering time-stamp.
+
+ virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
+
+private:
+ AliEveTPCSector3DGL(const AliEveTPCSector3DGL&); // Not implemented
+ AliEveTPCSector3DGL& operator=(const AliEveTPCSector3DGL&); // Not implemented
+
ClassDef(AliEveTPCSector3DGL, 0); // GL renderer for AliEveTPCSector3D.
};
AliEveTPCSectorData::AliEveTPCSectorData(Int_t sector, Int_t bsize) :
fSectorID(sector), fNPadsFilled(0), fPads(),
fkBlockSize(bsize), fBlockPos(0), fBlocks(),
- fCurrentRow(0), fCurrentPad(0), fCurrentPos(0), fCurrentStep(0),
- fPadRowHackSet(0)
+ fCurrentRow(0), fCurrentPad(0), fCurrentPos(0), fCurrentStep(0)
{
// Constructor.
for (std::vector<Short_t*>::iterator b=fBlocks.begin(); b!=fBlocks.end(); ++b)
delete [] *b;
- DeletePadRowHack();
}
void AliEveTPCSectorData::DropData()
memset(fYStep, sizeof(fYStep), 0);
}
-
-/******************************************************************************/
-// AliEveTPCSectorData::PadRowHack
-/******************************************************************************/
-
-AliEveTPCSectorData::PadRowHack* AliEveTPCSectorData::GetPadRowHack(Int_t r, Int_t p)
-{
- // Get PadRowHack applicable to given row and pad.
-
- if (fPadRowHackSet == 0) return 0;
- std::set<PadRowHack>* hs = static_cast<std::set<PadRowHack>*>(fPadRowHackSet);
- std::set<PadRowHack>::iterator i = hs->find(PadRowHack(r,p));
- return (i == hs->end()) ? 0 : const_cast<PadRowHack*>(&*i);
-}
-
-void AliEveTPCSectorData::AddPadRowHack(Int_t r, Int_t p, Int_t te, Float_t tf)
-{
- // Register PadRowHack for given row and pad.
-
- if (fPadRowHackSet == 0) fPadRowHackSet = new std::set<PadRowHack>;
-
- PadRowHack* prh = GetPadRowHack(r, p);
- if (prh == 0) {
- std::set<PadRowHack>* hs = static_cast<std::set<PadRowHack>*>(fPadRowHackSet);
- hs->insert(PadRowHack(r, p, te, tf));
- } else {
- prh->fThrExt += te;
- prh->fThrFac *= tf;
- }
-}
-
-void AliEveTPCSectorData::RemovePadRowHack(Int_t r, Int_t p)
-{
- // Remove PadRowHack for given row and pad.
-
- if (fPadRowHackSet == 0) return;
- std::set<PadRowHack>*hs = static_cast<std::set<PadRowHack>*>(fPadRowHackSet);
- std::set<PadRowHack>::iterator i = hs->find(PadRowHack(r,p));
- if (i != hs->end()) hs->erase(i);
-}
-
-void AliEveTPCSectorData::DeletePadRowHack()
-{
- // Delete all PadRowHacks and their container.
-
- if (fPadRowHackSet != 0) {
- std::set<PadRowHack>*hs = static_cast<std::set<PadRowHack>*>(fPadRowHackSet);
- delete hs;
- fPadRowHackSet = 0;
- }
-}
class AliEveTPCSectorData : public TObject
{
- AliEveTPCSectorData(const AliEveTPCSectorData&); // Not implemented
- AliEveTPCSectorData& operator=(const AliEveTPCSectorData&); // Not implemented
-
public:
+ // --- Inner classes ---
class PadData
{
- protected:
- Short_t* fData; // Data for given pad.
- Short_t fLength; // Length of pad-data.
-
public:
PadData(Short_t* d=0, Short_t l=0) : fData(d), fLength(l) {}
void SetDataLength(Short_t* d, Short_t l) { fData = d; fLength = l; }
void Print(Option_t* opt="");
+
+ protected:
+ Short_t* fData; // Data for given pad.
+ Short_t fLength; // Length of pad-data.
};
class PadIterator
{
- protected:
- Short_t *fBeg, *fEnd; // Begin and end of data.
- Short_t *fPos; // Current position.
- Short_t fTime, fSignal; // Current time and signal.
- Short_t fThreshold; // Threshold for data iteration.
- Short_t fNChunk; // Number of contiguous signals still to read.
-
public:
PadIterator(const PadData& pd, Short_t thr=0) :
fBeg(pd.Data()), fEnd(pd.Data() + pd.Length()), fPos(pd.Data()),
void SetThreshold(Short_t t) { fThreshold = t; }
void Test();
+
+ protected:
+ Short_t *fBeg, *fEnd; // Begin and end of data.
+ Short_t *fPos; // Current position.
+ Short_t fTime, fSignal; // Current time and signal.
+ Short_t fThreshold; // Threshold for data iteration.
+ Short_t fNChunk; // Number of contiguous signals still to read.
};
class RowIterator : public PadIterator
{
- protected:
- const PadData *fPadArray; // Pointer to array of pad-data.
- Short_t fNPads; // Number of pads in row.
- Short_t fPad; // Current pad.
-
public:
RowIterator(const PadData* first, Short_t npads, Short_t thr=0) :
PadIterator(*first, thr),
void ResetRow(const PadData* first, Short_t npads);
Short_t TEvePad() const { return fPad; }
+
+ protected:
+ const PadData *fPadArray; // Pointer to array of pad-data.
+ Short_t fNPads; // Number of pads in row.
+ Short_t fPad; // Current pad.
};
class SegmentInfo : public TObject
{
friend class AliEveTPCSectorData;
- private:
- Float_t fPadWidth; // Width of pad in this segment.
- Float_t fPadHeight; // Height of pad in this segment.
- Float_t fRLow; // Radius at the bottom of first row.
- Int_t fNRows; // Number of rows in this segment.
- Int_t fFirstRow; // First row index within sector.
- Int_t fLastRow; // Last row index within sector.
- Int_t fNMaxPads; // Maximum number of pads in a row.
- Int_t fNYSteps; // Number of steps in pad-count.
- Float_t fYStep[64]; // Y coords where pad-count changes.
-
public:
SegmentInfo();
Int_t GetNYSteps() const { return fNYSteps; }
Float_t GetYStep(Int_t step) const { return fYStep[step]; }
+ private:
+ Float_t fPadWidth; // Width of pad in this segment.
+ Float_t fPadHeight; // Height of pad in this segment.
+ Float_t fRLow; // Radius at the bottom of first row.
+ Int_t fNRows; // Number of rows in this segment.
+ Int_t fFirstRow; // First row index within sector.
+ Int_t fLastRow; // Last row index within sector.
+ Int_t fNMaxPads; // Maximum number of pads in a row.
+ Int_t fNYSteps; // Number of steps in pad-count.
+ Float_t fYStep[64]; // Y coords where pad-count changes.
+
ClassDef(SegmentInfo, 0);
};
-private:
- static AliTPCParam *fgParam; // Global TPC parameters.
- static Float_t fgZLength; // Z-length of a sector.
- static Int_t fgNAllRows; // Number of rows in all segments.
- static Int_t fgNAllPads; // Number of pads in all segments.
- static Int_t *fgRowBegs; // Ids of pads at row-beginnings.
-
- static SegmentInfo fgInnSeg; // Geometry information for inner segment.
- static SegmentInfo fgOut1Seg; // Geometry information for middle segment.
- static SegmentInfo fgOut2Seg; // Geometry information for outer segment.
-
- static SegmentInfo* fgSegInfoPtrs[3]; // Array of geometry information objects, for access by segment id.
-
-protected:
- Int_t fSectorID; // Sector id.
- Int_t fNPadsFilled; // Number of filled pads.
- std::vector<PadData> fPads; // Vector of pad-data.
-
- // Blocks of pad-data.
- const Int_t fkBlockSize; // Size of pad-data block.
- Int_t fBlockPos; // Position in current block.
- std::vector<Short_t*> fBlocks; // Vector of blocks.
-
- void NewBlock();
-
+ // --- Interface ---
- // Intermediate buffer/vars used during filling of pad-data.
- Short_t fPadBuffer[2048]; // Buffer for current pad.
- Int_t fCurrentRow; // Current row.
- Int_t fCurrentPad; // Current pad.
- Int_t fCurrentPos; // Current position in pad-buffer.
- Int_t fCurrentStep; // Step, can be -2 or +2, depending on fill direction.
-
- Int_t PadIndex(Int_t row, Int_t pad) const { return fgRowBegs[row] + pad; }
-
-public:
AliEveTPCSectorData(Int_t sector, Int_t bsize=65536);
virtual ~AliEveTPCSectorData();
static void InitStatics();
- //----------------------------------------------------------------
- // Hack for noisy pad-row removal
- //----------------------------------------------------------------
+protected:
+ Int_t fSectorID; // Sector id.
+ Int_t fNPadsFilled; // Number of filled pads.
+ std::vector<PadData> fPads; // Vector of pad-data.
- class PadRowHack
- {
- public:
- Int_t fRow, fPad; // For which row, pad we hack.
- Int_t fThrExt; // Additional treshold
- Float_t fThrFac; // Additional threshold factor.
- // Actual threshold = fThrExt + fThrFac*thr
-
- PadRowHack(Int_t r, Int_t p, Int_t te=0, Float_t tf=1) :
- fRow(r), fPad(p), fThrExt(te), fThrFac(tf) {}
- bool operator<(const PadRowHack& a) const
- { return (fRow == a.fRow) ? fPad < a.fPad : fRow < a.fRow; }
- };
+ // Blocks of pad-data.
+ const Int_t fkBlockSize; // Size of pad-data block.
+ Int_t fBlockPos; // Position in current block.
+ std::vector<Short_t*> fBlocks; // Vector of blocks.
+
+ void NewBlock();
- PadRowHack* GetPadRowHack(Int_t r, Int_t p);
- void AddPadRowHack(Int_t r, Int_t p, Int_t te=0, Float_t tf=1);
- void RemovePadRowHack(Int_t r, Int_t p);
- void DeletePadRowHack();
-protected:
- void* fPadRowHackSet; // Pointer to set of PadRowHacks.
+ // Intermediate buffer/vars used during filling of pad-data.
+ Short_t fPadBuffer[2048]; // Buffer for current pad.
+ Int_t fCurrentRow; // Current row.
+ Int_t fCurrentPad; // Current pad.
+ Int_t fCurrentPos; // Current position in pad-buffer.
+ Int_t fCurrentStep; // Step, can be -2 or +2, depending on fill direction.
+
+ Int_t PadIndex(Int_t row, Int_t pad) const { return fgRowBegs[row] + pad; }
+private:
+ static AliTPCParam *fgParam; // Global TPC parameters.
+ static Float_t fgZLength; // Z-length of a sector.
+ static Int_t fgNAllRows; // Number of rows in all segments.
+ static Int_t fgNAllPads; // Number of pads in all segments.
+ static Int_t *fgRowBegs; // Ids of pads at row-beginnings.
+
+ static SegmentInfo fgInnSeg; // Geometry information for inner segment.
+ static SegmentInfo fgOut1Seg; // Geometry information for middle segment.
+ static SegmentInfo fgOut2Seg; // Geometry information for outer segment.
+
+ static SegmentInfo* fgSegInfoPtrs[3]; // Array of geometry information objects, for access by segment id.
+
+ AliEveTPCSectorData(const AliEveTPCSectorData&); // Not implemented
+ AliEveTPCSectorData& operator=(const AliEveTPCSectorData&); // Not implemented
+
ClassDef(AliEveTPCSectorData, 0); // Holds pad-data of a single TPC sector. Also stores geometry information in static data-members.
};
friend class AliEveTPCSector3DEditor;
friend class AliEveTPCSector3DGL;
- AliEveTPCSectorViz(const AliEveTPCSectorViz&); // Not implemented
- AliEveTPCSectorViz& operator=(const AliEveTPCSectorViz&); // Not implemented
-
-protected:
- AliEveTPCData *fTPCData; // Source of data.
- Int_t fSectorID; // Id of the displayed sector.
-
- Int_t fMinTime; // Min time-bin to display.
- Int_t fMaxTime; // Max time-bin to display.
- Short_t fThreshold; // Threshold for display/
- Int_t fMaxVal; // Maximum signal-value, all above is of the same color.
-
- Bool_t fRnrInn; // Render inner segment.
- Bool_t fRnrOut1; // Render middle segment.
- Bool_t fRnrOut2; // Render outer segment.
-
- Color_t fFrameColor; // Color of the frame, the main color.
- Bool_t fRnrFrame; // Render frame.
- Bool_t fAutoTrans; // Automatically calculate transformation based on sector id.
- UInt_t fRTS; //! Rendering TimeStamp
-
- mutable UChar_t *fColorArray; // Color array caching signal to color mapping.
-
- void SetupColor(Int_t val, UChar_t* pix) const;
- void ClearColorArray();
- void SetupColorArray() const;
- UChar_t* ColorFromArray(Int_t val) const;
- void ColorFromArray(Int_t val, UChar_t* pix) const;
-
public:
AliEveTPCSectorViz(const Text_t* n="AliEveTPCSectorViz", const Text_t* t=0);
virtual ~AliEveTPCSectorViz();
void SetUseTrans(Bool_t t);
- ClassDef(AliEveTPCSectorViz, 1); // Base-class for visualization of data for one TPC sector.
+protected:
+ AliEveTPCData *fTPCData; // Source of data.
+ Int_t fSectorID; // Id of the displayed sector.
+
+ Int_t fMinTime; // Min time-bin to display.
+ Int_t fMaxTime; // Max time-bin to display.
+ Short_t fThreshold; // Threshold for display/
+ Int_t fMaxVal; // Maximum signal-value, all above is of the same color.
+
+ Bool_t fRnrInn; // Render inner segment.
+ Bool_t fRnrOut1; // Render middle segment.
+ Bool_t fRnrOut2; // Render outer segment.
+
+ Color_t fFrameColor; // Color of the frame, the main color.
+ Bool_t fRnrFrame; // Render frame.
+ Bool_t fAutoTrans; // Automatically calculate transformation based on sector id.
+ UInt_t fRTS; //! Rendering TimeStamp
+
+ mutable UChar_t *fColorArray; // Color array caching signal to color mapping.
+
+ void SetupColor(Int_t val, UChar_t* pix) const;
+ void ClearColorArray();
+ void SetupColorArray() const;
+ UChar_t* ColorFromArray(Int_t val) const;
+ void ColorFromArray(Int_t val, UChar_t* pix) const;
+
+private:
+ AliEveTPCSectorViz(const AliEveTPCSectorViz&); // Not implemented
+ AliEveTPCSectorViz& operator=(const AliEveTPCSectorViz&); // Not implemented
+
+ ClassDef(AliEveTPCSectorViz, 0); // Base-class for visualization of data for one TPC sector.
};
-//------------------------------------------------------------------------------
+
+// --- Inlines ---
inline UChar_t* AliEveTPCSectorViz::ColorFromArray(Int_t val) const
{
class AliEveTPCSectorVizEditor : public TGedFrame
{
- AliEveTPCSectorVizEditor(const AliEveTPCSectorVizEditor&); // Not implemented
- AliEveTPCSectorVizEditor& operator=(const AliEveTPCSectorVizEditor&); // Not implemented
-
-protected:
- AliEveTPCSectorViz *fM; // Model dynamic-casted to AliEveTPCSectorVizEditor
-
- TEveTransSubEditor *fHMTrans; // Widget for transormation.
-
- TEveGValuator *fSectorID; // Widget for SectorID.
- TGCheckButton *fAutoTrans; // Widget for AutoTrans.
-
- TGCheckButton *fRnrInn; // Widget for RnrInn.
- TGCheckButton *fRnrOut1; // Widget for RnrOut1.
- TGCheckButton *fRnrOut2; // Widget for RnrOut2.
-
- TEveGValuator *fThreshold; // Widget for Threshold.
- TEveGValuator *fMaxVal; // Widget for MaxVal.
-
- TEveGDoubleValuator *fTime; // Widget for time-range.
-
public:
AliEveTPCSectorVizEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
void DoTime();
+protected:
+ AliEveTPCSectorViz *fM; // Model dynamic-casted to AliEveTPCSectorVizEditor
+
+ TEveTransSubEditor *fHMTrans; // Widget for transormation.
+
+ TEveGValuator *fSectorID; // Widget for SectorID.
+ TGCheckButton *fAutoTrans; // Widget for AutoTrans.
+
+ TGCheckButton *fRnrInn; // Widget for RnrInn.
+ TGCheckButton *fRnrOut1; // Widget for RnrOut1.
+ TGCheckButton *fRnrOut2; // Widget for RnrOut2.
+
+ TEveGValuator *fThreshold; // Widget for Threshold.
+ TEveGValuator *fMaxVal; // Widget for MaxVal.
+
+ TEveGDoubleValuator *fTime; // Widget for time-range.
+
+private:
+ AliEveTPCSectorVizEditor(const AliEveTPCSectorVizEditor&); // Not implemented
+ AliEveTPCSectorVizEditor& operator=(const AliEveTPCSectorVizEditor&); // Not implemented
+
ClassDef(AliEveTPCSectorVizEditor, 0); // Editor for AliEveTPCSectorViz.
};
class AliEveTRDHits : public TEvePointSet
{
-private:
- AliEveTRDHits(const AliEveTRDHits&); // Not implemented
- AliEveTRDHits& operator=(const AliEveTRDHits&); // Not implemented
-
public:
AliEveTRDHits(AliEveTRDChamber *p);
protected:
AliEveTRDChamber *fParent; // Chaber holding the hits.
- ClassDef(AliEveTRDHits,1); // Base class for TRD hits visualisation
+private:
+ AliEveTRDHits(const AliEveTRDHits&); // Not implemented
+ AliEveTRDHits& operator=(const AliEveTRDHits&); // Not implemented
+
+ ClassDef(AliEveTRDHits, 0); // Base class for TRD hits visualisation
};
class AliEveTRDHitsEditor : public TGedFrame
{
-private:
- AliEveTRDHitsEditor(const AliEveTRDHitsEditor&); // Not implemented
- AliEveTRDHitsEditor& operator=(const AliEveTRDHitsEditor&); // Not implemented
-
public:
AliEveTRDHitsEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
protected:
AliEveTRDHits* fM; // Model object.
- ClassDef(AliEveTRDHitsEditor,1); // Editor for AliEveTRDHits.
+private:
+ AliEveTRDHitsEditor(const AliEveTRDHitsEditor&); // Not implemented
+ AliEveTRDHitsEditor& operator=(const AliEveTRDHitsEditor&); // Not implemented
+
+ ClassDef(AliEveTRDHitsEditor, 0); // Editor for AliEveTRDHits.
};
{
friend class AliEveTRDDigitsEditor;
-private:
- AliEveTRDDigits(const AliEveTRDDigits&); // Not implemented
- AliEveTRDDigits& operator=(const AliEveTRDDigits&); // Not implemented
-
public:
AliEveTRDDigits(AliEveTRDChamber *p);
TEveBoxSet fBoxes; // Boxset for didigit representation.
AliTRDdataArrayI fData; // Raw-data array.
- ClassDef(AliEveTRDDigits,1); // Digits visualisation for TRD
+ AliEveTRDDigits(const AliEveTRDDigits&); // Not implemented
+ AliEveTRDDigits& operator=(const AliEveTRDDigits&); // Not implemented
+
+ ClassDef(AliEveTRDDigits, 0); // Digits visualisation for TRD
};
class AliEveTRDDigitsEditor : public TGedFrame
{
-private:
- AliEveTRDDigitsEditor(const AliEveTRDDigitsEditor&); // Not implemented
- AliEveTRDDigitsEditor& operator=(const AliEveTRDDigitsEditor&); // Not implemented
-
public:
AliEveTRDDigitsEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
protected:
AliEveTRDDigits* fM; // Model object.
- ClassDef(AliEveTRDDigitsEditor,1); // Editor for AliEveTRDDigits
+private:
+ AliEveTRDDigitsEditor(const AliEveTRDDigitsEditor&); // Not implemented
+ AliEveTRDDigitsEditor& operator=(const AliEveTRDDigitsEditor&); // Not implemented
+
+ ClassDef(AliEveTRDDigitsEditor, 0); // Editor for AliEveTRDDigits
};
class AliEveTRDClusters : public AliEveTRDHits
{
-private:
- AliEveTRDClusters(const AliEveTRDClusters&); // Not implemented
- AliEveTRDClusters& operator=(const AliEveTRDClusters&); // Not implemented
-
public:
AliEveTRDClusters(AliEveTRDChamber *p);
void PointSelected(Int_t n);
- ClassDef(AliEveTRDClusters,1); // Base class for TRD clusters visualisation
+private:
+ AliEveTRDClusters(const AliEveTRDClusters&); // Not implemented
+ AliEveTRDClusters& operator=(const AliEveTRDClusters&); // Not implemented
+
+ ClassDef(AliEveTRDClusters, 0); // Base class for TRD clusters visualisation
};
#endif
{
friend class AliEveTRDLoaderEditor;
-private:
- AliEveTRDLoader(const AliEveTRDLoader&); // Not implemented
- AliEveTRDLoader& operator=(const AliEveTRDLoader&); // Not implemented
-
public:
enum TRDDataTypes {
kHits = 0,
kRawData = 5
};
-public:
+
AliEveTRDLoader(const Text_t* n="AliEveTRDLoader", const Text_t* t=0);
virtual ~AliEveTRDLoader() {}
virtual void Paint(Option_t *option="");
virtual void SetDataType(TRDDataTypes type);
+
protected:
virtual void AddChambers(int sm=-1, int stk=-1, int ly=-1);
virtual AliEveTRDChamber* GetChamber(int d);
virtual Bool_t Open(const char *file, const char *dir = ".");
virtual void Unload();
-protected:
Bool_t fLoadHits, fLoadDigits, fLoadClusters, fLoadTracks; // flags for data-loading
Int_t fSM, fStack, fLy; // supermodule, stack, layer
TString fFilename; // name of data file
AliTRDv1 *fTRD; // the TRD detector
AliTRDgeometry *fGeo; // the TRD geometry
- ClassDef(AliEveTRDLoader, 1); // Alieve Loader class for the TRD detector.
+private:
+ AliEveTRDLoader(const AliEveTRDLoader&); // Not implemented
+ AliEveTRDLoader& operator=(const AliEveTRDLoader&); // Not implemented
+
+ ClassDef(AliEveTRDLoader, 0); // Alieve Loader class for the TRD detector.
};
class AliEveTRDLoaderEditor : public TGedFrame
{
-private:
- AliEveTRDLoaderEditor(const AliEveTRDLoaderEditor&); // Not implemented
- AliEveTRDLoaderEditor& operator=(const AliEveTRDLoaderEditor&); // Not implemented
-
public:
AliEveTRDLoaderEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
TEveGValuator *fEvent; // Event no weed.
TEveGValuator *fSMNumber, *fStackNumber, *fPlaneNumber; // Detector id weeds.
- ClassDef(AliEveTRDLoaderEditor,1); // Editor for AliEveTRDLoader.
+private:
+ AliEveTRDLoaderEditor(const AliEveTRDLoaderEditor&); // Not implemented
+ AliEveTRDLoaderEditor& operator=(const AliEveTRDLoaderEditor&); // Not implemented
+
+ ClassDef(AliEveTRDLoaderEditor, 0); // Editor for AliEveTRDLoader.
};
#endif
class AliEveTRDLoaderSim : public AliEveTRDLoader
{
friend class AliEveTRDLoaderSimEditor;
-private:
- AliEveTRDLoaderSim(const AliEveTRDLoaderSim&); // Not implemented
- AliEveTRDLoaderSim& operator=(const AliEveTRDLoaderSim&); // Not implemented
+
public:
AliEveTRDLoaderSim(const Text_t* n="AliEveTRDLoaderSim", const Text_t* t=0);
virtual ~AliEveTRDLoaderSim() {}
private:
AliRunLoader *fRunLoader; // Run Loader
- ClassDef(AliEveTRDLoaderSim, 1); // Alieve loader for the TRD detector (gAlice)
+ AliEveTRDLoaderSim(const AliEveTRDLoaderSim&); // Not implemented
+ AliEveTRDLoaderSim& operator=(const AliEveTRDLoaderSim&); // Not implemented
+
+ ClassDef(AliEveTRDLoaderSim, 0); // Alieve loader for the TRD detector (gAlice)
};
class AliEveTRDLoaderRaw : public AliEveTRDLoader
{
-private:
- AliEveTRDLoaderRaw(const AliEveTRDLoaderRaw&); // Not implemented
- AliEveTRDLoaderRaw& operator=(const AliEveTRDLoaderRaw&); // Not implemented
-
public:
AliEveTRDLoaderRaw(const Text_t* n="AliEveTRDLoaderRaw", const Text_t* t=0);
virtual ~AliEveTRDLoaderRaw() {}
private:
void NextEvent(Bool_t rewindOnEnd=kTRUE);
-private:
AliRawReaderDate *fRawDateReader; // raw data reader
AliRawReaderRoot *fRawRootReader; // raw root reader
AliTRDrawData *fRaw; // raw data
Bool_t fDataRoot; // data in root format
Int_t fEventOld; // old event
- ClassDef(AliEveTRDLoaderRaw, 1); // Alieve loader for the TRD detector (raw)
+ AliEveTRDLoaderRaw(const AliEveTRDLoaderRaw&); // Not implemented
+ AliEveTRDLoaderRaw& operator=(const AliEveTRDLoaderRaw&); // Not implemented
+
+ ClassDef(AliEveTRDLoaderRaw, 0); // Alieve loader for the TRD detector (raw)
};
class AliEveTRDLoaderSimEditor : public TGedFrame
{
-private:
- AliEveTRDLoaderSimEditor(const AliEveTRDLoaderSimEditor&); // Not implemented
- AliEveTRDLoaderSimEditor& operator=(const AliEveTRDLoaderSimEditor&); // Not implemented
-
public:
AliEveTRDLoaderSimEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
AliEveTRDLoaderSim *fM; // Model object.
TGCheckButton *fLoadHits, *fLoadDigits, *fLoadClusters, *fLoadTracks; // What data to load.
- ClassDef(AliEveTRDLoaderSimEditor,1); // Editor for AliEveTRDLoaderSim
+private:
+ AliEveTRDLoaderSimEditor(const AliEveTRDLoaderSimEditor&); // Not implemented
+ AliEveTRDLoaderSimEditor& operator=(const AliEveTRDLoaderSimEditor&); // Not implemented
+
+ ClassDef(AliEveTRDLoaderSimEditor, 0); // Editor for AliEveTRDLoaderSim
};
#endif
{
friend class AliEveTRDLoaderManagerEditor;
- AliEveTRDLoaderManager(const AliEveTRDLoaderManager&); // Not implemented
- AliEveTRDLoaderManager& operator=(const AliEveTRDLoaderManager&); // Not implemented
-
public:
AliEveTRDLoaderManager(const Text_t* name="AliEveTRDLoader", const Text_t* title=0x0);
virtual ~AliEveTRDLoaderManager() {}
void Add(Int_t type, const Text_t *name, const Text_t *title=0x0);
void Remove(Int_t entry);
- ClassDef(AliEveTRDLoaderManager, 1); // Alieve loaders manager for TRD
+private:
+ AliEveTRDLoaderManager(const AliEveTRDLoaderManager&); // Not implemented
+ AliEveTRDLoaderManager& operator=(const AliEveTRDLoaderManager&); // Not implemented
+
+ ClassDef(AliEveTRDLoaderManager, 0); // Alieve loaders manager for TRD
};
class AliEveTRDLoaderManagerEditor : public TGedFrame
{
-private:
- AliEveTRDLoaderManagerEditor(const AliEveTRDLoaderManagerEditor&); // Not implemented
- AliEveTRDLoaderManagerEditor& operator=(const AliEveTRDLoaderManagerEditor&); // Not implemented
-
public:
AliEveTRDLoaderManagerEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
TGGroupFrame *fGroupFrame; // Frame.
TClonesArray *fRemove; // Remove array.
- ClassDef(AliEveTRDLoaderManagerEditor, 1); // Editor for AliEveTRDLoaderManager.
+ AliEveTRDLoaderManagerEditor(const AliEveTRDLoaderManagerEditor&); // Not implemented
+ AliEveTRDLoaderManagerEditor& operator=(const AliEveTRDLoaderManagerEditor&); // Not implemented
+
+ ClassDef(AliEveTRDLoaderManagerEditor, 0); // Editor for AliEveTRDLoaderManager.
};
#endif
friend class AliEveTRDNode;
friend class AliEveTRDChamber;
-private:
- AliEveTRDModule(const AliEveTRDModule&); // Not implemented
- AliEveTRDModule& operator=(const AliEveTRDModule&); // Not implemented
-
public:
AliEveTRDModule(const char *typ="XXX", Int_t id=0);
virtual ~AliEveTRDModule() {}
Int_t fDet; // detector number
UShort_t fDigitsThreshold; // digits threshold
- ClassDef(AliEveTRDModule,1); // Structure holder for TRD chamber.
+private:
+ AliEveTRDModule(const AliEveTRDModule&); // Not implemented
+ AliEveTRDModule& operator=(const AliEveTRDModule&); // Not implemented
+
+ ClassDef(AliEveTRDModule, 0); // Structure holder for TRD chamber.
};
class AliEveTRDModuleEditor : public TGedFrame
{
-private:
- AliEveTRDModuleEditor(const AliEveTRDModuleEditor&); // Not implemented
- AliEveTRDModuleEditor& operator=(const AliEveTRDModuleEditor&); // Not implemented
-
public:
AliEveTRDModuleEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
TGColorSelect *fClustersColor; // Cluster color.
TGCheckButton *fDisplayTracks; // Track control.
- ClassDef(AliEveTRDModuleEditor,1); // Editor for AliEveTRDModule.
+ AliEveTRDModuleEditor(const AliEveTRDModuleEditor&); // Not implemented
+ AliEveTRDModuleEditor& operator=(const AliEveTRDModuleEditor&); // Not implemented
+
+ ClassDef(AliEveTRDModuleEditor, 0); // Editor for AliEveTRDModule.
};
#endif
{
friend class AliEveTRDDigits;
-private:
- AliEveTRDChamber(const AliEveTRDChamber&); // Not implemented.
- AliEveTRDChamber& operator=(const AliEveTRDChamber&); // Not implemented.
-
public:
AliEveTRDChamber(Int_t det=0);
AliTRDpadPlane *fPadPlane; // pad plane object
AliTRDgeometry *fGeo; // TRD geometry
- ClassDef(AliEveTRDChamber,1); // Holder for TRD chamber data
+private:
+ AliEveTRDChamber(const AliEveTRDChamber&); // Not implemented.
+ AliEveTRDChamber& operator=(const AliEveTRDChamber&); // Not implemented.
+
+ ClassDef(AliEveTRDChamber, 0); // Holder for TRD chamber data
};
void UpdateLeaves();
void UpdateNode();
- List_i begin(){return fChildren.begin();}
- List_i end(){return fChildren.end();}
+ List_i begin() { return fChildren.begin(); }
+ List_i end() { return fChildren.end(); }
- ClassDef(AliEveTRDNode, 1);
+ ClassDef(AliEveTRDNode, 0);
};
#endif
#pragma link C++ class AliEveTPCSectorData::RowIterator;
#pragma link C++ class AliEveTPCSectorData::SegmentInfo;
-#pragma link C++ class AliEveTPCSectorData::PadRowHack;
-
#pragma link C++ class AliEveTPCSectorViz+;
#pragma link C++ class AliEveTPCSectorVizEditor+;
#pragma link C++ class AliEveTPCSector2D+;
}
-AliEveHOMERManagerEditor::~AliEveHOMERManagerEditor()
-{}
-
/******************************************************************************/
void AliEveHOMERManagerEditor::SetModel(TObject* obj)
void AliEveHOMERManagerEditor::DoButt()
{
- // Connects to HOMER sources -> to HLT
+ // Connects to HOMER sources -> to HLT.
+
fM->ConnectHOMER();
}
class AliEveHOMERManagerEditor : public TGedFrame
{
-private:
- AliEveHOMERManagerEditor(const AliEveHOMERManagerEditor&); // Not implemented
- AliEveHOMERManagerEditor& operator=(const AliEveHOMERManagerEditor&); // Not implemented
-
-protected:
- AliEveHOMERManager* fM; // fModel dynamic-casted to AliEveHOMERManagerEditor
-
- // Declare widgets
- TGTextButton *fButt;
-
public:
AliEveHOMERManagerEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
- virtual ~AliEveHOMERManagerEditor();
+ virtual ~AliEveHOMERManagerEditor() {}
virtual void SetModel(TObject* obj);
// Declare callback/slot methods
void DoButt();
+protected:
+ AliEveHOMERManager *fM; // Model object.
+
+ TGTextButton *fButt; // Button to connect to HOMER.
+
+private:
+ AliEveHOMERManagerEditor(const AliEveHOMERManagerEditor&); // Not implemented
+ AliEveHOMERManagerEditor& operator=(const AliEveHOMERManagerEditor&); // Not implemented
+
ClassDef(AliEveHOMERManagerEditor, 0); // Editor for AliEveHOMERManager
-}; // endclass AliEveHOMERManagerEditor
+};
#endif
class AliEveHOMERSource : public TEveElement,
public TNamed
{
-private:
- AliEveHOMERSource(const AliEveHOMERSource&); // Not implemented
- AliEveHOMERSource& operator=(const AliEveHOMERSource&); // Not implemented
-
public:
struct SourceId
{
SourceState(Bool_t state) : fState(state), fHandle(0) {}
};
-protected:
- const SourceId *fSrcId;
- SourceState *fSrcState;
-public:
AliEveHOMERSource(const Text_t* n="HOMER Source", const Text_t* t="");
virtual ~AliEveHOMERSource() {}
virtual Bool_t SingleRnrState() const { return kTRUE; }
virtual void SetRnrState(Bool_t rnr);
- ClassDef(AliEveHOMERSource, 1);
-}; // endclass AliEveHOMERSource
+protected:
+ const SourceId *fSrcId;
+ SourceState *fSrcState;
+
+private:
+ AliEveHOMERSource(const AliEveHOMERSource&); // Not implemented
+ AliEveHOMERSource& operator=(const AliEveHOMERSource&); // Not implemented
+
+ ClassDef(AliEveHOMERSource, 0); // Description of an HOMER source.
+};
#endif
class AliEveHOMERSourceList : public TEveElementList
{
-private:
- AliEveHOMERSourceList(const AliEveHOMERSourceList&); // Not implemented
- AliEveHOMERSourceList& operator=(const AliEveHOMERSourceList&); // Not implemented
-
-protected:
- //SourceMap_t fByType;
- //ESourceGrouping_e fView;
- //Bool_t fDefaultState;
-
- AliEveHOMERManager *fManager;
- AliEveHOMERSourceMap *fSrcMap;
-
public:
AliEveHOMERSourceList(const Text_t* n="HOMER Source List", const Text_t* t="");
virtual ~AliEveHOMERSourceList();
//void SelectAll(); // *MENU*
//void DeselectAll(); // *MENU*
- ClassDef(AliEveHOMERSourceList, 1);
-}; // endclass AliEveHOMERSourceList
+protected:
+ //SourceMap_t fByType;
+ //ESourceGrouping_e fView;
+ //Bool_t fDefaultState;
+
+ AliEveHOMERManager *fManager;
+ AliEveHOMERSourceMap *fSrcMap;
+
+private:
+ AliEveHOMERSourceList(const AliEveHOMERSourceList&); // Not implemented
+ AliEveHOMERSourceList& operator=(const AliEveHOMERSourceList&); // Not implemented
+
+ ClassDef(AliEveHOMERSourceList, 0); // Interface to a list of HOMER sourcces.
+};
#endif
class AliEveHOMERSourceMap : public TNamed
{
protected:
+ // --- Inner structs ---
+
struct iterator_imp_base
{
virtual ~iterator_imp_base() {}
};
public:
+ // --- Inner structs ---
+
struct iterator
{
iterator_imp_base* m_imp;
iterator begin() { return iterator(iterator_imp_begin()); }
iterator end() { return iterator(iterator_imp_end()); }
-
+
enum ESourceGrouping_e { kSG_ByDet, kSG_ByType };
-protected:
- ESourceGrouping_e fGrouping; // Not used so far ...
+ // --- Interface ---
- virtual iterator_imp_base* iterator_imp_new() = 0; // Not used so far ...
- virtual iterator_imp_base* iterator_imp_begin() = 0;
- virtual iterator_imp_base* iterator_imp_end() = 0;
-
-public:
AliEveHOMERSourceMap(ESourceGrouping_e grouping);
virtual ~AliEveHOMERSourceMap() {}
void PrintXXX();
- ClassDef(AliEveHOMERSourceMap, 0);
+
+protected:
+ ESourceGrouping_e fGrouping; // Not used so far ...
+
+ virtual iterator_imp_base* iterator_imp_new() = 0; // Not used so far ...
+ virtual iterator_imp_base* iterator_imp_begin() = 0;
+ virtual iterator_imp_base* iterator_imp_end() = 0;
+
+ ClassDef(AliEveHOMERSourceMap, 0); // A map of HOMER sources.
};
/******************************************************************************/
class AliEveHOMERSourceMapByDet : public AliEveHOMERSourceMap
{
+public:
+ AliEveHOMERSourceMapByDet(ESourceGrouping_e grouping);
+ virtual ~AliEveHOMERSourceMapByDet() {}
+
+ virtual void FillMap(TList* handles, Bool_t def_state);
+
protected:
typedef std::map<AliEveHOMERSource::SourceId,
AliEveHOMERSource::SourceState,
virtual iterator_imp_base* iterator_imp_begin() { return new iterator_imp(fMap.begin()); }
virtual iterator_imp_base* iterator_imp_end() { return new iterator_imp(fMap.end()); }
-public:
- AliEveHOMERSourceMapByDet(ESourceGrouping_e grouping);
- virtual ~AliEveHOMERSourceMapByDet() {}
-
- virtual void FillMap(TList* handles, Bool_t def_state);
- // ClassDef(AliEveHOMERSourceMapByDet, 1);
+ // ClassDef(AliEveHOMERSourceMapByDet, 0);
};
/******************************************************************************/
class AliEveHOMERSourceMapByType : public AliEveHOMERSourceMap
{
+public:
+ AliEveHOMERSourceMapByType(ESourceGrouping_e grouping);
+ virtual ~AliEveHOMERSourceMapByType() {}
+
+ virtual void FillMap(TList* handles, Bool_t def_state);
+
protected:
typedef std::map<AliEveHOMERSource::SourceId,
AliEveHOMERSource::SourceState,
virtual iterator_imp_base* iterator_imp_begin() { return new iterator_imp(fMap.begin()); }
virtual iterator_imp_base* iterator_imp_end() { return new iterator_imp(fMap.end()); }
-public:
- AliEveHOMERSourceMapByType(ESourceGrouping_e grouping);
- virtual ~AliEveHOMERSourceMapByType() {}
-
- virtual void FillMap(TList* handles, Bool_t def_state);
-
- // ClassDef(AliEveHOMERSourceMapByType, 1);
+ // ClassDef(AliEveHOMERSourceMapByType, 0);
};
#endif