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 // Realisation of an AliVEventPool via
20 // on the flight (OTF) generation of the bin using AliTagAnalysis.
21 // Author Andreas Morsch
22 // andreas.morsch@cern.ch
24 #include "AliEventPoolOTF.h"
26 #include "AliRunTagCuts.h"
27 #include "AliLHCTagCuts.h"
28 #include "AliDetectorTagCuts.h"
29 #include "AliEventTagCuts.h"
30 #include "AliTagAnalysis.h"
32 ClassImp(AliEventPoolOTF)
35 ////////////////////////////////////////////////////////////////////////
37 AliEventPoolOTF::AliEventPoolOTF():
50 // Default constructor
53 AliEventPoolOTF::AliEventPoolOTF(const char* name, const char* title):
54 AliVEventPool(name, title),
55 fTagAnalysis(new AliTagAnalysis("AOD")),
56 fRunCuts(new AliRunTagCuts()),
57 fLHCCuts(new AliLHCTagCuts()),
58 fDetectorCuts(new AliDetectorTagCuts()),
59 fEventCuts(new AliEventTagCuts()),
70 AliEventPoolOTF::AliEventPoolOTF(const AliEventPoolOTF& obj):
86 AliEventPoolOTF& AliEventPoolOTF::operator=(const AliEventPoolOTF& other)
88 // Assignment operator
89 AliVEventPool::operator=(other);
94 void AliEventPoolOTF::Init()
97 fTagAnalysis->ChainLocalTags(fTagDirectory);
98 fMultiplicity = fMultMin;
101 TChain* AliEventPoolOTF::GetNextChain()
106 Int_t mmax = fMultiplicity + fMultStep;
107 if (mmax > fMultMax) {
110 fEventCuts->SetMultiplicityRange(fMultiplicity, mmax);
111 chain = fTagAnalysis->QueryTags(fRunCuts, fLHCCuts, fDetectorCuts, fEventCuts);
112 fMultiplicity += fMultStep;
117 void AliEventPoolOTF::GetCurrentBin(Float_t* /*bin*/)
122 Int_t AliEventPoolOTF::GetDimension()