Skip to content
Snippets Groups Projects
  • Whitney Armstrong's avatar
    ec942943
    Starting adding logging with spdlog · ec942943
    Whitney Armstrong authored
    - Mixins defined in Logger.h
    - Mixin used in base classes (THcDC is currently a good example)
    
    Added a few more spdlog loggers
    
    Added logging to many.
    
    - Added logging to hodoscope, aerogel hitlist and detectormap
    - Working on scandalizer features.
    
    Added logging.
    
    Added more logging.
    
    added more logging.
    
    More logging.
    ec942943
    History
    Starting adding logging with spdlog
    Whitney Armstrong authored
    - Mixins defined in Logger.h
    - Mixin used in base classes (THcDC is currently a good example)
    
    Added a few more spdlog loggers
    
    Added logging to many.
    
    - Added logging to hodoscope, aerogel hitlist and detectormap
    - Working on scandalizer features.
    
    Added logging.
    
    Added more logging.
    
    added more logging.
    
    More logging.
THcAnalyzer.h 1.50 KiB
#ifndef ROOT_THcAnalyzer
#define ROOT_THcAnalyzer

//////////////////////////////////////////////////////////////////////////
//
// THcAnalyzer
//
//////////////////////////////////////////////////////////////////////////

#include "THaAnalyzer.h"
#include "THaRunBase.h"
#include "THaEvent.h"
#include "THaOutput.h"
#include "THaEvData.h"
#include "THaGlobals.h"
#include "THaSpectrometer.h"
#include "THaNamedList.h"
#include "THaCutList.h"
#include "THaCut.h"
#include "THaPhysicsModule.h"
#include "THaPostProcess.h"
#include "THaBenchmark.h"
#include "THaEvtTypeHandler.h"
#include "THaEpicsEvtHandler.h"
#include "TList.h"
#include "TTree.h"
#include "TFile.h"
#include "TClass.h"
#include "TDatime.h"
#include "TClass.h"
#include "TError.h"
#include "TSystem.h"
#include "TROOT.h"
#include "TMath.h"
#include "TDirectory.h"
#include "THaCrateMap.h"

#include <algorithm>
#include <csignal>
#include <cstring>
#include <exception>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <stdexcept>

#include "Logger.h"

class THcAnalyzer : public hcana::ConfigLogging<THaAnalyzer> {

public:

  THcAnalyzer();
  virtual ~THcAnalyzer();

  void SetPedestalEvtype( Int_t evtype ) { fPedestalEvtype = evtype; }

  void PrintReport( const char* templatefile, const char* ofile);

protected:

  Int_t fPedestalEvtype;

private:
  //  THcAnalyzer( const THcAnalyzer& );
  //  THcAnalyzer& operator=( const THcAnalyzer& );
  void LoadInfo();

  ClassDef(THcAnalyzer,0)  //Hall C Analyzer Standard Event Loop
};

#endif