* provided "as is" without express or implied warranty. *
**************************************************************************/
-
+/* $Id$ */
///////////////////////////////////////////////////////////////////////////
// //
// V-Zero Detector //
// This class contains the base procedures for the VZERO detector //
// All comments should be sent to Brigitte CHEYNIS : //
-// b.cheynis@ipnl.in2p3.fr // // //
+// b.cheynis@ipnl.in2p3.fr //
+// //
// //
///////////////////////////////////////////////////////////////////////////
-#include <iostream.h>
-#include <fstream.h>
-#include "TMath.h"
-#include "TTUBE.h"
-#include "TNode.h"
-#include "TGeometry.h"
+#include <Riostream.h>
+
#include "AliRun.h"
#include "AliVZERO.h"
#include "AliVZEROdigit.h"
-#include "AliMC.h"
#include "AliVZEROhit.h"
ClassImp(AliVZERO)
// Standard constructor for VZERO Detector
//
- fIshunt = 1 ; // All hits are associated with primary particles
+ fIshunt = 1; // All hits are associated with primary particles
- fHits = new TClonesArray("AliVZEROhit",400) ;
- fDigits = new TClonesArray("AliVZEROdigit",400) ;
-
- fNhits = 0;
- fNdigits = 0;
- fNCerenkovs = 0;
- fMulti = 0;
- fThickness = 3.1; // total thickness of the V0R box
- fThickness1 = 2.5; // thickness of the thickest quartz cell
+ fHits = new TClonesArray("AliVZEROhit", 400);
+ fDigits = new TClonesArray("AliVZEROdigit",400);
+
+ gAlice->AddHitList(fHits);
+
+// fDigits = new TClonesArray("AliVZEROdigit",400) ;
+
+ fThickness = 4.1; // total thickness of the V0R box
+ fThickness1 = 0.7; // thickness of the thickest cell (2.5 in version 0)
fMaxStepQua = 0.05;
fMaxStepAlu = 0.01;
fMaxDestepAlu = -1.0;
SetMarkerColor(kRed);
- }
+}
+
+//_____________________________________________________________________________
+AliVZERO::~AliVZERO()
+{
+ if (fHits) {
+ fHits->Delete();
+ delete fHits;
+ }
+}
//_____________________________________________________________________________
void AliVZERO::BuildGeometry()
// Build simple ROOT TNode geometry for event display
//
}
+
+
+
//_____________________________________________________________________________
-Int_t AliVZERO::DistanceToPrimitive(Int_t px, Int_t py)
+Int_t AliVZERO::DistanceToPrimitive(Int_t /*px*/, Int_t /*py*/)
{
//
// Calculate the distance from the mouse to the VZERO on the screen
//
}
+
//-------------------------------------------------------------------------
void AliVZERO::SetMaxStepQua(Float_t p1)