1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
19 #include "AliROCRawAnalysisSelector.h"
28 ClassImp(AliROCRawAnalysisSelector)
30 AliROCRawAnalysisSelector::AliROCRawAnalysisSelector() :
34 // Constructor. Initialization of pointers
37 // for (Int_t i=0; i<kTPCSectors; i++)
38 // fClusterHistograms[i] = 0;
41 AliROCRawAnalysisSelector::~AliROCRawAnalysisSelector()
48 void AliROCRawAnalysisSelector::SlaveBegin(TTree* tree)
52 AliSelector::SlaveBegin(tree);
55 void AliROCRawAnalysisSelector::Init(TTree *tree)
57 // The Init() function is called when the selector needs to initialize
58 // a new tree or chain. Typically here the branch addresses of the tree
59 // will be set. It is normaly not necessary to make changes to the
60 // generated code, but the routine can be extended by the user if needed.
61 // Init() will be called many times when running with PROOF.
63 AliSelector::Init(tree);
67 // tree->SetBranchAddress("rawevent", &fRawEvent);
71 Bool_t AliROCRawAnalysisSelector::Process(Long64_t entry)
74 // Implement your analysis here. Do not forget to call the parent class Process by
75 // if (AliSelector::Process(entry) == kFALSE)
79 if (AliSelector::Process(entry) == kFALSE)
87 void AliROCRawAnalysisSelector::SlaveTerminate()
91 //for (Int_t i=0; i<kTPCSectors; i++)
92 // if (fClusterHistograms[i])
93 // fOutput->Add(fClusterHistograms[i]);
96 void AliROCRawAnalysisSelector::Terminate()
98 // TODO read from output list for PROOF
100 TFile* file = TFile::Open("rocRaw.root", "RECREATE");
102 // for (Int_t i=0; i<kTPCSectors; i++)
103 // if (fClusterHistograms[i])
104 // fClusterHistograms[i]->SaveHistograms();