//  
// Author: Soeren Stamm <mailto: stamm@physik.hu-berlin.de>
// Update: $Id: AtlHistFactorySystPdf.h,v 1.3 2016/04/19 07:46:20 stamm Exp $
// Copyright: 2015 (C) Soeren Stamm
//
#ifndef ATLAS_AtlHistFactorySystPdf
#define ATLAS_AtlHistFactorySystPdf
#ifndef ATLAS_AtlHistFactorySystematic
#include <AtlHistFactorySystematic.h>
#endif
#ifndef ATLAS_AtlTopLevelAnalysis
#include <AtlTopLevelAnalysis.h>
#endif

class AtlHistFactorySystPdf : public AtlHistFactorySystematic {

protected:
    AtlTopLevelAnalysis::ESystematic fSystUp;
    AtlTopLevelAnalysis::ESystematic fSystDown;
    AtlTopLevelAnalysis::ESystematic fNominal; // Nominal (needed for symmetrization)

    TFile *fPlotterFileUp;   // MCPlotter file
    TFile *fPlotterFileDown; // MCPlotter file
    TFile *fPlotterFileNom;  // MCPlotter file for nominal

    TList *fHistsUp;   // List of MCPlotter templates (up var)
    TList *fHistsDown; // List of MCPlotter templates (down var)
    TList *fHistsNom;  // List of MCPlotter templates for nominal
    
public:
    AtlHistFactorySystPdf();
    AtlHistFactorySystPdf(const char* systname,
			  const char* systtitle,
			  AtlTopLevelAnalysis::ESystematic SystUp,
			  AtlTopLevelAnalysis::ESystematic SystDown,
			  Bool_t useShape = kFALSE);
    virtual ~AtlHistFactorySystPdf();
    virtual void Initialize(const char* BaseDir,
			    const char* scheme = "plots_datamc");
    virtual void Clear(Option_t *option = "");
    
protected:
    virtual void GetHistsFromFile(const char* process);
    virtual void ComputeUpDownVariation(const char* process);
    
    ClassDef(AtlHistFactorySystPdf, 1) // Pdf Systematic
};
#endif

 AtlHistFactorySystPdf.h:1
 AtlHistFactorySystPdf.h:2
 AtlHistFactorySystPdf.h:3
 AtlHistFactorySystPdf.h:4
 AtlHistFactorySystPdf.h:5
 AtlHistFactorySystPdf.h:6
 AtlHistFactorySystPdf.h:7
 AtlHistFactorySystPdf.h:8
 AtlHistFactorySystPdf.h:9
 AtlHistFactorySystPdf.h:10
 AtlHistFactorySystPdf.h:11
 AtlHistFactorySystPdf.h:12
 AtlHistFactorySystPdf.h:13
 AtlHistFactorySystPdf.h:14
 AtlHistFactorySystPdf.h:15
 AtlHistFactorySystPdf.h:16
 AtlHistFactorySystPdf.h:17
 AtlHistFactorySystPdf.h:18
 AtlHistFactorySystPdf.h:19
 AtlHistFactorySystPdf.h:20
 AtlHistFactorySystPdf.h:21
 AtlHistFactorySystPdf.h:22
 AtlHistFactorySystPdf.h:23
 AtlHistFactorySystPdf.h:24
 AtlHistFactorySystPdf.h:25
 AtlHistFactorySystPdf.h:26
 AtlHistFactorySystPdf.h:27
 AtlHistFactorySystPdf.h:28
 AtlHistFactorySystPdf.h:29
 AtlHistFactorySystPdf.h:30
 AtlHistFactorySystPdf.h:31
 AtlHistFactorySystPdf.h:32
 AtlHistFactorySystPdf.h:33
 AtlHistFactorySystPdf.h:34
 AtlHistFactorySystPdf.h:35
 AtlHistFactorySystPdf.h:36
 AtlHistFactorySystPdf.h:37
 AtlHistFactorySystPdf.h:38
 AtlHistFactorySystPdf.h:39
 AtlHistFactorySystPdf.h:40
 AtlHistFactorySystPdf.h:41
 AtlHistFactorySystPdf.h:42
 AtlHistFactorySystPdf.h:43
 AtlHistFactorySystPdf.h:44
 AtlHistFactorySystPdf.h:45
 AtlHistFactorySystPdf.h:46
 AtlHistFactorySystPdf.h:47
 AtlHistFactorySystPdf.h:48
 AtlHistFactorySystPdf.h:49