#include <TROOT.h>
#include <TPolyMarker3D.h>
-#include <TMatrix.h>
#include <TVirtualPad.h>
#include <TPaveText.h>
#include <TMarker3DBox.h>
#include "AliMUON.h"
#include "AliMUONHit.h"
#include "AliMUONDigit.h"
+#include "AliLog.h"
+/// \cond CLASSIMP
ClassImp(AliMUONPoints)
+/// \endcond
//_____________________________________________________________________________
AliMUONPoints::AliMUONPoints()
- : AliPoints()
+ : AliPoints(),
+ fHitIndex(0),
+ fTrackIndex(0),
+ fDigitIndex(0),
+ fMatrix(0)
+
{
- //
- // Default constructor
- //
- fHitIndex = 0;
- fTrackIndex = 0;
- fDigitIndex = 0;
+ /// Default constructor
+
fMarker[0] = fMarker[1] = fMarker[2]=0;
- fMatrix = 0;
}
//_____________________________________________________________________________
AliMUONPoints::AliMUONPoints(Int_t npoints)
- :AliPoints(npoints)
+ : AliPoints(npoints),
+ fHitIndex(0),
+ fTrackIndex(0),
+ fDigitIndex(0),
+ fMatrix(0)
{
- //
- // Standard constructor
- //
- fHitIndex = 0;
- fTrackIndex = 0;
- fDigitIndex = 0;
+ /// Standard constructor
+
fMarker[0] = fMarker[1] = fMarker[2]=0;
- fMatrix = 0;
}
-//_____________________________________________________________________________
-AliMUONPoints::AliMUONPoints(const AliMUONPoints& points)
- : AliPoints(points)
-{
-// Protected copy constructor
-
- Fatal("AliMUONPoints", "Not implemented.");
-}
-
//_____________________________________________________________________________
AliMUONPoints::~AliMUONPoints()
{
- //
- // Default destructor
- //
+ /// Destructor
+
fHitIndex = 0;
fTrackIndex = 0;
fDigitIndex = 0;
//_____________________________________________________________________________
void AliMUONPoints::DumpHit() const
{
- //
- // Dump hit corresponding to this point
- //
+ /// Dump hit corresponding to this point
+
AliMUONHit *hit = GetHit();
if (hit) hit->Dump();
}
//_____________________________________________________________________________
void AliMUONPoints::DumpDigit() const
{
- //
- // Dump digit corresponding to this point
- //
+ /// Dump digit corresponding to this point
+
AliMUONDigit *digit = GetDigit();
if (digit) digit->Dump();
}
//_____________________________________________________________________________
void AliMUONPoints::InspectHit()
{
- //
- // Inspect hit corresponding to this point
- //
+ /// Inspect hit corresponding to this point
if (fHitIndex < 0 ) return;
TVirtualPad *padsav = gPad;
//_____________________________________________________________________________
void AliMUONPoints::InspectDigit()
{
- //
- // Inspect digit corresponding to this point
- //
+ /// Inspect digit corresponding to this point
+
if (fDigitIndex < 0) return;
TVirtualPad *padsav = gPad;
AliMUONDigit *digit = GetDigit();
char ptitle[11][100];
// sprintf(ptitle[11],"Tracks making this digit");
// pad->AddText(ptitle[11]);
- for (int i=0;i<10;i++) {
+ for (int i=0;i<digit->Ntracks();i++) {
if (digit->Track(i) == 0) continue;
sprintf(ptitle[i],"fTrackIndex: %d Charge: %d",
digit->Track(i), digit->TrackCharge(i));
//_____________________________________________________________________________
Int_t AliMUONPoints::GetTrackIndex() const
{
- //
- // Dump digit corresponding to this point
- //
+ /// Dump digit corresponding to this point
Inspect();
/*
//_____________________________________________________________________________
AliMUONHit *AliMUONPoints::GetHit() const
{
- //
- // Returns pointer to hit index in AliRun::fParticles
- //
+ /// Returns pointer to hit index in AliRun::fParticles
+
AliMUON *pMUON = (AliMUON*)gAlice->GetModule("MUON");
pMUON->TreeH()->GetEvent(fTrackIndex);
//_____________________________________________________________________________
AliMUONDigit *AliMUONPoints::GetDigit() const
{
- //
- // Returns pointer to digit index in AliRun::fParticles
- //
+ /// Returns pointer to digit index in AliRun::fParticles
AliMUONDisplay *display=(AliMUONDisplay*)gAlice->Display();
Int_t chamber=display->GetChamber();
- Int_t cathode=display->GetCathode();
AliMUON *pMUON = (AliMUON*)gAlice->GetModule("MUON");
TClonesArray *muonDigits = pMUON->GetMUONData()->Digits(chamber-1);
- Int_t nent=(Int_t)gAlice->TreeD()->GetEntries();
- pMUON->GetMUONData()->GetCathode(nent-2+cathode-1);
+ pMUON->GetMUONData()->GetDigits();
//gAlice->TreeD()->GetEvent(cathode);
Int_t ndigits = muonDigits->GetEntriesFast();
if (fDigitIndex < 0 || fDigitIndex >= ndigits) return 0;
return (AliMUONDigit*)muonDigits->UncheckedAt(fDigitIndex);
}
-//_____________________________________________________________________________
-
-AliMUONPoints& AliMUONPoints::operator= (const AliMUONPoints& rhs)
-{
-// Protected assignement operator
-
- if (this == &rhs) return *this;
-
- Fatal("operator=", "Not implemented.");
-
- return *this;
-}