ELIBS:= MUON TPCbase TPCsim TPCrec TPCfast \
ITS PMD TRDbase TRDsim TRDrec TRDfast \
- FMD TOF PHOS CRT RICH ZDC VZERO EMCAL \
- STRUCT START EVGEN STEER CONTAINERS pythia6 AliPythia6 pdf THijing \
+ FMDbase FMDsim FMDrec TOF PHOS CRT RICH ZDC VZERO EMCAL \
+ STRUCT STARTbase STARTsim STARTrec EVGEN STEER CONTAINERS \
+ pythia6 AliPythia6 pdf THijing \
hijing TMEVSIM mevsim THbtp HBTP THerwig herwig TEPEMGEN EPEMGEN \
TPHIC FASTSIM microcern RAW
# g2c_sh
#include <TVirtualMC.h>
#include "AliDetector.h"
-#include "AliFMDReconstParticles.h"
#include "AliFMDdigit.h"
#include "AliFMDhit.h"
#include "AliFMDv1.h"
fIshunt = 0;
fHits = 0;
fDigits = 0;
- fReconParticles=0;
}
//_____________________________________________________________________________
fHits = new TClonesArray ("AliFMDhit", 1000);
// Digits for each Si disk
fDigits = new TClonesArray ("AliFMDdigit", 1000);
- fReconParticles=new TClonesArray("AliFMDReconstParticles",1000);
gAlice->GetMCApp()->AddHitList (fHits);
fIshunt = 0;
delete fDigits;
fDigits = 0;
}
- if (fReconParticles)
- {
- fReconParticles->Delete ();
- delete fReconParticles;
- fReconParticles = 0;
- }
}
const char *cH = strstr(option,"H");
const char *cD = strstr(option,"D");
- const char *cR = strstr(option,"R");
if (cH && (fHits == 0x0)) fHits = new TClonesArray ("AliFMDhit", 1000);
MakeBranchInTree(fLoader->TreeD(), branchname,&fDigits, kBufferSize, 0);
}
- if (cR){
- if (fReconParticles == 0x0)
- fReconParticles=new TClonesArray("AliFMDReconstParticles",1000);
- MakeBranchInTree(fLoader->TreeR(), branchname,&fReconParticles, kBufferSize, 0);
- }
-
}
//_____________________________________________________________________________
if (branch)
branch->SetAddress (&fDigits);
}
-
- if (fLoader->TreeR() && fReconParticles)
- {
- if (fReconParticles == 0x0)
- fReconParticles=new TClonesArray("AliFMDReconstParticles",1000);
- branch = fLoader->TreeR()->GetBranch("FMD");
- if (branch) branch->SetAddress(&fReconParticles) ;
- }
}
// Digitisation
- TClonesArray *ReconParticles() const {return fReconParticles;}
virtual const void SetHitsAddressBranch(TBranch *b){b->SetAddress(&fHits);}
virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
Int_t fNevents ; // Number of events to digitize
Int_t fEvNrSig; // signal event number
-
- TClonesArray *fReconParticles; //array of reconstructed multiplicity in 0.1eta
-
- ClassDef(AliFMD,6) //Class for the FMD detector
+ ClassDef(AliFMD,7) //Class for the FMD detector
};
#endif // AliFMD_H
#include "TROOT.h"
#include "TFolder.h"
#include "TH2F.h"
+#include "TRandom.h"
// --- Standard library ---
#include <stdlib.h>
#include "AliLoader.h"
#include "AliFMDdigit.h"
-#include "AliFMDhit.h"
#include "AliFMDReconstParticles.h"
-#include "AliFMD.h"
-#include "AliFMDv1.h"
#include "AliFMDReconstructor.h"
#include "AliRun.h"
#include "AliConfig.h"
gDirectory = cwd;
plFMD->LoadRecPoints("RECREATE");
+ TClonesArray* reconParticles = new TClonesArray("AliFMDReconstParticles");
+ TClonesArray* digits = new TClonesArray("AliFMDDigit");
+
Int_t retval=0;
Int_t nevents=Int_t (runLoader->TreeE()->GetEntries());
#ifdef DEBUG
return;
}
- AliFMD * fFMD = (AliFMD *)gAlice->GetDetector("FMD");
- TClonesArray *fReconParticles=fFMD->ReconParticles();
- TClonesArray *fDigits=fFMD->Digits();
-
TTree* treeD = plFMD->TreeD();
if (treeD == 0x0)
{
brDigits=treeD->GetBranch("FMD");
if (brDigits) {
- brDigits->SetAddress(&fDigits);
+ brDigits->SetAddress(&digits);
}else{
cerr<<"EXEC Branch FMD digits not found"<<endl;
return;
if(plFMD->TreeR()==0) plFMD->MakeTree("R");
//Make branches
- fFMD->MakeBranch("R");
+ const Int_t kBufferSize = 16000;
+ plFMD->TreeR()->Branch("FMD", &reconParticles, kBufferSize);
Int_t zeroADC=6;
// read Digits
AliFMDdigit *fmdDigit;
- if (fFMD)
- {
- plFMD->TreeD()->GetEvent(0);
-
- Int_t nDigits=fDigits->GetEntries();
+ if (plFMD->TreeD()->GetEvent(0))
+ {
+ Int_t nDigits=digits->GetEntries();
Int_t recParticles[6];
Int_t nRecPart=0 ;
Int_t zeroPads=0;
Float_t channelWidth=(22400*50)/1024;
for (Int_t digit=0;digit<nDigits;digit++)
{
- fmdDigit=(AliFMDdigit*)fDigits->UncheckedAt(digit);
+ fmdDigit=(AliFMDdigit*)digits->UncheckedAt(digit);
ivol=fmdDigit->Volume();
iSector=fmdDigit->NumberOfSector();
iRing=fmdDigit->NumberOfRing();
recParticles[3]=rmin;
recParticles[4]=rmax;
recParticles[5]= fRecon;
- new((*fReconParticles)[nRecPart++]) AliFMDReconstParticles(recParticles);
+ new((*reconParticles)[nRecPart++]) AliFMDReconstParticles(recParticles);
} // eta
} // volume
- }//if FMD
+ }//if (plFMD->TreeD()->GetEvent(0))
plFMD->TreeR()->Reset();
plFMD->TreeR()->Fill();
plFMD->WriteRecPoints("OVERWRITE");
--- /dev/null
+#ifdef __CINT__
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#pragma link C++ class AliFMDdigit+;
+
+#endif
--- /dev/null
+#ifdef __CINT__
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#pragma link C++ class AliFMDReconstructor+;
+#pragma link C++ class AliFMDReconstParticles+;
+
+#endif
#pragma link C++ class AliFMDv0+;
#pragma link C++ class AliFMDv1+;
#pragma link C++ class AliFMDhit+;
-#pragma link C++ class AliFMDdigit+;
-#pragma link C++ class AliFMDReconstructor+;
-#pragma link C++ class AliFMDReconstParticles+;
#pragma link C++ class AliFMDDigitizer+;
#endif
+++ /dev/null
-SRCS= AliFMD.cxx AliFMDv0.cxx AliFMDv1.cxx AliFMDhit.cxx AliFMDdigit.cxx AliFMDReconstructor.cxx AliFMDReconstParticles.cxx AliFMDDigitizer.cxx
-
-
-HDRS= $(SRCS:.cxx=.h)
-
-DHDR:=FMDLinkDef.h
-
--- /dev/null
+#-*- Mode: Makefile -*-
+# $Id$
+
+SRCS= AliFMDdigit.cxx
+
+
+HDRS= $(SRCS:.cxx=.h)
+
+DHDR:=FMDbaseLinkDef.h
+
--- /dev/null
+#-*- Mode: Makefile -*-
+# $Id$
+
+SRCS= AliFMDReconstructor.cxx AliFMDReconstParticles.cxx
+
+
+HDRS= $(SRCS:.cxx=.h)
+
+DHDR:=FMDrecLinkDef.h
+
--- /dev/null
+#-*- Mode: Makefile -*-
+# $Id$
+
+SRCS= AliFMD.cxx AliFMDv0.cxx AliFMDv1.cxx AliFMDhit.cxx AliFMDDigitizer.cxx
+
+
+HDRS= $(SRCS:.cxx=.h)
+
+DHDR:=FMDsimLinkDef.h
+
--- /dev/null
+#ifdef __CINT__
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#pragma link C++ class AliSTARTdigit+;
+#pragma link C++ class AliSTARTLoader+;
+
+#endif
--- /dev/null
+#ifdef __CINT__
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#pragma link C++ class AliSTARTReconstructor+;
+
+#endif
#pragma link C++ class AliSTARTv1+;
#pragma link C++ class AliSTARThit+;
#pragma link C++ class AliSTARThitPhoton+;
-#pragma link C++ class AliSTARTdigit+;
-#pragma link C++ class AliSTARTReconstructor+;
#pragma link C++ class AliSTARTDigitizer+;
-#pragma link C++ class AliSTARTLoader+;
#endif
+++ /dev/null
-SRCS= AliSTART.cxx AliSTARTv0.cxx AliSTARTv1.cxx AliSTARThit.cxx AliSTARTdigit.cxx AliSTARTReconstructor.cxx AliSTARTDigitizer.cxx AliSTARThitPhoton.cxx AliSTARTLoader.cxx
-
-HDRS= $(SRCS:.cxx=.h)
-
-
-DHDR:= STARTLinkDef.h
-
--- /dev/null
+#-*- Mode: Makefile -*-
+# $Id$
+
+SRCS= AliSTARTdigit.cxx AliSTARTLoader.cxx
+
+HDRS= $(SRCS:.cxx=.h)
+
+
+DHDR:= STARTbaseLinkDef.h
+
--- /dev/null
+#-*- Mode: Makefile -*-
+# $Id$
+
+SRCS= AliSTARTReconstructor.cxx
+
+HDRS= $(SRCS:.cxx=.h)
+
+
+DHDR:= STARTrecLinkDef.h
+
--- /dev/null
+#-*- Mode: Makefile -*-
+# $Id$
+
+SRCS= AliSTART.cxx AliSTARTv0.cxx AliSTARTv1.cxx AliSTARThit.cxx AliSTARTDigitizer.cxx AliSTARThitPhoton.cxx
+
+HDRS= $(SRCS:.cxx=.h)
+
+
+DHDR:= STARTsimLinkDef.h
+
EMCAL/module.mk: EMCAL/libEMCAL.pkg
EPEMGEN/module.mk: EPEMGEN/libEPEMGEN.pkg
EVGEN/module.mk: EVGEN/libEVGEN.pkg
-FMD/module.mk: FMD/libFMD.pkg
+FMD/module.mk: FMD/libFMDbase.pkg FMD/libFMDsim.pkg FMD/libFMDrec.pkg
FASTSIM/module.mk: FASTSIM/libFASTSIM.pkg
Flugg/module.mk: Flugg/libFlugg.pkg
HBTAN/module.mk: HBTAN/libHBTAN.pkg
RALICE/module.mk: RALICE/libRALICE.pkg
RAW/module.mk: RAW/libRAW.pkg
RICH/module.mk: RICH/libRICH.pkg
-START/module.mk: START/libSTART.pkg
+START/module.mk: START/libSTARTbase.pkg START/libSTARTsim.pkg START/libSTARTrec.pkg
STEER/module.mk: STEER/libSTEER.pkg
STRUCT/module.mk: STRUCT/libSTRUCT.pkg
TEPEMGEN/module.mk: TEPEMGEN/libTEPEMGEN.pkg