Skip to content

Commit

Permalink
removed obsolete AliTPCDigitsDisplay.C
Browse files Browse the repository at this point in the history
  • Loading branch information
kowal2 committed Apr 17, 2000
1 parent f2c06fd commit 7f16fb0
Show file tree
Hide file tree
Showing 79 changed files with 11,129 additions and 2,405 deletions.
71 changes: 71 additions & 0 deletions TPC/AliArrayI.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are mentioned in the code where appropriate. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/

/*
$Log$
Revision 1.1.4.2 2000/04/10 11:32:37 kowal2
"ROOT"-based class with some extra functionality
*/

///////////////////////////////////////////////////////////////////////
// Added additional functionality to original TArrayI //
// multiple inheritance from TObject to be possible use automatic //
// branch mechanism for tree
// function Expand to be possible expand array without deleting //
// array contents //
// //
// Origin: Marian Ivanov, Uni. of Bratislava, [email protected] //
// //
///////////////////////////////////////////////////////////////////////
#include "AliArrayI.h"
ClassImp(AliArrayI)
void AliArrayI::Expand(Int_t n)
{
//
// Set array size of TArrayI object to n integers and copy old array
// If n<0 leave array unchanged.
// user are responsible for appopiate size of array
//
if (n < 0) return;
fArray = (Int_t*) TStorage::ReAlloc(fArray, n * sizeof(Int_t),fN * sizeof(Int_t));
if (fArray!=0) fN= n;
}

void AliArrayI::Streamer(TBuffer &R__b)
{
// Stream an object of class AliTPC.

if (R__b.IsReading()) {
Version_t R__v = R__b.ReadVersion(); if (R__v) { }
TObject::Streamer(R__b);
//read pad parameters
R__b >> fN;
if (fArray!=0) {
delete [] fArray;
fArray = 0;
}
if (fN>0){
fArray = new Int_t[fN];
R__b.ReadFastArray(fArray,fN);
}
} else {
R__b.WriteVersion(AliArrayI::IsA());
TObject::Streamer(R__b);
R__b << fN;
if (fN>0) R__b.WriteFastArray(fArray,fN);
}
}
23 changes: 23 additions & 0 deletions TPC/AliArrayI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#ifndef AliArrayI_H
#define AliArrayI_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */

/* $Id$ */

////////////////////////////////////////////////
// Manager class generaol Alice segment
// segment is for example one pad row in TPC //
////////////////////////////////////////////////

#include "TObject.h"
#include "TArrayI.h"

class AliArrayI: public TObject ,public TArrayI {
public:
void Expand(Int_t n);
ClassDef(AliArrayI,1)
};

#endif //ALIARRAY_I

75 changes: 75 additions & 0 deletions TPC/AliArrayS.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are mentioned in the code where appropriate. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/

/*
$Log$
Revision 1.1.4.2 2000/04/10 11:32:37 kowal2
"ROOT"-based class with some extra functionality
*/

///////////////////////////////////////////////////////////////////////
// Added additional functionality to original TArrayS //
// multiple inheritance from TObject to be possible use automatic //
// branch mechanism for tree
// function Expand to be possible expand array without deleting //
// array contents // //
// //
// Origin: Marian Ivanov, Uni. of Bratislava, [email protected] //
// //
///////////////////////////////////////////////////////////////////////
#include "AliArrayS.h"
ClassImp(AliArrayS)
void AliArrayS::Expand(Int_t n)
{
//
// Set array size of TArrayS object to n integers and copy old array
// If n<0 leave array unchanged.
// user are responsible for apropriate size of array
//
if (n < 0) return;
fArray = (Short_t*) TStorage::ReAlloc(fArray, n * sizeof(UShort_t),fN * sizeof(UShort_t));
if (fArray!=0) fN= n;
else fN =0;
}



