X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUON.cxx;h=e02164ecfb68e17d21bbc93c5c2babbf5d006603;hb=8c0e3489b34f51f1e2b69d87f28fea86e956fa4a;hp=66cef7a182220d90092b5f0fd8c36e3e44f4b9af;hpb=88cb7938ca21d4a80991d4e7aa564008c29340f7;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUON.cxx b/MUON/AliMUON.cxx index 66cef7a1822..e02164ecfb6 100644 --- a/MUON/AliMUON.cxx +++ b/MUON/AliMUON.cxx @@ -12,124 +12,6 @@ * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.56.4.8 2003/06/30 18:32:58 hristov -fHits array is not stored in file - intrdoducing proper protections in SetTreeAddress and MakeBranch in all detectors. Increasing version of class in detectors. (P.Skowronski) - -Revision 1.56.4.7 2003/06/24 14:08:27 pcrochet -Trigger with NewIO - -Revision 1.56.4.6 2003/06/11 16:45:07 martinez -NewIO in Digits2Reco - -Revision 1.56.4.5 2003/05/16 14:40:24 martinez -New IO in AliMUON - -Revision 1.56.4.4 2003/05/14 15:24:08 martinez -Merging with NewIO: New AddHit function - -Revision 1.60 2003/05/13 17:04:22 martinez -Adding new AddHit function - -Revision 1.59 2002/11/21 17:01:56 alibrary -Removing AliMCProcess and AliMC - -Revision 1.58 2002/10/21 09:01:33 alibrary -Getting rid of unused variable - -Revision 1.57 2002/10/14 14:57:29 hristov -Merging the VirtualMC branch to the main development branch (HEAD) - -Revision 1.56.6.2 2002/07/24 10:07:20 alibrary -Updating VirtualMC - -Revision 1.56.6.1 2002/06/10 15:10:14 hristov -Merged with v3-08-02 - -Revision 1.56 2001/11/22 11:26:28 jchudoba -Proper deletion of arrays, deletion of unused variables (thanks to Rene Brun) - -Revision 1.55 2001/09/07 08:38:30 hristov -Pointers initialised to 0 in the default constructors - -Revision 1.54 2001/08/30 09:52:12 hristov -The operator[] is replaced by At() or AddAt() in case of TObjArray. - -Revision 1.53 2001/07/20 10:03:13 morsch -Changes needed to work with Root 3.01 (substitute lhs [] operator). (Jiri Chudoba) - -Revision 1.52 2001/06/14 13:49:22 hristov -Write a TreeD in SDigits2Digits method (needed to be compatible with alirun script) - -Revision 1.51 2001/05/31 10:19:52 morsch -Fix for new AliRun::RunReco(). - -Revision 1.50 2001/05/16 14:57:17 alibrary -New files for folders and Stack - -Revision 1.49 2001/03/12 17:45:48 hristov -Changes needed on Sun with CC 5.0 - -Revision 1.48 2001/03/06 00:01:36 morsch -Add Digits2Reco() and FindClusters() -Adapt call of cluster finder to new STEER. - -Revision 1.47 2001/03/05 08:38:36 morsch -Digitization related methods moved to AliMUONMerger. - -Revision 1.46 2001/01/26 21:34:59 morsch -Use access functions for AliMUONHit, AliMUONDigit and AliMUONPadHit data members. - -Revision 1.45 2001/01/26 20:00:49 hristov -Major upgrade of AliRoot code - -Revision 1.44 2001/01/25 17:39:09 morsch -Pass size of fNdch and fNrawch to CINT. - -Revision 1.43 2001/01/23 18:58:19 hristov -Initialisation of some pointers - -Revision 1.42 2001/01/17 20:53:40 hristov -Destructors corrected to avoid memory leaks - -Revision 1.41 2000/12/21 22:12:40 morsch -Clean-up of coding rule violations, - -Revision 1.40 2000/11/29 20:32:26 gosset -Digitize: -1. correction for array index out of bounds -2. one printout commented - -Revision 1.39 2000/11/12 17:17:03 pcrochet -BuildGeometry of AliMUON for trigger chambers delegated to AliMUONSegmentationTriggerX (same strategy as for tracking chambers) - -Revision 1.38 2000/11/06 09:20:43 morsch -AliMUON delegates part of BuildGeometry() to AliMUONSegmentation using the -Draw() method. This avoids code and parameter replication. - -Revision 1.37 2000/10/26 09:53:37 pcrochet -put back trigger chambers in the display (there was a problem in buildgeometry) - -Revision 1.36 2000/10/25 19:51:18 morsch -Correct x-position of chambers. - -Revision 1.35 2000/10/24 19:46:21 morsch -BuildGeometry updated for slats in station 3-4. - -Revision 1.34 2000/10/18 11:42:06 morsch -- AliMUONRawCluster contains z-position. -- Some clean-up of useless print statements during initialisations. - -Revision 1.33 2000/10/09 14:01:57 morsch -Unused variables removed. - -Revision 1.32 2000/10/06 09:08:10 morsch -Built geometry includes slat geometry for event display. - -Revision 1.31 2000/10/02 21:28:08 fca -Removal of useless dependecies via forward declarations -*/ /* $Id$ */ @@ -163,28 +45,32 @@ Removal of useless dependecies via forward declarations #include #include -#include "AliConst.h" -#include "AliHeader.h" -#include "AliHitMap.h" +//#include "AliHeader.h" #include "AliLoader.h" +#include "AliRunDigitizer.h" +#include "AliMC.h" +#include "AliRun.h" #include "AliMUON.h" #include "AliMUONChamberTrigger.h" -#include "AliMUONClusterFinderVS.h" -#include "AliMUONClusterInput.h" #include "AliMUONConstants.h" -#include "AliMUONDigit.h" -#include "AliMUONGlobalTrigger.h" -#include "AliMUONHit.h" -#include "AliMUONHitMapA1.h" -#include "AliMUONLocalTrigger.h" -#include "AliMUONMerger.h" -#include "AliMUONPadHit.h" +#include "AliMUONHit.h" #include "AliMUONRawCluster.h" #include "AliMUONTransientDigit.h" #include "AliMUONTriggerCircuit.h" -#include "AliMUONTriggerDecision.h" -#include "AliRun.h" - +#include "AliMUONGeometry.h" +#include "AliMUONGeometryTransformer.h" +#include "AliMUONGeometryBuilder.h" +#include "AliMUONCommonGeometryBuilder.h" +#include "AliMUONVGeometryBuilder.h" +#include "AliMUONGeometrySegmentation.h" +#include "AliMUONDigitizerv2.h" +#include "AliMUONSDigitizerv1.h" +#include "AliMUONRawWriter.h" +#include "AliMUONSegmentation.h" +#include "AliLog.h" + +#include "AliMUONSDigitizerV2.h" +#include "AliMUONDigitizerV3.h" // Defaults parameters for Z positions of chambers // taken from values for "stations" in AliMUON::AliMUON @@ -201,1004 +87,439 @@ Removal of useless dependecies via forward declarations // for the first and second chambers in the station, respectively ClassImp(AliMUON) -//___________________________________________ + +//__________________________________________________________________ AliMUON::AliMUON() + : AliDetector(), + fNCh(0), + fNTrackingCh(0), + fMUONData(0), + fSplitLevel(0), + fChambers(0), + fTriggerCircuits(0), + fGeometryBuilder(0), + fSegmentation(0), + fAccCut(kFALSE), + fAccMin(0.), + fAccMax(0.), + fMaxStepGas(0.), + fMaxStepAlu(0.), + fMaxDestepGas(0.), + fMaxDestepAlu(0.), + fMaxIterPad(0), + fCurIterPad(0), + fTriggerScalerEvent(kFALSE), + fSDigitizerType(""), + fDigitizerType("") { // Default Constructor // - fNCh = 0; - fNTrackingCh = 0; + AliDebug(1,Form("default (empty) ctor this=%p",this)); fIshunt = 0; - fPadHits = 0; - fNPadHits = 0; - fChambers = 0; - fDchambers = 0; - fTriggerCircuits = 0; - fNdch = 0; - fRawClusters = 0; - fNrawch = 0; - fGlobalTrigger = 0; - fNLocalTrigger = 0; - fLocalTrigger = 0; - fNLocalTrigger = 0; - fAccMin = 0.; - fAccMax = 0.; - fAccCut = kFALSE; - fMerger = 0; - fFileName = 0; } - -//___________________________________________ -AliMUON::AliMUON(const char *name, const char *title) - : AliDetector(name,title) -{ -//Begin_Html -/* - -*/ -//End_Html - - fHits = new TClonesArray("AliMUONHit",1000); - gAlice->AddHitList(fHits); - fPadHits = new TClonesArray("AliMUONPadHit",10000); - fNPadHits = 0; - fIshunt = 0; - - fNCh = AliMUONConstants::NCh(); - fNTrackingCh = AliMUONConstants::NTrackingCh(); - fNdch = new Int_t[fNCh]; - - fDchambers = new TObjArray(AliMUONConstants::NCh()); - - Int_t i; - - for (i=0; iAddAt(new TClonesArray("AliMUONDigit",10000),i); - fNdch[i]=0; - } - - fNrawch = new Int_t[fNTrackingCh]; - - fRawClusters = new TObjArray(AliMUONConstants::NTrackingCh()); - - for (i=0; iAddAt(new TClonesArray("AliMUONRawCluster",10000),i); - fNrawch[i]=0; - } - fGlobalTrigger = new TClonesArray("AliMUONGlobalTrigger",1); - fNGlobalTrigger = 0; - fLocalTrigger = new TClonesArray("AliMUONLocalTrigger",234); - fNLocalTrigger = 0; +//__________________________________________________________________ +AliMUON::AliMUON(const char *name, const char *title, + const char* sDigitizerClassName, + const char* digitizerClassName) + : AliDetector(name,title), + fNCh(AliMUONConstants::NCh()), + fNTrackingCh(AliMUONConstants::NTrackingCh()), + fMUONData(0), + fSplitLevel(0), + fChambers(0), + fTriggerCircuits(0), + fGeometryBuilder(0), + fSegmentation(0), + fAccCut(kFALSE), + fAccMin(0.), + fAccMax(0.), + fMaxStepGas(0.1), + fMaxStepAlu(0.1), + fMaxDestepGas(-1), // Negatives values are ignored by geant3 CONS200 + fMaxDestepAlu(-1), // in the calculation of the tracking parameters + fMaxIterPad(0), + fCurIterPad(0), + fTriggerScalerEvent(kFALSE), + fSDigitizerType(sDigitizerClassName), + fDigitizerType(digitizerClassName) +{ + AliDebug(1,Form("ctor this=%p",this)); + fIshunt = 0; + + SetMarkerColor(kRed);// + + // Geometry builder + fGeometryBuilder = new AliMUONGeometryBuilder(this); + + // Common geometry definitions + fGeometryBuilder + ->AddBuilder(new AliMUONCommonGeometryBuilder(this)); - SetMarkerColor(kRed); -// -// // -// - +// Creating List of Chambers Int_t ch; - fChambers = new TObjArray(AliMUONConstants::NCh()); // Loop over stations for (Int_t st = 0; st < AliMUONConstants::NCh() / 2; st++) { // Loop over 2 chambers in the station - for (Int_t stCH = 0; stCH < 2; stCH++) { -// -// -// Default Parameters for Muon Tracking Stations - - - ch = 2 * st + stCH; -// - if (ch < AliMUONConstants::NTrackingCh()) { - fChambers->AddAt(new AliMUONChamber(ch),ch); - } else { - fChambers->AddAt(new AliMUONChamberTrigger(ch),ch); - } - - //PH AliMUONChamber* chamber = (AliMUONChamber*) (*fChambers)[ch]; - AliMUONChamber* chamber = (AliMUONChamber*) fChambers->At(ch); - - chamber->SetGid(0); - // Default values for Z of chambers - chamber->SetZ(AliMUONConstants::DefaultChamberZ(ch)); -// - chamber->InitGeo(AliMUONConstants::DefaultChamberZ(ch)); -// Set chamber inner and outer radius to default - chamber->SetRInner(AliMUONConstants::Dmin(st)/2); - chamber->SetROuter(AliMUONConstants::Dmax(st)/2); -// - } // Chamber stCH (0, 1) in + for (Int_t stCH = 0; stCH < 2; stCH++) { + // + // + // Default Parameters for Muon Tracking Stations + ch = 2 * st + stCH; + if (ch < AliMUONConstants::NTrackingCh()) { + fChambers->AddAt(new AliMUONChamber(ch),ch); + } else { + fChambers->AddAt(new AliMUONChamberTrigger(ch, GetGeometryTransformer()),ch); + } + } // Chamber stCH (0, 1) in } // Station st (0...) -// fChambers->SetLast(AliMUONConstants::NCh()); - fMaxStepGas=0.01; - fMaxStepAlu=0.1; - fMaxDestepGas=-1; - fMaxDestepAlu=-1; -// - fMaxIterPad = 0; - fCurIterPad = 0; -// - fAccMin = 0.; - fAccMax = 0.; - fAccCut = kFALSE; - - // cp new design of AliMUONTriggerDecision - fTriggerCircuits = new TObjArray(AliMUONConstants::NTriggerCircuit()); - for (Int_t circ=0; circAddAt(new AliMUONTriggerCircuit(),circ); - - } - fMerger = 0; + + // cp new design of AliMUONTriggerDecision + fTriggerCircuits = new TObjArray(AliMUONConstants::NTriggerCircuit()); + for (Int_t circ=0; circAddAt(new AliMUONTriggerCircuit(),circ); + } } - -//___________________________________________ + +//____________________________________________________________________ AliMUON::AliMUON(const AliMUON& rMUON) + : AliDetector(rMUON) { -// Dummy copy constructor - ; - +// Protected copy constructor + + AliFatal("Not implemented."); } +//____________________________________________________________________ AliMUON::~AliMUON() { // Destructor - if(fDebug) printf("%s: Calling AliMUON destructor !!!\n",ClassName()); - - fIshunt = 0; - - // Delete TObjArrays - - if (fChambers){ - fChambers->Delete(); - delete fChambers; - } - - if (fTriggerCircuits){ - fTriggerCircuits->Delete(); - delete fTriggerCircuits; - } - - if (fDchambers){ - fDchambers->Delete(); - delete fDchambers; - } - - if (fRawClusters){ - fRawClusters->Delete(); - delete fRawClusters; - } - - if (fNrawch) delete [] fNrawch; - - // Delete TClonesArrays - - if (fPadHits){ - fPadHits->Delete(); - delete fPadHits; - } - - if (fGlobalTrigger){ - fGlobalTrigger->Delete(); - delete fGlobalTrigger; - } - fNGlobalTrigger = 0; - - if (fLocalTrigger){ - fLocalTrigger->Delete(); - delete fLocalTrigger; - } - fNLocalTrigger = 0; - - if (fHits) { - fHits->Delete(); - delete fHits; - } - - if (fMerger) delete fMerger; - if (fNdch) delete [] fNdch; + AliDebug(1,Form("dtor this=%p",this)); + fIshunt = 0; + if (fChambers){ + fChambers->Delete(); + delete fChambers; + } + if (fTriggerCircuits){ + fTriggerCircuits->Delete(); + delete fTriggerCircuits; + } + delete fMUONData; + delete fGeometryBuilder; + delete fSegmentation; } - -//___________________________________________ -void AliMUON::AddHit(Int_t track, Int_t *vol, Float_t *hits) -{ - TClonesArray &lhits = *fHits; - new(lhits[fNhits++]) AliMUONHit(fIshunt,track,vol,hits); -} -//___________________________________________ -void AliMUON::AddHit(Int_t fIshunt, Int_t track, Int_t iChamber, - Int_t idpart, Float_t X, Float_t Y, Float_t Z, - Float_t tof, Float_t momentum, Float_t theta, - Float_t phi, Float_t length, Float_t destep) -{ - TClonesArray &lhits = *fHits; - new(lhits[fNhits++]) AliMUONHit(fIshunt, track, iChamber, - idpart, X, Y, Z, - tof, momentum, theta, - phi, length, destep); -} -//___________________________________________ -void AliMUON::AddPadHit(Int_t *clhits) // To be removed -{ - TClonesArray &lclusters = *fPadHits; - new(lclusters[fNPadHits++]) AliMUONPadHit(clhits); -} -//_____________________________________________________________________________ -void AliMUON::AddDigits(Int_t id, Int_t *tracks, Int_t *charges, Int_t *digits) + +//________________________________________________________________________ +AliMUON& AliMUON::operator = (const AliMUON& rhs) { - // - // Add a MUON digit to the list - // +// Protected assignement operator - //PH TClonesArray &ldigits = *((TClonesArray*)(*fDchambers)[id]); - TClonesArray &ldigits = *((TClonesArray*)fDchambers->At(id)); - new(ldigits[fNdch[id]++]) AliMUONDigit(tracks,charges,digits); + if (this == &rhs) return *this; + + AliFatal("Not implemented."); + + return *this; } //_____________________________________________________________________________ -void AliMUON::AddRawCluster(Int_t id, const AliMUONRawCluster& c) +void AliMUON::AddGeometryBuilder(AliMUONVGeometryBuilder* geomBuilder) { - // - // Add a MUON digit to the list - // - - //PH TClonesArray &lrawcl = *((TClonesArray*)(*fRawClusters)[id]); - TClonesArray &lrawcl = *((TClonesArray*)fRawClusters->At(id)); - new(lrawcl[fNrawch[id]++]) AliMUONRawCluster(c); -} +// Adds the geometry builder to the list +// --- -//___________________________________________ -void AliMUON::AddGlobalTrigger(Int_t *singlePlus, Int_t *singleMinus, - Int_t *singleUndef, - Int_t *pairUnlike, Int_t *pairLike) -{ -// add a MUON Global Trigger to the list (only one GlobalTrigger per event !) - TClonesArray &globalTrigger = *fGlobalTrigger; - new(globalTrigger[fNGlobalTrigger++]) - AliMUONGlobalTrigger(singlePlus, singleMinus, singleUndef, pairUnlike, - pairLike); -} -//___________________________________________ -void AliMUON::AddLocalTrigger(Int_t *localtr) -{ -// add a MUON Local Trigger to the list - TClonesArray &localTrigger = *fLocalTrigger; - new(localTrigger[fNLocalTrigger++]) AliMUONLocalTrigger(localtr); + fGeometryBuilder->AddBuilder(geomBuilder); } -//___________________________________________ +//____________________________________________________________________ void AliMUON::BuildGeometry() { // Geometry for event display - for (Int_t i=0; i<7; i++) { - for (Int_t j=0; j<2; j++) { - Int_t id=2*i+j+1; - this->Chamber(id-1).SegmentationModel(1)->Draw("eventdisplay"); - } - } -} - -//___________________________________________ -Int_t AliMUON::DistancetoPrimitive(Int_t , Int_t ) -{ - return 9999; -} - -//___________________________________________ -void AliMUON::MakeBranch(Option_t* option) -{ - // - // Create Tree branches for the MUON. - // - const Int_t kBufferSize = 4000; - char branchname[30]; - sprintf(branchname,"%sCluster",GetName()); - - - const char *cD = strstr(option,"D"); - const char *cR = strstr(option,"R"); - const char *cH = strstr(option,"H"); - if (TreeH() && cH) - { - if (fPadHits == 0x0) fPadHits = new TClonesArray("AliMUONPadHit",10000); - MakeBranchInTree(TreeH(), branchname, &fPadHits, kBufferSize, 0); - if (fHits == 0x0) fHits = new TClonesArray("AliMUONHit",1000); - } - //it must be under fHits creation - AliDetector::MakeBranch(option); - - if (cD && fLoader->TreeD()) { - // - // one branch for digits per chamber - // - Int_t i; - if (fDchambers == 0x0) - { - fDchambers = new TObjArray(AliMUONConstants::NCh()); - for (Int_t i=0; iAddAt(new TClonesArray("AliMUONDigit",10000),i); - } - } - - for (i=0; iTreeD(), branchname, &((*fDchambers)[i]), kBufferSize, 0); - printf("Making Branch %s for digits in chamber %d\n",branchname,i+1); - } - } - - if (cR && fLoader->TreeR()) { - // - // one branch for raw clusters per chamber - // - printf("Make Branch - TreeR address %p\n",fLoader->TreeR()); - - Int_t i; - if (fRawClusters == 0x0) - { - fRawClusters = new TObjArray(AliMUONConstants::NTrackingCh()); - for (Int_t i=0; iAddAt(new TClonesArray("AliMUONRawCluster",10000),i); - } - } - for (i=0; iTreeR(), branchname, &((*fRawClusters)[i]), kBufferSize, 0); - printf("Making Branch %s for raw clusters in chamber %d\n",branchname,i+1); - } - // - // one branch for global trigger - // - sprintf(branchname,"%sGlobalTrigger",GetName()); - - if (fGlobalTrigger == 0x0) { - fGlobalTrigger = new TClonesArray("AliMUONGlobalTrigger",1); - } - MakeBranchInTree(fLoader->TreeR(), branchname, &fGlobalTrigger, kBufferSize, 0); - printf("Making Branch %s for Global Trigger\n",branchname); - // - // one branch for local trigger - // - sprintf(branchname,"%sLocalTrigger",GetName()); - - if (fLocalTrigger == 0x0) { - fLocalTrigger = new TClonesArray("AliMUONLocalTrigger",234); - } - - MakeBranchInTree(fLoader->TreeR(), branchname, &fLocalTrigger, kBufferSize, 0); - printf("Making Branch %s for Local Trigger\n",branchname); - } +// for (Int_t i = 0; i < AliMUONConstants::NCh(); i++) +// this->Chamber(i).SegmentationModel2(1)->Draw("eventdisplay");// to be check ! + + } -//___________________________________________ -void AliMUON::SetTreeAddress() +//____________________________________________________________________ +const AliMUONGeometry* AliMUON::GetGeometry() const { - // Set branch address for the Hits and Digits Tree. - char branchname[30]; +// Return geometry parametrisation - TBranch *branch; - TTree *treeH = fLoader->TreeH(); - TTree *treeD = fLoader->TreeD(); - TTree *treeR = fLoader->TreeR(); - - if (treeH) { - if (fPadHits == 0x0) fPadHits = new TClonesArray("AliMUONPadHit",10000); - if (fPadHits) { - branch = treeH->GetBranch("MUONCluster"); - if (branch) branch->SetAddress(&fPadHits); - } - if (fHits == 0x0) fHits = new TClonesArray("AliMUONHit",1000); + if ( !fGeometryBuilder) { + AliWarningStream() << "GeometryBuilder not defined." << std::endl; + return 0; } - //it must be under fHits creation - AliDetector::SetTreeAddress(); - - if (treeD) { - if (fDchambers == 0x0) - { - fDchambers = new TObjArray(AliMUONConstants::NCh()); - for (Int_t i=0; iAddAt(new TClonesArray("AliMUONDigit",10000),i); - } - } - for (int i=0; iGetBranch(branchname); - if (branch) branch->SetAddress(&((*fDchambers)[i])); - } - } - } - - // printf("SetTreeAddress --- treeR address %p \n",treeR); - - if (treeR) { - if (fRawClusters == 0x0) - { - fRawClusters = new TObjArray(AliMUONConstants::NTrackingCh()); - for (Int_t i=0; iAddAt(new TClonesArray("AliMUONRawCluster",10000),i); - } - } - - for (int i=0; iGetBranch(branchname); - if (branch) branch->SetAddress(&((*fRawClusters)[i])); - } - } - - if (fLocalTrigger == 0x0) { - fLocalTrigger = new TClonesArray("AliMUONLocalTrigger",234); - } - - if (fLocalTrigger) { - branch = treeR->GetBranch("MUONLocalTrigger"); - if (branch) branch->SetAddress(&fLocalTrigger); - } - - if (fGlobalTrigger == 0x0) { - fGlobalTrigger = new TClonesArray("AliMUONGlobalTrigger",1); - } - - if (fGlobalTrigger) { - branch = treeR->GetBranch("MUONGlobalTrigger"); - if (branch) branch->SetAddress(&fGlobalTrigger); - } - } -} -//___________________________________________ -void AliMUON::ResetHits() -{ - // Reset number of clusters and the cluster array for this detector - AliDetector::ResetHits(); - fNPadHits = 0; - if (fPadHits) fPadHits->Clear(); -} - -//____________________________________________ -void AliMUON::ResetDigits() -{ - // - // Reset number of digits and the digits array for this detector - // - for ( int i=0;iClear(); - if ((*fDchambers)[i]) ((TClonesArray*)fDchambers->At(i))->Clear(); - if (fNdch) fNdch[i]=0; - } -} -//____________________________________________ -void AliMUON::ResetRawClusters() -{ - // - // Reset number of raw clusters and the raw clust array for this detector - // - for ( int i=0;iClear(); - if ((*fRawClusters)[i]) ((TClonesArray*)fRawClusters->At(i))->Clear(); - if (fNrawch) fNrawch[i]=0; - } -} - -//____________________________________________ -void AliMUON::ResetTrigger() -{ - // Reset Local and Global Trigger - fNGlobalTrigger = 0; - if (fGlobalTrigger) fGlobalTrigger->Clear(); - fNLocalTrigger = 0; - if (fLocalTrigger) fLocalTrigger->Clear(); -} - -//____________________________________________ -void AliMUON::SetPadSize(Int_t id, Int_t isec, Float_t p1, Float_t p2) -{ -// Set the pad size for chamber id and cathode isec - Int_t i=2*(id-1); - //PH ((AliMUONChamber*) (*fChambers)[i]) ->SetPadSize(isec,p1,p2); - //PH ((AliMUONChamber*) (*fChambers)[i+1])->SetPadSize(isec,p1,p2); - ((AliMUONChamber*) fChambers->At(i)) ->SetPadSize(isec,p1,p2); - ((AliMUONChamber*) fChambers->At(i+1))->SetPadSize(isec,p1,p2); -} + + return fGeometryBuilder->GetGeometry(); +} -//___________________________________________ -void AliMUON::SetChambersZ(const Float_t *Z) +//____________________________________________________________________ +const AliMUONGeometryTransformer* AliMUON::GetGeometryTransformer() const { - // Set Z values for all chambers (tracking and trigger) - // from the array pointed to by "Z" - for (Int_t ch = 0; ch < AliMUONConstants::NCh(); ch++) - //PH ((AliMUONChamber*) ((*fChambers)[ch]))->SetZ(Z[ch]); - ((AliMUONChamber*) fChambers->At(ch))->SetZ(Z[ch]); - return; -} +// Return geometry parametrisation -//___________________________________________ -void AliMUON::SetChambersZToDefault() -{ - // Set Z values for all chambers (tracking and trigger) - // to default values - SetChambersZ(AliMUONConstants::DefaultChamberZ()); - return; + const AliMUONGeometry* kGeometry = GetGeometry(); + + if ( !kGeometry) return 0; + + return kGeometry->GetTransformer(); +} + +//__________________________________________________________________ +void AliMUON::SetTreeAddress() +{ + GetMUONData()->SetLoader(fLoader); + // GetMUONData()->MakeBranch("D,S,RC"); + // GetMUONData()->SetTreeAddress("H,D,S,RC"); + GetMUONData()->SetTreeAddress("H"); + if (fHits != GetMUONData()->Hits()) { + if ( gAlice->GetMCApp() ) + if ( gAlice->GetMCApp()->GetHitLists() ) { + fHits = GetMUONData()->Hits(); + gAlice->GetMCApp()->AddHitList(fHits); // For purifyKine, only necessary when Hit list is created in AliMUONData + } + } + fHits = GetMUONData()->Hits(); // Added by Ivana to use the methods FisrtHit, NextHit of AliDetector } -//___________________________________________ +//_________________________________________________________________ void AliMUON::SetChargeSlope(Int_t id, Float_t p1) { // Set the inverse charge slope for chamber id - Int_t i=2*(id-1); - //PH ((AliMUONChamber*) (*fChambers)[i])->SetChargeSlope(p1); - //PH ((AliMUONChamber*) (*fChambers)[i+1])->SetChargeSlope(p1); + Int_t i=2*(id-1); //PH ((AliMUONChamber*) (*fChambers)[i])->SetSigmaIntegration(p1); + //PH ((AliMUONChamber*) (*fChambers)[i+1])->SetSigmaIntegration(p1); ((AliMUONChamber*) fChambers->At(i))->SetChargeSlope(p1); ((AliMUONChamber*) fChambers->At(i+1))->SetChargeSlope(p1); } - -//___________________________________________ +//__________________________________________________________________ void AliMUON::SetChargeSpread(Int_t id, Float_t p1, Float_t p2) { // Set sigma of charge spread for chamber id Int_t i=2*(id-1); - //PH ((AliMUONChamber*) fChambers->At(i))->SetChargeSpread(p1,p2); - //PH ((AliMUONChamber*) fChambers->Ati+1])->SetChargeSpread(p1,p2); ((AliMUONChamber*) fChambers->At(i))->SetChargeSpread(p1,p2); ((AliMUONChamber*) fChambers->At(i+1))->SetChargeSpread(p1,p2); } - -//___________________________________________ +//___________________________________________________________________ void AliMUON::SetSigmaIntegration(Int_t id, Float_t p1) { // Set integration limits for charge spread Int_t i=2*(id-1); - //PH ((AliMUONChamber*) (*fChambers)[i])->SetSigmaIntegration(p1); - //PH ((AliMUONChamber*) (*fChambers)[i+1])->SetSigmaIntegration(p1); ((AliMUONChamber*) fChambers->At(i))->SetSigmaIntegration(p1); ((AliMUONChamber*) fChambers->At(i+1))->SetSigmaIntegration(p1); } -//___________________________________________ +//__________________________________________________________________ void AliMUON::SetMaxAdc(Int_t id, Int_t p1) { // Set maximum number for ADCcounts (saturation) Int_t i=2*(id-1); - //PH ((AliMUONChamber*) (*fChambers)[i])->SetMaxAdc(p1); - //PH ((AliMUONChamber*) (*fChambers)[i+1])->SetMaxAdc(p1); ((AliMUONChamber*) fChambers->At(i))->SetMaxAdc(p1); ((AliMUONChamber*) fChambers->At(i+1))->SetMaxAdc(p1); } -//___________________________________________ +//__________________________________________________________________ void AliMUON::SetMaxStepGas(Float_t p1) { // Set stepsize in gas - fMaxStepGas=p1; + fMaxStepGas=p1; } - -//___________________________________________ +//__________________________________________________________________ void AliMUON::SetMaxStepAlu(Float_t p1) { // Set step size in Alu fMaxStepAlu=p1; } - -//___________________________________________ +//__________________________________________________________________ void AliMUON::SetMaxDestepGas(Float_t p1) { // Set maximum step size in Gas fMaxDestepGas=p1; } - -//___________________________________________ +//__________________________________________________________________ void AliMUON::SetMaxDestepAlu(Float_t p1) { // Set maximum step size in Alu - fMaxDestepAlu=p1; + fMaxDestepAlu=p1; +} + +//____________________________________________________________________ +Float_t AliMUON::GetMaxStepGas() const +{ +// Return stepsize in gas + + return fMaxStepGas; +} + +//____________________________________________________________________ +Float_t AliMUON::GetMaxStepAlu() const +{ +// Return step size in Alu + + return fMaxStepAlu; } -//___________________________________________ -void AliMUON::SetAcceptance(Bool_t acc, Float_t angmin, Float_t angmax) + +//____________________________________________________________________ +Float_t AliMUON::GetMaxDestepGas() const { -// Set acceptance cuts - fAccCut=acc; - fAccMin=angmin*TMath::Pi()/180; - fAccMax=angmax*TMath::Pi()/180; - Int_t ch; - if (acc) { - for (Int_t st = 0; st < AliMUONConstants::NCh() / 2; st++) { - // Loop over 2 chambers in the station - for (Int_t stCH = 0; stCH < 2; stCH++) { - ch = 2 * st + stCH; -// Set chamber inner and outer radius according to acceptance cuts - Chamber(ch).SetRInner(AliMUONConstants::DefaultChamberZ(ch)*TMath::Tan(fAccMin)); - Chamber(ch).SetROuter(AliMUONConstants::DefaultChamberZ(ch)*TMath::Tan(fAccMax)); - } // chamber loop - } // station loop - } +// Return maximum step size in Gas + + return fMaxDestepGas; } -//___________________________________________ -void AliMUON::SetSegmentationModel(Int_t id, Int_t isec, AliSegmentation *segmentation) + +//____________________________________________________________________ +Float_t AliMUON::GetMaxDestepAlu() const { -// Set the segmentation for chamber id cathode isec - //PH ((AliMUONChamber*) (*fChambers)[id])->SetSegmentationModel(isec, segmentation); - ((AliMUONChamber*) fChambers->At(id))->SetSegmentationModel(isec, segmentation); - +// Return maximum step size in Gas + + return fMaxDestepAlu; } -//___________________________________________ + +//____________________________________________________________________ + void AliMUON::SetAlign(Bool_t align) +{ + // Sets option for alignement to geometry builder + + fGeometryBuilder->SetAlign(align); +} + +//____________________________________________________________________ + void AliMUON::SetAlign(const TString& fileName, Bool_t align) +{ + // Sets option for alignement to geometry builder + + fGeometryBuilder->SetAlign(fileName, align); +} + +//____________________________________________________________________ void AliMUON::SetResponseModel(Int_t id, AliMUONResponse *response) { // Set the response for chamber id - //PH ((AliMUONChamber*) (*fChambers)[id])->SetResponseModel(response); ((AliMUONChamber*) fChambers->At(id))->SetResponseModel(response); } - -void AliMUON::SetReconstructionModel(Int_t id, AliMUONClusterFinderVS *reconst) +//____________________________________________________________________ +AliDigitizer* AliMUON::CreateDigitizer(AliRunDigitizer* manager) const { -// Set ClusterFinder for chamber id - //PH ((AliMUONChamber*) (*fChambers)[id])->SetReconstructionModel(reconst); - ((AliMUONChamber*) fChambers->At(id))->SetReconstructionModel(reconst); + // FIXME: the selection of the class should be done through a factory + // mechanism. (see also Hits2SDigits()). + + AliInfo(Form("Digitizer used : %s",fDigitizerType.Data())); + + if ( fDigitizerType == "digitizer:default" ) + { + return new AliMUONDigitizerv2(manager); + } + else if ( fDigitizerType == "digitizer:NewDigitizerNewTrigger" ) + { + return new AliMUONDigitizerV3(manager,AliMUONDigitizerV3::kTriggerElectronics); + } + else if ( fDigitizerType == "digitizer:NewDigitizerOldTrigger" ) + { + return new AliMUONDigitizerV3(manager,AliMUONDigitizerV3::kTriggerDecision); + } + else + { + AliFatal(Form("Unknown digitizer type : %s",fDigitizerType.Data())); + } + return 0x0; } -void AliMUON::SetNsec(Int_t id, Int_t nsec) +//_____________________________________________________________________ +TString +AliMUON::SDigitizerType() const { -// Set number of segmented cathods for chamber id - //PH ((AliMUONChamber*) (*fChambers)[id])->SetNsec(nsec); - ((AliMUONChamber*) fChambers->At(id))->SetNsec(nsec); + return fSDigitizerType; } -//___________________________________________ +//_____________________________________________________________________ void AliMUON::SDigits2Digits() { // write TreeD here - if (!fMerger) { - if (gAlice->GetDebug()>0) { - cerr<<"AliMUON::SDigits2Digits: create default AliMUONMerger "<Init(); - fMerger->Digitise(); char hname[30]; // sprintf(hname,"TreeD%d",fLoader->GetHeader()->GetEvent()); fLoader->TreeD()->Write(hname,TObject::kOverwrite); fLoader->TreeD()->Reset(); } -//___________________________________________ -// To be removed -void AliMUON::MakePadHits(Float_t xhit,Float_t yhit, Float_t zhit, - Float_t eloss, Float_t tof, Int_t idvol) +//_____________________________________________________________________ +void AliMUON::Hits2SDigits() { -// -// Calls the charge disintegration method of the current chamber and adds -// the simulated cluster to the root treee -// - Int_t clhits[7]; - Float_t newclust[6][500]; - Int_t nnew; - - -// -// Integrated pulse height on chamber - - - clhits[0]=fNhits+1; -// -// -// if (idvol == 6) printf("\n ->Disintegration %f %f %f", xhit, yhit, eloss ); - - - //PH ((AliMUONChamber*) (*fChambers)[idvol]) - ((AliMUONChamber*) fChambers->At(idvol)) - ->DisIntegration(eloss, tof, xhit, yhit, zhit, nnew, newclust); - Int_t ic=0; -// if (idvol == 6) printf("\n nnew %d \n", nnew); -// -// Add new clusters - for (Int_t i=0; i 0) { - ic++; -// Cathode plane - clhits[1] = Int_t(newclust[5][i]); -// Cluster Charge - clhits[2] = Int_t(newclust[0][i]); -// Pad: ix - clhits[3] = Int_t(newclust[1][i]); -// Pad: iy - clhits[4] = Int_t(newclust[2][i]); -// Pad: charge - clhits[5] = Int_t(newclust[3][i]); -// Pad: chamber sector - clhits[6] = Int_t(newclust[4][i]); - - AddPadHit(clhits); - } - } -} - -//___________________________________________ -void AliMUON::Trigger(Int_t nev){ -// call the Trigger Algorithm and fill TreeR - - Int_t singlePlus[3] = {0,0,0}; - Int_t singleMinus[3] = {0,0,0}; - Int_t singleUndef[3] = {0,0,0}; - Int_t pairUnlike[3] = {0,0,0}; - Int_t pairLike[3] = {0,0,0}; - - ResetTrigger(); - AliMUONTriggerDecision* decision= new AliMUONTriggerDecision(1); - decision->Trigger(); - decision->GetGlobalTrigger(singlePlus, singleMinus, singleUndef, - pairUnlike, pairLike); - -// add a local trigger in the list - AddGlobalTrigger(singlePlus, singleMinus, singleUndef, pairUnlike, pairLike); - Int_t i; + // FIXME: the selection of the sdigitizer should be done through a + // factory mechanism. - for (Int_t icirc=0; icircGetITrigger(icirc)==1) { - Int_t localtr[7]={0,0,0,0,0,0,0}; - Int_t loLpt[2]={0,0}; Int_t loHpt[2]={0,0}; Int_t loApt[2]={0,0}; - decision->GetLutOutput(icirc, loLpt, loHpt, loApt); - localtr[0] = icirc; - localtr[1] = decision->GetStripX11(icirc); - localtr[2] = decision->GetDev(icirc); - localtr[3] = decision->GetStripY11(icirc); - for (i=0; i<2; i++) { // convert the Lut output in 1 digit - localtr[4] = localtr[4]+Int_t(loLpt[i]*TMath::Power(2,i)); - localtr[5] = localtr[5]+Int_t(loHpt[i]*TMath::Power(2,i)); - localtr[6] = localtr[6]+Int_t(loApt[i]*TMath::Power(2,i)); - } - AddLocalTrigger(localtr); // add a local trigger in the list - } + AliInfo(Form("SDigitizer used : %s",fSDigitizerType.Data())); + + if ( fSDigitizerType == "sdigitizer:default" ) + { + // Adaption of AliMUONSDigitizerv1 to be excuted by the AliSimulation framework + AliRunLoader* runLoader = fLoader->GetRunLoader(); + AliRunDigitizer * manager = new AliRunDigitizer(1,1); + manager->SetInputStream(0,runLoader->GetFileName(),AliConfig::GetDefaultEventFolderName()); + AliMUONDigitizer * dMUON = new AliMUONSDigitizerv1(manager); + fLoader->LoadHits("READ"); + for (Int_t iEvent = 0; iEvent < runLoader->GetNumberOfEvents(); iEvent++) { + runLoader->GetEvent(iEvent); + dMUON->Exec(""); + } + fLoader->UnloadHits(); + } + else if ( fSDigitizerType == "sdigitizer:AliMUONSDigitizerV2" ) + { + TTask* sdigitizer = new AliMUONSDigitizerV2; + sdigitizer->ExecuteTask(); + } + else + { + AliFatal(Form("Unknown sdigitizer classname : %s",fSDigitizerType.Data())); } - - delete decision; - - fLoader->TreeR()->Fill(); -// char hname[30]; -// sprintf(hname,"TreeR%d",nev); -// fLoader->TreeR()->Write(hname,TObject::kOverwrite); -// fLoader->TreeR()->Reset(); - fLoader->WriteRecPoints("OVERWRITE"); - ResetTrigger(); - - printf("\n End of trigger for event %d", nev); } - -//____________________________________________ -void AliMUON::Digits2Reco() +//_____________________________________________________________________ +TString +AliMUON::DigitizerType() const { - FindClusters(); - Int_t nev = gAlice->GetHeader()->GetEvent(); - fLoader->TreeR()->Fill(); - // char hname[30]; - // sprintf(hname,"TreeR%d", nev); - //fLoader->TreeR()->Write(hname); - //fLoader->TreeR()->Reset(); - fLoader->WriteRecPoints("OVERWRITE"); - ResetRawClusters(); - printf("\n End of cluster finding for event %d", nev); + return fDigitizerType; } -void AliMUON::FindClusters() +//_____________________________________________________________________ +void AliMUON::Digits2Raw() { -// -// Perform cluster finding -// - TClonesArray *dig1, *dig2; - Int_t ndig, k; - dig1 = new TClonesArray("AliMUONDigit",1000); - dig2 = new TClonesArray("AliMUONDigit",1000); - AliMUONDigit *digit; -// Loop on chambers and on cathode planes -// - ResetRawClusters(); - TClonesArray * muonDigits; - - for (Int_t ich = 0; ich < 10; ich++) { - //PH AliMUONChamber* iChamber = (AliMUONChamber*) (*fChambers)[ich]; - AliMUONChamber* iChamber = (AliMUONChamber*) fChambers->At(ich); - AliMUONClusterFinderVS* rec = iChamber->ReconstructionModel(); - - ResetDigits(); - fLoader->TreeD()->GetEvent(0); - //TClonesArray * - muonDigits = (TClonesArray *) Dchambers()->At(ich); - ndig=muonDigits->GetEntriesFast(); - printf("\n 1 Found %d digits in %p chamber %d", ndig, muonDigits,ich); - TClonesArray &lhits1 = *dig1; - Int_t n = 0; - for (k = 0; k < ndig; k++) { - digit = (AliMUONDigit*) muonDigits->UncheckedAt(k); - if (rec->TestTrack(digit->Track(0))) - new(lhits1[n++]) AliMUONDigit(*digit); - } - ResetDigits(); - fLoader->TreeD()->GetEvent(1); - //muonDigits = this->DigitsAddress(ich); - muonDigits = (TClonesArray *) Dchambers()->At(ich); - ndig=muonDigits->GetEntriesFast(); - printf("\n 2 Found %d digits in %p %d", ndig, muonDigits, ich); - TClonesArray &lhits2 = *dig2; - n=0; - - for (k=0; kUncheckedAt(k); - if (rec->TestTrack(digit->Track(0))) - new(lhits2[n++]) AliMUONDigit(*digit); - } + // convert digits of the current event to raw data + AliMUONRawWriter rawData(fLoader,fMUONData); - if (rec) { - AliMUONClusterInput::Instance()->SetDigits(ich, dig1, dig2); - rec->FindRawClusters(); - } - dig1->Delete(); - dig2->Delete(); - } // for ich - delete dig1; - delete dig2; -} - -#ifdef never -void AliMUON::Streamer(TBuffer &R__b) -{ - // Stream an object of class AliMUON. - AliMUONChamber *iChamber; - AliMUONTriggerCircuit *iTriggerCircuit; - AliSegmentation *segmentation; - AliMUONResponse *response; - TClonesArray *digitsaddress; - TClonesArray *rawcladdress; - Int_t i; - if (R__b.IsReading()) { - Version_t R__v = R__b.ReadVersion(); if (R__v) { } - AliDetector::Streamer(R__b); - R__b >> fNPadHits; - R__b >> fPadHits; // diff - R__b >> fNLocalTrigger; - R__b >> fLocalTrigger; - R__b >> fNGlobalTrigger; - R__b >> fGlobalTrigger; - R__b >> fDchambers; - R__b >> fRawClusters; - R__b.ReadArray(fNdch); - R__b.ReadArray(fNrawch); - R__b >> fAccCut; - R__b >> fAccMin; - R__b >> fAccMax; - R__b >> fChambers; - R__b >> fTriggerCircuits; - for (i =0; iStreamer(R__b); - } -// Stream chamber related information - for (i =0; iStreamer(R__b); - if (iChamber->Nsec()==1) { - segmentation=iChamber->SegmentationModel(1); - if (segmentation) - segmentation->Streamer(R__b); - } else { - segmentation=iChamber->SegmentationModel(1); - if (segmentation) - segmentation->Streamer(R__b); - if (segmentation) - segmentation=iChamber->SegmentationModel(2); - segmentation->Streamer(R__b); - } - response=iChamber->ResponseModel(); - if (response) - response->Streamer(R__b); - digitsaddress=(TClonesArray*) (*fDchambers)[i]; - digitsaddress->Streamer(R__b); - if (i < AliMUONConstants::NTrackingCh()) { - rawcladdress=(TClonesArray*) (*fRawClusters)[i]; - rawcladdress->Streamer(R__b); - } - } - - } else { - R__b.WriteVersion(AliMUON::IsA()); - AliDetector::Streamer(R__b); - R__b << fNPadHits; - R__b << fPadHits; // diff - R__b << fNLocalTrigger; - R__b << fLocalTrigger; - R__b << fNGlobalTrigger; - R__b << fGlobalTrigger; - R__b << fDchambers; - R__b << fRawClusters; - R__b.WriteArray(fNdch, AliMUONConstants::NCh()); - R__b.WriteArray(fNrawch, AliMUONConstants::NTrackingCh()); - - R__b << fAccCut; - R__b << fAccMin; - R__b << fAccMax; - - R__b << fChambers; - R__b << fTriggerCircuits; - for (i =0; iStreamer(R__b); - } - for (i =0; iStreamer(R__b); - if (iChamber->Nsec()==1) { - segmentation=iChamber->SegmentationModel(1); - if (segmentation) - segmentation->Streamer(R__b); - } else { - segmentation=iChamber->SegmentationModel(1); - if (segmentation) - segmentation->Streamer(R__b); - segmentation=iChamber->SegmentationModel(2); - if (segmentation) - segmentation->Streamer(R__b); - } - response=iChamber->ResponseModel(); - if (response) - response->Streamer(R__b); - digitsaddress=(TClonesArray*) (*fDchambers)[i]; - digitsaddress->Streamer(R__b); - if (i < AliMUONConstants::NTrackingCh()) { - rawcladdress=(TClonesArray*) (*fRawClusters)[i]; - rawcladdress->Streamer(R__b); - } - } - } + if (fTriggerScalerEvent == kTRUE) rawData.SetScalerEvent(); + if (!rawData.Digits2Raw()) AliInfo("pb writting raw data"); } -#endif -AliMUONPadHit* AliMUON::FirstPad(AliMUONHit* hit, TClonesArray *clusters) -{ -// to be removed - // Initialise the pad iterator - // Return the address of the first padhit for hit - TClonesArray *theClusters = clusters; - Int_t nclust = theClusters->GetEntriesFast(); - if (nclust && hit->PHlast() > 0) { - AliMUON::fMaxIterPad=hit->PHlast(); - AliMUON::fCurIterPad=hit->PHfirst(); - return (AliMUONPadHit*) clusters->UncheckedAt(AliMUON::fCurIterPad-1); - } else { - return 0; - } -} +//_______________________________________________________________________ +AliLoader* AliMUON::MakeLoader(const char* topfoldername) +{ +//builds standard getter (AliLoader type) +//if detector wants to use castomized getter, it must overload this method -AliMUONPadHit* AliMUON::NextPad(TClonesArray *clusters) -{ - // To be removed -// Get next pad (in iterator) -// - AliMUON::fCurIterPad++; - if (AliMUON::fCurIterPad <= AliMUON::fMaxIterPad) { - return (AliMUONPadHit*) clusters->UncheckedAt(AliMUON::fCurIterPad-1); - } else { - return 0; - } + + AliDebug(1,Form("Creating standard getter for detector %s. Top folder is %s.", + GetName(),topfoldername)); + fLoader = new AliLoader(GetName(),topfoldername); + fMUONData = new AliMUONData(fLoader,GetName(),GetName()); + fMUONData->SetSplitLevel(fSplitLevel); + return fLoader; } - +//_______________________________________________________________________ AliMUONRawCluster *AliMUON::RawCluster(Int_t ichamber, Int_t icathod, Int_t icluster) { // // Return rawcluster (icluster) for chamber ichamber and cathode icathod // Obsolete ?? - TClonesArray *muonRawCluster = RawClustAddress(ichamber); + TClonesArray *muonRawCluster = GetMUONData()->RawClusters(ichamber); ResetRawClusters(); TTree *treeR = fLoader->TreeR(); Int_t nent=(Int_t)treeR->GetEntries(); @@ -1211,50 +532,5 @@ AliMUONRawCluster *AliMUON::RawCluster(Int_t ichamber, Int_t icathod, Int_t iclu return mRaw; } - -void AliMUON::SetMerger(AliMUONMerger* merger) -{ -// Set pointer to merger - fMerger = merger; -} - -AliMUONMerger* AliMUON::Merger() -{ -// Return pointer to merger - return fMerger; -} - - - -AliMUON& AliMUON::operator = (const AliMUON& rhs) -{ -// copy operator -// dummy version - return *this; -} - -//////////////////////////////////////////////////////////////////////// -void AliMUON::MakeBranchInTreeD(TTree *treeD, const char *file) -{ - // - // Create TreeD branches for the MUON. - // - - const Int_t kBufferSize = 4000; - char branchname[30]; - - // - // one branch for digits per chamber - // - for (Int_t i=0; i