+++ /dev/null
-/**************************************************************************
- * 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. *
- **************************************************************************/
-
-/* $Id$ */
-
-// Macro MUONTracker.C (TO BE COMPILED)
-// for testing the C++ reconstruction code
-// Output is using aliroot standard output MUON.Tracks.root
-// The output is a TClonesArray of AliMUONTracks.
-// Gines MARTINEZ, Subatech, sep 2003
-
-#if !defined(__CINT__) || defined(__MAKECINT__)
-#include "AliRun.h"
-#include "AliMUON.h"
-#include "AliMUONData.h"
-#include "AliMUONEventReconstructor.h"
-#endif
-
-void MUONTracker (Text_t *FileName = "galice.root", Int_t FirstEvent = 0, Int_t LastEvent = 9999)
-{
- //
- cout << "MUONTracker" << endl;
- cout << "FirstEvent " << FirstEvent << endl;
- cout << "LastEvent " << LastEvent << endl;
- cout << "FileName ``" << FileName << "''" << endl;
-
- // Creating Run Loader and openning file containing Hits, Digits and RecPoints
- AliRunLoader * RunLoader = AliRunLoader::Open(FileName,"MUONLoader","UPDATE");
- if (RunLoader ==0x0) {
- printf(">>> Error : Error Opening %s file \n",FileName);
- return;
- }
- // Loading AliRun master
- if (RunLoader->GetAliRun() == 0x0) RunLoader->LoadgAlice();
- gAlice = RunLoader->GetAliRun();
- // RunLoader->LoadKinematics("READ");
-
- // Loading MUON subsystem
- AliLoader * MUONLoader = RunLoader->GetLoader("MUONLoader");
-
- MUONLoader->LoadRecPoints("READ");
- MUONLoader->LoadTracks("UPDATE");
-
- Int_t nevents;
- nevents = RunLoader->GetNumberOfEvents();
-
- AliMUONEventReconstructor* Reco = new AliMUONEventReconstructor(MUONLoader);
- AliMUONData* muondata = Reco->GetMUONData();
-
- // Testing if Tracker has already been done
- RunLoader->GetEvent(0);
- if (MUONLoader->TreeT()) {
- if (muondata->IsTrackBranchesInTree()) {
- MUONLoader->UnloadTracks();
- MUONLoader->LoadTracks("RECREATE");
- printf("Recreating RecPoints files\n");
- }
- }
-
- // The right place for changing AliMUONEventReconstructor parameters
- // with respect to the default ones
- // Reco->SetMaxSigma2Distance(100.0);
- // Reco->SetPrintLevel(20);
- Reco->SetPrintLevel(0);
- // Reco->SetBendingResolution(0.0);
- // Reco->SetNonBendingResolution(0.0);
- // cout << "AliMUONEventReconstructor: actual parameters" << endl;
-
- if (LastEvent>nevents) LastEvent=nevents;
-
- // Loop over events
- for (Int_t event = FirstEvent; event < LastEvent; event++) {
- //MUONLoader->LoadHits("READ");
- cout << "Event: " << event << endl;
- RunLoader->GetEvent(event);
- // Test if trigger track has already been done before
- if (MUONLoader->TreeT() == 0x0) {
- MUONLoader->MakeTracksContainer();
- } else {
- if (muondata->IsTrackBranchesInTree()){ // Test if track has already been done before
- if (event==FirstEvent) MUONLoader->UnloadTracks();
- MUONLoader->MakeTracksContainer(); // Redoing Tracking
- Info("TrackContainer","Recreating TrackContainer and deleting previous ones");
- }
- }
-
- muondata->MakeBranch("RT");
- muondata->SetTreeAddress("RT");
- Reco->EventReconstruct();
-
- muondata->Fill("RT");
- MUONLoader->WriteTracks("OVERWRITE");
- muondata->ResetRecTracks();
- muondata->ResetRawClusters();
- } // Event loop
-
- MUONLoader->UnloadRecPoints();
- MUONLoader->UnloadTracks();
-}
+++ /dev/null
-/**************************************************************************
- * 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. *
- **************************************************************************/
-
-/* */
-
-// Macro MUONTriggerTracker.C (TO BE COMPILED)
-// for testing the C++ trigger reconstruction code
-// Output is using aliroot standard output MUON.Tracks.root
-// The output is a TClonesArray of AliMUONTriggerTracks.
-
-#if !defined(__CINT__) || defined(__MAKECINT__)
-
-#include "AliRun.h"
-#include "AliMUON.h"
-#include "AliMUONData.h"
-#include "AliMUONEventReconstructor.h"
-#endif
-
-void MUONTriggerTracker (Text_t *FileName = "galice.root", Int_t FirstEvent = 0, Int_t LastEvent = 9999)
-{
- //
- cout << "MUONTriggerTracker" << endl;
- cout << "FirstEvent " << FirstEvent << endl;
- cout << "LastEvent " << LastEvent << endl;
- cout << "FileName ``" << FileName << "''" << endl;
-
- // Creating Run Loader and openning file containing Hits, Digits and RecPoints
- AliRunLoader * RunLoader = AliRunLoader::Open(FileName,"MUONLoader","UPDATE");
- if (RunLoader ==0x0) {
- printf(">>> Error : Error Opening %s file \n",FileName);
- return;
- }
-
- // Loading AliRun master
- if (RunLoader->GetAliRun() == 0x0) RunLoader->LoadgAlice();
- gAlice = RunLoader->GetAliRun();
- // RunLoader->LoadKinematics("READ");
-
- // Loading MUON subsystem
- AliLoader * MUONLoader = RunLoader->GetLoader("MUONLoader");
-
- Int_t nevents;
- nevents = RunLoader->GetNumberOfEvents();
-
- MUONLoader->LoadRecPoints("READ");
- MUONLoader->LoadTracks("UPDATE");
-
-
- AliMUONEventReconstructor *Reco = new AliMUONEventReconstructor(MUONLoader);
- AliMUONData* muondata = Reco->GetMUONData();
-
- // Testing if Trigger Tracking has already been done
- RunLoader->GetEvent(0);
- if (MUONLoader->TreeT()) {
- if (muondata->IsTriggerTrackBranchesInTree()) {
- MUONLoader->UnloadTracks();
- MUONLoader->LoadTracks("RECREATE");
- printf("Recreating Tracks files\n");
- }
- }
-
- Reco->SetPrintLevel(0);
- if (LastEvent>nevents) LastEvent=nevents;
-
- // Loop over events
- for (Int_t event = FirstEvent; event < LastEvent; event++) {
- cout << "Event: " << event << endl;
- RunLoader->GetEvent(event);
- if (MUONLoader->TreeT() == 0x0) MUONLoader->MakeTracksContainer();
-
- muondata->MakeBranch("RL");
- muondata->SetTreeAddress("RL");
- Reco->EventReconstructTrigger();
-
- muondata->Fill("RL");
- MUONLoader->WriteTracks("OVERWRITE");
- muondata->ResetRecTriggerTracks();
- muondata->ResetTrigger();
- } // Event loop
-
- MUONLoader->UnloadRecPoints();
- MUONLoader->UnloadTracks();
-}
+++ /dev/null
-/**************************************************************************
- * 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. *
- **************************************************************************/
-
-/* $Id$ */
-
-#if !defined(__CINT__) || defined(__MAKECINT__)
-//#include "iostream.h"
-
-#include <TClassTable.h>
-#include <TClonesArray.h>
-#include <TFile.h>
-#include <TParticle.h>
-#include <TROOT.h>
-#include <TTree.h>
-
-#include "AliHeader.h"
-#include "AliRun.h"
-
-#include "AliMUON.h"
-
-#include "AliMUONClusterFinderVS.h"
-//#include "AliMUONClusterFinderAZ.h"
-#include "AliMUONClusterReconstructor.h"
-#endif
-
-void MUONrawclusters (char* filename="galice.root", Int_t evNumber1=0,Int_t evNumber2=9999)
-{
- // Creating Run Loader and openning file containing Hits
- AliRunLoader* RunLoader = AliRunLoader::Open(filename,"MUONLoader","UPDATE");
- if (RunLoader ==0x0) {
- printf(">>> Error : Error Opening %s file \n",filename);
- return;
- }
- if (RunLoader->GetAliRun() == 0x0) RunLoader->LoadgAlice();
-
- // Loading MUON subsystem
- AliLoader* MUONLoader = RunLoader->GetLoader("MUONLoader");
-
- MUONLoader->LoadDigits("READ");
- MUONLoader->LoadRecPoints("UPDATE");
-
- Int_t ievent, nevents;
- nevents = RunLoader->GetNumberOfEvents();
-
- AliMUONClusterReconstructor* Reco = new AliMUONClusterReconstructor(MUONLoader);
- AliMUONData* muondata = Reco->GetMUONData();
-
- for (Int_t i=0; i<10; i++) {
- AliMUONClusterFinderVS* RecModel = new AliMUONClusterFinderVS();
- // RecModel->SetTracks(16,17);
- // RecModel->SetTracks(266,267);
- RecModel->SetGhostChi2Cut(10);
- Reco->SetReconstructionModel(i,RecModel);
- }
-
- // Testing if RawClusterisation has already been done
- RunLoader->GetEvent(0);
- if (MUONLoader->TreeR()) {
- if (muondata->IsRawClusterBranchesInTree()) {
- MUONLoader->UnloadRecPoints();
- MUONLoader->LoadRecPoints("RECREATE");
- printf("Recreating RecPoints files\n");
- }
- }
-
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- if (evNumber2 > nevents) evNumber2 = nevents;
-
- for(ievent = evNumber1; ievent < evNumber2; ievent++) {
- printf("event %d\n",ievent);
- RunLoader->GetEvent(ievent);
-
- // Test if rawcluster has already been done before
- if (MUONLoader->TreeR() == 0x0)
- MUONLoader->MakeRecPointsContainer();
- else {
- if (muondata->IsRawClusterBranchesInTree()){
- // Test if rawcluster has already been done before
- if (ievent == evNumber1) MUONLoader->UnloadRecPoints();
- MUONLoader->MakeRecPointsContainer(); // Redoing clusterisation
- Info("RecPointsContainer",
- "Recreating RecPointsContainer and deleting previous ones");
- }
- }
- muondata->MakeBranch("RC");
- muondata->SetTreeAddress("D,RC");
-
- Reco->Digits2Clusters();
-
- muondata->Fill("RC"); //Filling Reconstructed Cluster
- MUONLoader->WriteRecPoints("OVERWRITE");
- muondata->ResetRawClusters();
- muondata->ResetDigits();
- }
- MUONLoader->UnloadDigits();
- MUONLoader->UnloadRecPoints();
-}
-
-
+++ /dev/null
-/**************************************************************************
- * 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. *
- **************************************************************************/
-
-/* $Id$ */
-
-#if !defined(__CINT__) || defined(__MAKECINT__)
-#include "AliRun.h"
-#include "AliRunLoader.h"
-#include "AliLoader.h"
-#include "AliMUON.h"
-#include "AliMUONData.h"
-#include "AliMUONTriggerDecision.h"
-#endif
-
-AliRun * gAlice;
-
-//get trigger decision and write it in TreeR of MUON.RecPoints.root
-
-void MUONtrigger (char* filename="galice.root",
- Int_t evNumber1=0, Int_t evNumber2=9999)
-{
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-// Creating Run Loader and openning file containing Hits
- AliRunLoader * RunLoader = AliRunLoader::Open(filename,"MUONLoader","UPDATE");
- if (RunLoader ==0x0) {
- printf(">>> Error : Error Opening %s file \n",filename);
- return;
- }
-
- // Loading AliRun master
- if (RunLoader->GetAliRun() == 0x0) RunLoader->LoadgAlice();
-
- // Loading MUON subsystem
- AliLoader * MUONLoader = RunLoader->GetLoader("MUONLoader");
-
- Int_t ievent, nevents;
- nevents = RunLoader->GetNumberOfEvents();
-
- AliMUONTriggerDecision* TrigDec = new AliMUONTriggerDecision(MUONLoader);
- AliMUONData* muondata = TrigDec->GetMUONData();
-
- MUONLoader->LoadDigits("READ");
- MUONLoader->LoadRecPoints("UPDATE");
-
- // Testing if trigger has already been done
- RunLoader->GetEvent(0);
- if (MUONLoader->TreeR()) {
- if (muondata->IsTriggerBranchesInTree()) {
- MUONLoader->UnloadRecPoints();
- MUONLoader->LoadRecPoints("RECREATE");
- printf("Recreating RecPoints files\n");
- }
- }
-
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- if (evNumber2>nevents) evNumber2=nevents;
- for (ievent = evNumber1; ievent < evNumber2; ievent++) { // event loop
-
- printf("event %d\n",ievent);
- RunLoader->GetEvent(ievent);
- // Test if rawcluster has already been done before
- if (MUONLoader->TreeR() == 0x0)
- MUONLoader->MakeRecPointsContainer();
- else {
- if (muondata->IsTriggerBranchesInTree()){
- // Test if rawcluster has already been done before
- if (ievent == evNumber1) MUONLoader->UnloadRecPoints();
- MUONLoader->MakeRecPointsContainer(); // Redoing clusterisation
- Info("RecPointsContainer",
- "Recreating RecPointsContainer and deleting previous ones");
- }
- }
- muondata->MakeBranch("GLT");
- muondata->SetTreeAddress("D,GLT");
-
- TrigDec->Digits2Trigger();
-
- muondata->Fill("GLT"); //Filling Global Local Trigger
- MUONLoader->WriteRecPoints("OVERWRITE");
- muondata->ResetDigits();
- muondata->ResetTrigger();
-
- } // event loop
-
- MUONLoader->UnloadDigits();
- MUONLoader->UnloadRecPoints();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-