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
|
#ifndef CALIBFORMATS_CALOTPG_HCALTPGSCALE_H
#define CALIBFORMATS_CALOTPG_HCALTPGSCALE_H 1
#include "DataFormats/HcalDetId/interface/HcalTrigTowerDetId.h"
#include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h"
namespace edm {
class EventSetup;
}
/** \class HcalTPGScale
*
* To be stored in the CaloTPGRecord
*
* \author J. Mans - Minnesota
*/
class HcalTPGScale {
public:
virtual ~HcalTPGScale() = default;
/** \brief nominal ET value of this sample/code as to be used in
RCT LUT creation */
virtual double et_RCT(const HcalTrigTowerDetId& id, const HcalTriggerPrimitiveSample& s) const = 0;
/// smallest ET value which would resolve into this sample
virtual double et_bin_low(const HcalTrigTowerDetId& id, const HcalTriggerPrimitiveSample& s) const = 0;
/** smallest ET value which would not resolve into sample (too big) */
virtual double et_bin_high(const HcalTrigTowerDetId& id, const HcalTriggerPrimitiveSample& s) const = 0;
/// Get any needed information from the event setup
virtual void setup(const edm::EventSetup& es) const {}
/// Release any objects obtained from the EventSetup
virtual void releaseSetup() const {}
};
#endif
|