/*
$Log$
+ Revision 1.24 2000/10/02 15:43:17 jbarbosa
+ Fixed forward declarations.
+ Fixed honeycomb density.
+ Fixed cerenkov storing.
+ New electronics.
+
+ Revision 1.23 2000/09/13 10:42:14 hristov
+ Minor corrections for HP, DEC and Sun; strings.h included
+
+ Revision 1.22 2000/09/12 18:11:13 fca
+ zero hits area before using
+
+ Revision 1.21 2000/07/21 10:21:07 morsch
+ fNrawch = 0; and fNrechits = 0; in the default constructor.
+
Revision 1.20 2000/07/10 15:28:39 fca
Correction of the inheritance scheme
#include <TArrayF.h>
#include <TFile.h>
#include <TParticle.h>
+#include <TGeometry.h>
+#include <TTree.h>
+
#include <iostream.h>
+#include <strings.h>
#include "AliRICH.h"
#include "AliRICHSegmentation.h"
#include "AliRICHClusterFinder.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
#include "AliPDG.h"
#include "AliPoints.h"
fNcerenkovs = 0;
fDchambers = 0;
fCerenkovs = 0;
- fNdch = 0;
- fNrawch = 0;
- fNrechits = 0;
+ for (Int_t i=0; i<7; i++)
+ {
+ fNdch[i] = 0;
+ fNrawch[i] = 0;
+ fNrechits[i] = 0;
+ }
}
//___________________________________________
fNcerenkovs = 0;
fIshunt = 0;
- fNdch = new Int_t[kNCH];
+ //fNdch = new Int_t[kNCH];
fDchambers = new TObjArray(kNCH);
fNdch[i]=0;
}
- fNrawch = new Int_t[kNCH];
+ //fNrawch = new Int_t[kNCH];
fRawClusters = new TObjArray(kNCH);
//printf("Created fRwClusters with adress:%p",fRawClusters);
fNrawch[i]=0;
}
- fNrechits = new Int_t[kNCH];
+ //fNrechits = new Int_t[kNCH];
for (i=0; i<kNCH ;i++) {
(*fRecHits)[i] = new TClonesArray("AliRICHRecHit",1000);
ahon = 12.01;
zhon = 6.;
- denshon = 2.265;
+ denshon = 0.1;
radlhon = 18.8;
// --- Parameters to include in GSMIXT, relative to Quarz (SiO2)
pos[0]=position(0);
pos[1]=position(1);
pos[2]=position(2);
+ bzero((char *)ckovData,sizeof(ckovData)*19);
ckovData[1] = pos[0]; // X-position for hit
ckovData[2] = pos[1]; // Y-position for hit
ckovData[3] = pos[2]; // Z-position for hit
if (gMC->CurrentVolID(copy) == gMC->VolId("QUAR"))
ckovData[13]=2;
//geant3->StopTrack();
- AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+ //AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
} //reflection question
R__b >> fRawClusters;
R__b >> fRecHits; //diff
R__b >> fDebugLevel; //diff
- R__b.ReadArray(fNdch);
- R__b.ReadArray(fNrawch);
- R__b.ReadArray(fNrechits);
+ R__b.ReadStaticArray(fNdch);
+ R__b.ReadStaticArray(fNrawch);
+ R__b.ReadStaticArray(fNrechits);
//
R__b >> fChambers;
// Stream chamber related information
//printf("Pedestal:%d\n",pedestal);
//Int_t pedestal=0;
- Float_t treshold = (pedestal + 4*1.7);
+ Float_t treshold = (pedestal + 4*2.2);
- Float_t meanNoise = gRandom->Gaus(1.7, 0.25);
+ Float_t meanNoise = gRandom->Gaus(2.2, 0.3);
Float_t noise = gRandom->Gaus(0, meanNoise);
q+=(Int_t)(noise + pedestal);
//q+=(Int_t)(noise);