//  
// Author: Oliver Maria Kind <mailto: kind@mail.desy.de>
// Update: $Id: AtlEvtWriterLPSC.h,v 1.2 2014/04/22 08:25:59 kind Exp $
// Copyright: 2014 (C) Oliver Maria Kind
//
#ifndef ATLAS_AtlEvtWriterLPSC
#define ATLAS_AtlEvtWriterLPSC
#ifndef ATLAS_AtlEvtWriterD3PDSgTop
#include <AtlEvtWriterD3PDSgTop.h>
#endif
#ifndef ATLAS_AtlSgTop_sChannelAnalysis
#include <AtlSgTop_sChannelAnalysis.h>
#endif

class AtlEvtWriterLPSC : public AtlEvtWriterD3PDSgTop {

private:

public:
    Float_t   fMET;                        // MissingEt of current event
    Float_t   fMtW;                        // Transverse W mass (GeV)
    Float_t   fPtLep;                      // Transverse momentum (GeV) of leading lepton
    Float_t   fDeltaPhiTopBJet2_BJet1;     // Delta phi between top-quark candidate reconstructed using the sub-leading b-jet and the leading b-jet
    Float_t   fDeltaPhiTopBJet1_BJet2;     // Delta phi between top-quark candidate reconstructed using the leading b-jet and the sub-leading b-jet
    Float_t   fSumEtLep_MET;               // Sum Et of lepton and MET
    Float_t   fSumEtLep_MET_BJets;         // Sum Et of lepton, MET and all b-jets
    Float_t   fSumPt;                      // Vectoriell Pt sum of the lepton, MET and all b-jets
    Float_t   fDeltaEtaLep_BJet1;          // Delta eta between the lepton and the leading b-jet
    Float_t   fDeltaEtaLep_BJet2;          // Delta eta between the lepton and the sub-leading b-jet
    Float_t   fDeltaEtaTopBJet2_BJet1;     // Delta eta between top decay reconstructed using the sub-leading b-jet and the leading b-jet
    Float_t   fDeltaPhiBJet1_BJet2;        // Delta phi between leading and sub-leading b-jet
    Float_t   fDeltaPhiLep_MET;            // Delta phi between lepton and MET
    Float_t   fCosLepW_WTopBJet1;          // Cos of angle between lepton momentum in W rest-frame and the W momentum in the rest-frame of the top-quark candidate with the leading b-jet
    Float_t   fCosLepTopBJet1_TopBJet1CMS; // Cos of angle between the lepton momentum in the top-quark rest-frame and the top-quark momentum in the c.m.s. The used top-quark is the candidate reconstructed using the leading b-jet. The c.m.s vector is the sum of the top momentum and the sub-leading b-jet momentum
    Float_t   fCosLepTopBJet2_TopBJet2CMS; // Cos of angle between the lepton momentum in the top-quark rest-frame and the top-quark momentum in the c.m.s. The used top-quark is the candidate reconstructed using the sub-leading b-jet. The c.m.s vector is the sum of the top momentum and the leading b-jet momentum
    Float_t   fPt_BJetTop;                 // Pt of b-jet from best recosntructed yop decay (GeV)
    Float_t   fDeltaEtaNu_BJetNonTop;      // Delta eta between the rec. neutrino and the b-jet from the non-top candidate
    Float_t   fSumPtBJet1_BJet2;           // Vectoriell Pt sum of the leading and the sub-leading b-jet (GeV)
    Float_t   fCosMET_BJet2;               // Cos of angle between MET and sub-leading b-jet
    Float_t   fMLep_BJet2;                 // Invariant mass of lepton and sub-leading b-jet (GeV)
    	
public:
    AtlEvtWriterLPSC();
    virtual ~AtlEvtWriterLPSC();
    virtual void BookTree(TTree *tree, AtlEvent *evt);
    virtual const char* GetNameOfType() { return "kLPSC"; }
    
    ClassDef(AtlEvtWriterLPSC,0) // Event writer class for SgTop-D3PD events in the LPSC Grenoble format
};
#endif

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