clas12root
Loading...
Searching...
No Matches
helflip.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_HELFLIP_H
14#define CLAS12_HELFLIP_H
15
16#include <iostream>
17#include <vector>
18#include <memory>
19#include <hipo4/bank.h>
20#include "runconfig.h"
21
22namespace clas12 {
23
24 class helflip : public hipo::bank {
25
26
27 public:
28
29
30 helflip(hipo::schema __schema,runconfig_ptr runconfig);
31 virtual ~helflip() = default;
32
33 int getHelicity(){std::cout<<getByte(_hel_order,0)<<std::endl; return getByte(_hel_order,0); }
34 int getHelicityRaw(){ return getByte(_helr_order,0); }
35 int getRun(){ return getInt(_run_order,0); }
36 int getEvent(){ return getInt(_event_order,0); }
37 long getTimeStamp(){ return getLong(_timestamp_order,0); }
38 int getPair(){ return getByte(_pair_order,0); }
39 int getPattern(){ return getByte(_pattern_order,0); }
40 int getStatus(){ return getByte(_status_order,0); }
41
42 int getCurrHelicity(){ return _currHelicity;}
43 void helicityAnalysis();
49 void notify() final{
50 bank::notify();
51 }
52 void setEntry(int ind) const{}
53 void setBankEntry(int ind){}
54
55 private :
56 runconfig_ptr _runconfig;
57
58 int _hel_order;
59 int _helr_order;
60 int _run_order;
61 int _event_order;
62 int _timestamp_order;
63 int _pair_order;
64 int _pattern_order;
65 int _status_order;
66
67 int _currHelicity=0;
68
69 };
70
72 using helflip_uptr=std::unique_ptr<clas12::helflip>;
73
74}
75
76#endif /* UTILS_H */
Definition helflip.h:24
long getTimeStamp()
Definition helflip.h:37
void setBankEntry(int ind)
Definition helflip.h:53
int getPair()
Definition helflip.h:38
void setEntry(int ind) const
Definition helflip.h:52
void notify() final
Definition helflip.h:49
int getHelicity()
Definition helflip.h:33
int getHelicityRaw()
Definition helflip.h:34
int getRun()
Definition helflip.h:35
int getCurrHelicity()
Definition helflip.h:42
int getStatus()
Definition helflip.h:40
virtual ~helflip()=default
int getPattern()
Definition helflip.h:39
helflip(hipo::schema __schema, runconfig_ptr runconfig)
Definition helflip.cpp:12
void helicityAnalysis()
Definition helflip.cpp:24
int getEvent()
Definition helflip.h:36
Definition runconfig.h:24
Definition calextras.cpp:10
std::unique_ptr< clas12::helflip > helflip_uptr
Definition helflip.h:72
clas12::runconfig * runconfig_ptr
Definition runconfig.h:71
clas12::helflip * helflip_ptr
Definition helflip.h:71