PandaRoot
PndEmcAbsCrystalCalibrator.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef EMCABSCRYSTALCALIBRATOR_HH
14 #define EMCABSCRYSTALCALIBRATOR_HH
15 //---------------------------------------------------------
16 // Description:
17 // Abstract Interface for a CrystalCalibrator for Emc Crystals.
18 //
19 // Christian Hammann
20 // 31.7.2012
21 
22 //---------------------------------------------------------
23 
24 #include "TObject.h"
25 
33  public:
36 
42  virtual Bool_t Init() { return kTRUE; };
43 
50  virtual Bool_t ReInit() { return kTRUE; };
51 
52  virtual void SetVerbose(Int_t verbose) { fVerbose = verbose; };
53 
55 
66  virtual CalibrationStatus_t Calibrate(Double_t &Energy, Long_t detId, Int_t SignalNr = 1) = 0;
67 
68  protected:
69  Int_t fVerbose;
71 };
72 #endif
virtual void SetVerbose(Int_t verbose)
ClassDef(PndEmcAbsCrystalCalibrator, 1)
virtual CalibrationStatus_t Calibrate(Double_t &Energy, Long_t detId, Int_t SignalNr=1)=0
Apply CrystalCalibration to Energy of Crystal derId.
Abstract interface for a emc calibrator.