]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliAODBranchReplicator.cxx
Changes for #82873: Module debugging broken (Christian)
[u/mrichter/AliRoot.git] / STEER / AliAODBranchReplicator.cxx
1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 *                                                                        *
4 * Author: The ALICE Off-line Project.                                    *
5 * Contributors are mentioned in the code where appropriate.              *
6 *                                                                        *
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 **************************************************************************/
15
16 // $Id$
17
18 //
19 // Base class of an object used for the replication 
20 // (and possibly filtering) of one (or several) AOD branches.
21 //
22 // Author: L. Aphecetche (Subatech)
23 //
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.
26 // 
27 // Exemple usage (pseudo-code) :
28 // 
29 // AliAODHandler* aodH = AliAnalysisManager::GetAnalysisManager()->GetOutputEventHandler();
30 //
31 // AliAODExtension* ext = aodH->AddFilteredAOD("AliAOD.filtered.root","filtered AOD");
32 //
33 // ext->DisableReferences();
34 //  
35 // ext->FilterBranch("cascades",0x0); // AliAOD.filtered.root will *not* contain the cascades branch
36 //
37 //  
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
44 //  
45
46 #include "AliAODBranchReplicator.h"
47
48 ClassImp(AliAODBranchReplicator)
49
50 //______________________________________________________________________________
51 AliAODBranchReplicator::AliAODBranchReplicator(const char* name, const char* title)
52 : TNamed(name,title)
53 {
54   // default ctor (nop)
55 }
56
57 //______________________________________________________________________________
58 AliAODBranchReplicator::~AliAODBranchReplicator()
59 {
60   // dtor (nop)
61 }