IB-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
IBMuonEventTTreeReader.h
Go to the documentation of this file.
1
/*////////////////////////////////////////////////////////////////////////////
2
Copyright 2018 Istituto Nazionale di Fisica Nucleare
3
4
Licensed under the EUPL, Version 1.2 or - as soon they will be approved by
5
the European Commission - subsequent versions of the EUPL (the "Licence").
6
You may not use this work except in compliance with the Licence.
7
8
You may obtain a copy of the Licence at:
9
10
https://joinup.ec.europa.eu/software/page/eupl
11
12
Unless required by applicable law or agreed to in writing, software
13
distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
14
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
Licence for the specific language governing permissions and limitations under
16
the Licence.
18
19
20
21
#ifndef IBMUONEVENTTTREEREADER_H
22
#define IBMUONEVENTTTREEREADER_H
23
24
#include "Detectors/MuonScatter.h"
25
#include "IBMuonError.h"
26
27
using namespace uLib;
28
29
class IBMuonEventTTreeReader {
30
31
public:
32
enum IBMuonEventTTreeReaderSources {
33
R3D_MC,
34
R2D_MC,
35
LNL_MC,
36
LNL_DATA
37
};
38
39
static IBMuonEventTTreeReader* New(enum IBMuonEventTTreeReaderSources S);
40
static IBMuonEventTTreeReader* New (class TFile* f);
41
virtual void setTTree(class TTree* tree) = 0;
42
virtual void setTFile(class TFile* file) = 0;
43
virtual void setHitCuts(int nx_cut, int nz_cut) = 0;
44
virtual void setMomentum(Scalarf p) = 0;
45
virtual void setError(IBMuonError &e) = 0;
46
virtual void selectionCode(short code) = 0;
47
virtual void setAcquisitionTime(float min) {}
48
virtual void setStartTime(float min) {}
49
virtual void setReadPCut(float pcut) {}
50
virtual void readPguess(bool yn=true) {}
51
virtual unsigned long getNumberOfEvents() = 0;
52
virtual unsigned long getCurrentPosition() = 0;
53
54
virtual bool readNext(uLib::MuonScatter* event) = 0;
55
56
virtual ~IBMuonEventTTreeReader() {}
57
protected:
58
IBMuonEventTTreeReader() {}
59
60
};
61
62
#endif // IBMUONEVENTTTREEREADER_H
IBMuonEventTTreeReader.h
Generated by
1.8.5