/* * Delphes: a framework for fast simulation of a generic collider experiment * Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef TreeWriter_h #define TreeWriter_h /** \class TreeWriter * * Fills ROOT tree branches. * * \author P. Demin - UCL, Louvain-la-Neuve * */ #include "classes/DelphesModule.h" #include class TClass; class TObjArray; class TRefArray; class Candidate; class ExRootTreeBranch; class TreeWriter: public DelphesModule { public: TreeWriter(); ~TreeWriter(); void Init(); void Process(); void Finish(); private: void FillParticles(Candidate *candidate, TRefArray *array); void ProcessParticles(ExRootTreeBranch *branch, TObjArray *array); void ProcessVertices(ExRootTreeBranch *branch, TObjArray *array); void ProcessTracks(ExRootTreeBranch *branch, TObjArray *array); void ProcessTowers(ExRootTreeBranch *branch, TObjArray *array); void ProcessPhotons(ExRootTreeBranch *branch, TObjArray *array); void ProcessElectrons(ExRootTreeBranch *branch, TObjArray *array); void ProcessMuons(ExRootTreeBranch *branch, TObjArray *array); void ProcessTauJets(ExRootTreeBranch *branch, TObjArray *array); void ProcessJets(ExRootTreeBranch *branch, TObjArray *array); void ProcessMissingET(ExRootTreeBranch *branch, TObjArray *array); void ProcessScalarHT(ExRootTreeBranch *branch, TObjArray *array); void ProcessRho(ExRootTreeBranch *branch, TObjArray *array); void ProcessWeight(ExRootTreeBranch *branch, TObjArray *array); void ProcessHectorHit(ExRootTreeBranch *branch, TObjArray *array); #if !defined(__CINT__) && !defined(__CLING__) typedef void (TreeWriter::*TProcessMethod)(ExRootTreeBranch *, TObjArray *); //! typedef std::map< ExRootTreeBranch *, std::pair< TProcessMethod, TObjArray * > > TBranchMap; //! TBranchMap fBranchMap; //! std::map< TClass *, TProcessMethod > fClassMap; //! #endif ClassDef(TreeWriter, 1) }; #endif