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 // Base class of an object used for the replication
20 // (and possibly filtering) of one (or several) AOD branches.
22 // Author: L. Aphecetche (Subatech)
24 // Intended usage is to be able to produce, besides the standard AOD (AliAOD.root)
25 // some light-weight AODs, by filtering (or skipping completely) the unwanted branches.
27 // Exemple usage (pseudo-code) :
29 // AliAODHandler* aodH = AliAnalysisManager::GetAnalysisManager()->GetOutputEventHandler();
31 // AliAODExtension* ext = aodH->AddFilteredAOD("AliAOD.filtered.root","filtered AOD");
33 // ext->DisableReferences();
35 // ext->FilterBranch("cascades",0x0); // AliAOD.filtered.root will *not* contain the cascades branch
38 // AliAODBranchReplicator* murep = new AliAODMuonReplicator("MuonReplicator",
39 // "remove non muon tracks and non primary or pileup vertices",
40 // new AliAnalysisNonMuonTrackCuts,
41 // new AliAnalysisNonPrimaryVertices);
42 // ext->FilterBranch("tracks",murep); // both the tracks and vertices branches
43 // ext->FilterBranch("vertices",murep); // will be filtered by the MuonReplicator
46 #include "AliAODBranchReplicator.h"
48 ClassImp(AliAODBranchReplicator)
50 //______________________________________________________________________________
51 AliAODBranchReplicator::AliAODBranchReplicator(const char* name, const char* title)
57 //______________________________________________________________________________
58 AliAODBranchReplicator::~AliAODBranchReplicator()