This page describes how to use the FWLiteAnalyzerWrapper EDAnalyzer class template to convert your FWLite analysis to a full framework analysis.

The advantages of this are:

  • Oftentimes one wishes to run an analyzer "on the fly" for monitoring purposes, etc.
  • Mature analyses may want histograms as outputs in addition to their root files containing ED products
  • Large MC samples with enormous amounts of data to read in often require a run over the GRID


This works in releases in the 35x series (x > 7) with the following tag:

CMS.PhysicsTools/UtilAlgos                           V07-06-02-00

In the 36x and 37x series:

CMS.PhysicsTools/UtilAlgos                            V08-00-04

Software Overview

The FWLiteAnalyzerWrapper is an extraordinarily simple class template. It expects the following type of "helper" class (which is the template parameter).

  • Construction takes two arguments: edm::ParameterSet and TFileDirectory
  • Class provides three methods:
    • beginJob()
    • analyze( const edm::EventBase & event)
    • endJob()

The user must only provide a template instantiation such as (for example):

#ifndef EDMultijetAnalysis_h
#define EDMultijetAnalysis_h

#include "Analysis/JetAnalysis/interface/MultijetAnalyzer.h"
#include "CMS.PhysicsTools/UtilAlgos/interface/FWLiteAnalyzerWrapper.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"

typedef edm::FWLiteAnalyzerWrapper<MultijetAnalyzer> EDMultijetAnalysis;


This will be called in normal CMSSW jobs as usual.

This is the extent of the overview. The remaining details are how the user accesses the parameters from the edm::ParameterSet in their own class and how the TFileDirectory is accessed, and of course, how the histograms are filled.


-- SalvatoreRoccoRappoccio - 03-May-2010

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2010-05-03 - SalvatoreRRappoccio
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback