clas12root
Loading...
Searching...
No Matches
ftbevent.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: ftbevent.h
9 * Author: gavalian
10 *
11 * Created on April 27, 2017, 10:01 AM
12 */
13
14#ifndef FTBEVENT_H
15#define FTBEVENT_H
16
17#include <iostream>
18#include <vector>
19#include <memory>
20#include <hipo4/bank.h>
21
22namespace clas12 {
23
24 class ftbevent : public hipo::bank {
25
26
27 public:
28
29
30 ftbevent(hipo::schema __schema);
31 virtual ~ftbevent() = default;
32
33 long getCategory() const noexcept{ return getLong(_cat_order,0); }
34 float getStartTime() const noexcept{ return getFloat(_st_order,0); }
35 void setEntry(int ind) const {}
36 void setBankEntry(int ind){}
37
43 void notify() final{
44 bank::notify();
45 }
46
47 private :
48
49 int _st_order{-1};
50 int _cat_order{-1};
51
52
53 };
54
56 using ftbevent_uptr=std::unique_ptr<clas12::ftbevent>;
57
58}
59
60#endif /* UTILS_H */
Definition ftbevent.h:24
long getCategory() const noexcept
Definition ftbevent.h:33
void setBankEntry(int ind)
Definition ftbevent.h:36
ftbevent(hipo::schema __schema)
Definition ftbevent.cpp:12
float getStartTime() const noexcept
Definition ftbevent.h:34
virtual ~ftbevent()=default
void notify() final
Definition ftbevent.h:43
void setEntry(int ind) const
Definition ftbevent.h:35
Definition calextras.cpp:10
std::unique_ptr< clas12::ftbevent > ftbevent_uptr
Definition ftbevent.h:56
clas12::ftbevent * ftbevent_ptr
Definition ftbevent.h:55