void AliArrayS::Streamer(TBuffer &R__b)
{
// Stream an object of class AliTPC.

if (R__b.IsReading()) {
Version_t R__v = R__b.ReadVersion(); if (R__v) { }
TObject::Streamer(R__b);
//read pad parameters
R__b >> fN;
if (fArray!=0){
delete [] fArray;
fArray =0;
}
if (fN>0){
fArray = new Short_t[fN];
R__b.ReadFastArray(fArray,fN);
}
} else {
R__b.WriteVersion(AliArrayS::IsA());
TObject::Streamer(R__b);
R__b << fN;
if (fN>0) R__b.WriteFastArray(fArray,fN);
}
}

22 changes: 22 additions & 0 deletions TPC/AliArrayS.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef ALIARRAYS_H
#define ALIARRAYS_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */

/* $Id$ */

////////////////////////////////////////////////
// Manager class generaol Alice segment digits
// segment is for example one pad row in TPC //
////////////////////////////////////////////////

#include "TObject.h"
#include "TArrayS.h"


class AliArrayS: public TObject,public TArrayS {
public:
void Expand(Int_t n);
ClassDef(AliArrayS,1)
};
#endif //ALIARRAYS_H
61 changes: 61 additions & 0 deletions TPC/AliCluster.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are mentioned in the code where appropriate. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/

/*
$Log$
Revision 1.1.4.2 2000/04/10 11:34:02 kowal2
Clusters handling in a new data structure
*/

///////////////////////////////////////////////////////////////////////////////
// //
// Time Projection Chamber clusters objects //
//
// Origin: Marian Ivanov , GSI Darmstadt
// //
//Begin_Html
/*
<img src="gif/AliTPCCluster.gif">
*/
//End_Html
// //
// //
///////////////////////////////////////////////////////////////////////////////

#include "AliCluster.h"

ClassImp(AliCluster)
//_____________________________________________________________________________
Int_t AliCluster::Compare(TObject * o)
{
//
// compare two clusters according y coordinata
AliCluster *cl= (AliCluster *)o;
if (fY<cl->fY) return -1;
if (fY==cl->fY) return 0;
return 1;
}

Bool_t AliCluster::IsSortable() const
{
//
//make AliCluster sortabale
return kTRUE;
}

ClassImp(AliDigitCluster)
ClassImp(AliDifCluster)
53 changes: 53 additions & 0 deletions TPC/AliCluster.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#ifndef ALICLUSTER_H
#define ALICLUSTER_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */

/* $Id$ */

#include "TObject.h"

class AliCluster : public TObject {
public:
Int_t fTracks[3];//labels of overlapped tracks
Float_t fX ; //Y of cluster
Float_t fY ; //Z of cluster
Float_t fQ ; //Q of cluster (in ADC counts)
Float_t fSigmaX2; //Sigma Y square of cluster
Float_t fSigmaY2; //Sigma Z square of cluster
Float_t fSigmaXY; // XY moment
Float_t fArea; //area of cluster
Float_t fMax; //amplitude at maximum
public:
AliCluster() {
fTracks[0]=fTracks[1]=fTracks[2]=0;
fX=fY=fQ=fSigmaX2=fSigmaY2=0.;
}
virtual ~AliCluster() {;}
Bool_t IsSortable() const;
Int_t Compare(TObject *o) ;
ClassDef(AliCluster,1) // Tclusters
};

class AliDigitCluster : public AliCluster {
public:
Int_t fNx; //number of accepted x bins
Int_t fNy; //number of accepted y bins
Float_t fMaxX; //maximum x bin
Float_t fMaxY; //maximum y bin
public:
ClassDef(AliDigitCluster,1) // Tclusters
};

class AliDifCluster : public AliDigitCluster {
public:
Float_t fDx; //delta x
Float_t fDy; //delta y
Float_t fAngleX;//x angle
Float_t fAngleY;//y angle
Float_t fOrigQ; //original charge
Int_t fGenerTrack; //track number of nearest track
ClassDef(AliDifCluster,1) // Tclusters
};

#endif //ALICLUSTER_H
Loading

0 comments on commit 7f16fb0

Please sign in to comment.