StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StJetMakerBackwordCompatibility.cxx
1 // $Id: StJetMakerBackwordCompatibility.cxx,v 1.6 2008/08/03 00:26:50 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StJetMakerBackwordCompatibility.h"
4 
5 #include "StjeDefaultJetTreeWriter.h"
6 
7 void StJetMakerBackwordCompatibility::addAnalyzer(StppJetAnalyzer* analyzer, StjeTreeWriter* treeWriter, const char* name)
8 {
9  _jetBranches[name] = analyzer;
10 
11  StjeDefaultJetTreeWriter* defaultWriter = dynamic_cast<StjeDefaultJetTreeWriter*>(treeWriter);
12  if (!defaultWriter) return;
13 
14  analyzer->setmuDstJets(defaultWriter->getLastStJets());
15 }