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():
51 // Default constructor
54 AliEventPoolOTF::AliEventPoolOTF(const char* name, const char* title):
55 AliVEventPool(name, title),
56 fTagAnalysis(new AliTagAnalysis("AOD")),
57 fRunCuts(new AliRunTagCuts()),
58 fLHCCuts(new AliLHCTagCuts()),
59 fDetectorCuts(new AliDetectorTagCuts()),
60 fEventCuts(new AliEventTagCuts()),
72 AliEventPoolOTF::AliEventPoolOTF(const AliEventPoolOTF& obj):
89 AliEventPoolOTF& AliEventPoolOTF::operator=(const AliEventPoolOTF& other)
91 // Assignment operator
92 AliVEventPool::operator=(other);
97 void AliEventPoolOTF::Init()
100 fTagAnalysis->ChainLocalTags(fTagDirectory);
101 fMultiplicity = fMultMin;
104 TChain* AliEventPoolOTF::GetNextChain()
109 Int_t mmax = fMultiplicity + fMultStep - 1;
110 if (mmax > fMultMax) {
113 fEventCuts->SetMultiplicityRange(fMultiplicity, mmax);
114 chain = fTagAnalysis->QueryTags(fRunCuts, fLHCCuts, fDetectorCuts, fEventCuts);
115 fMultiplicity += fMultStep;
120 void AliEventPoolOTF::GetCurrentBin(Float_t* /*bin*/)
125 Int_t AliEventPoolOTF::GetDimension()