clas12root
Loading...
Searching...
No Matches
helonline.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: event.h
9 * Author: dglazier
10 *
11 */
12
13#ifndef CLAS12_HELONLINE_H
14#define CLAS12_HELONLINE_H
15
16#include <iostream>
17#include <vector>
18#include <memory>
19#include <hipo4/bank.h>
20
21namespace clas12 {
22
23 class helonline : public hipo::bank {
24
25
26 public:
27
28
29 helonline(hipo::schema __schema);
30 virtual ~helonline() = default;
31
32 int getHelicity() const noexcept{ return getByte(_hel_order,0); }
33 int getHelicityRaw() const noexcept{ return getByte(_helr_order,0); }
34
35 int getCurrHelicity(){ return 1;}
36
42 void notify() final{
43 bank::notify();
44 }
45 void setEntry(int ind) const{}
46 void setBankEntry(int ind){}
47
48 private :
49
50 int _hel_order{-1};
51 int _helr_order{-1};
52
53
54 };
55
57 using helonline_uptr=std::unique_ptr<clas12::helonline>;
58
59}
60
61#endif /* UTILS_H */
Definition helonline.h:23
void setEntry(int ind) const
Definition helonline.h:45
helonline(hipo::schema __schema)
Definition helonline.cpp:12
void notify() final
Definition helonline.h:42
int getHelicity() const noexcept
Definition helonline.h:32
virtual ~helonline()=default
void setBankEntry(int ind)
Definition helonline.h:46
int getHelicityRaw() const noexcept
Definition helonline.h:33
int getCurrHelicity()
Definition helonline.h:35
Definition calextras.cpp:10
std::unique_ptr< clas12::helonline > helonline_uptr
Definition helonline.h:57
clas12::helonline * helonline_ptr
Definition helonline.h:56