clas12root
Loading...
Searching...
No Matches
scaler.h
Go to the documentation of this file.
1
/*
2
* To change this license header, choose License Headers in Project Properties.
3
* To change this template file, choose Tools | Templates
4
* and open the template in the editor.
5
*/
6
7
/*
8
* File: scaler.h
9
* Author: gavalian
10
*
11
* Created on April 27, 2017, 10:01 AM
12
*/
13
14
#ifndef SCALER_H
15
#define SCALER_H
16
17
#include <hipo4/bank.h>
18
#include <memory>
19
20
namespace
clas12
{
21
22
class
scaler
:
public
hipo::bank {
23
24
25
public
:
26
27
scaler
(hipo::schema __schema);
28
29
float
getFCupGated
(){
return
getFloat(_fcupgated_order,0); }
30
float
getFCup
(){
return
getFloat(_fcup_order,0); }
31
float
getLiveTime
(){
return
getFloat(_livetime_order,0); }
32
33
private :
34
35
int
_fcupgated_order{-1};
36
int
_fcup_order{-1};
37
int
_livetime_order{-1};
38
39
40
};
41
42
using
scaler_ptr
=
clas12::scaler
*;
43
using
scaler_uptr
=std::unique_ptr<clas12::scaler>;
44
45
}
46
47
#endif
/* UTILS_H */
clas12::scaler
Definition
scaler.h:22
clas12::scaler::getFCupGated
float getFCupGated()
Definition
scaler.h:29
clas12::scaler::getLiveTime
float getLiveTime()
Definition
scaler.h:31
clas12::scaler::getFCup
float getFCup()
Definition
scaler.h:30
clas12::scaler::scaler
scaler(hipo::schema __schema)
Definition
scaler.cpp:12
clas12
Definition
calextras.cpp:10
clas12::scaler_uptr
std::unique_ptr< clas12::scaler > scaler_uptr
Definition
scaler.h:43
clas12::scaler_ptr
clas12::scaler * scaler_ptr
Definition
scaler.h:42
Clas12Banks
scaler.h
Generated by
1.15.0