EventHeader

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#ifndef EVTHDR_H
#define EVTHDR_H

#include <TChain.h>

#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "DataFormats/Luminosity/interface/LumiSummary.h"
#include "DataFormats/Luminosity/interface/LumiDetails.h"

/** \class EventHeader
  *  
  * $Date: November 2006
  * $Revision: 
  * \author V. Rekovic - UMinn
  */
class EventHeader {
public:
  EventHeader();
  ~EventHeader();

  void setup(edm::ConsumesCollector&& iC, TTree* tree);

  /** Analyze the Data */
  void analyze(edm::Event const& iEvent, TTree* tree);

private:
  // Tree variables
  unsigned long long fEvent;
  int fLumiBlock;
  int fRun;
  int fBx;
  int fOrbit;
  double fAvgInstDelLumi;

  // input variables
  bool _Debug;
  edm::EDGetTokenT<LumiSummary> lumi_Token;

  // trigger names
};

#endif