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
20namespace 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
43 using scaler_uptr=std::unique_ptr<clas12::scaler>;
44
45}
46
47#endif /* UTILS_H */
Definition scaler.h:22
float getFCupGated()
Definition scaler.h:29
float getLiveTime()
Definition scaler.h:31
float getFCup()
Definition scaler.h:30
scaler(hipo::schema __schema)
Definition scaler.cpp:12
Definition calextras.cpp:10
std::unique_ptr< clas12::scaler > scaler_uptr
Definition scaler.h:43
clas12::scaler * scaler_ptr
Definition scaler.h:42