Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
sbnanaobj
sbnanaobj
StandardRecord
SRHeader.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// \file SRHeader.h
3
// \author $Author: psihas@fnal.gov
4
////////////////////////////////////////////////////////////////////////
5
#ifndef SRHEADER_H
6
#define SRHEADER_H
7
8
#include "
sbnanaobj/StandardRecord/SREnums.h
"
9
#include "
sbnanaobj/StandardRecord/SRBNBInfo.h
"
10
#include "
sbnanaobj/StandardRecord/SRNuMIInfo.h
"
11
#include "
sbnanaobj/StandardRecord/SRTrigger.h
"
12
13
#include <vector>
14
15
namespace
caf
16
{
17
/// Header representing overview information for the current event/slice
18
class
SRHeader
19
{
20
public
:
21
SRHeader
();
22
~SRHeader
();
23
24
unsigned
int
run
;
///< run number
25
unsigned
int
subrun
;
///< subrun number
26
// int cycle; ///< MC simulation cycle number
27
// int batch; ///< MC simulation batch number
28
unsigned
int
evt
;
///< ART event number, indexes trigger windows.
29
unsigned
short
subevt
;
///< slice number within spill
30
bool
ismc
;
///< data or MC? True if MC
31
unsigned
int
fno
;
///< Index of file processed by CAFMaker
32
unsigned
int
ngenevt
;
///< Number of events generated in input file associated with this record (before any filters)
33
float
pot
;
///< POT of the subrun associated with this record
34
MCType_t
mctype
;
///< Type of Monte Carlo used to generate this record
35
Det_t
det
;
///< Detector, SBND=1 ICARUS=2
36
bool
first_in_subrun
;
///< Whether this event is the first in the subrun
37
bool
first_in_file
;
///< Whether this event is there first in the input file
38
int
proc
;
//< Process number of job that created CAF file
39
int
cluster
;
//< Cluster number of job that created CAF file
40
// bool blind; ///< if true, record has been corrupted for blindness
41
size_t
nbnbinfo
;
///< Number of BNBInfo objects
42
std::vector<caf::SRBNBInfo>
bnbinfo
;
///< storing beam information per subrun
43
size_t
nnumiinfo
;
///< Number of NuMIInfo objects
44
std::vector<caf::SRNuMIInfo>
numiinfo
;
///< storing beam information per subrun
45
size_t
ntriggerinfo
;
///< Number of Trigger objects
46
std::vector<caf::SRTrigger>
triggerinfo
;
///< storing trigger information per event
47
48
49
/// If true, this record has been filterd out, and only remains as a
50
/// receptacle for exposure information. It should be skipped in any
51
/// analysis, apart from for including its POT.
52
bool
husk
;
53
};
54
55
}
// end namespace
56
57
#endif // SRHEADER_H
58
//////////////////////////////////////////////////////////////////////////////
caf::SRHeader::fno
unsigned int fno
Index of file processed by CAFMaker.
Definition:
SRHeader.h:31
caf::SRHeader::det
Det_t det
Detector, SBND=1 ICARUS=2.
Definition:
SRHeader.h:35
caf::Det_t
Det_t
Which SBN detector?
Definition:
SREnums.h:7
caf::SRHeader::nnumiinfo
size_t nnumiinfo
Number of NuMIInfo objects.
Definition:
SRHeader.h:43
caf::SRHeader::bnbinfo
std::vector< caf::SRBNBInfo > bnbinfo
storing beam information per subrun
Definition:
SRHeader.h:42
caf::SRHeader::subrun
unsigned int subrun
subrun number
Definition:
SRHeader.h:25
SRTrigger.h
SREnums.h
caf::SRHeader::triggerinfo
std::vector< caf::SRTrigger > triggerinfo
storing trigger information per event
Definition:
SRHeader.h:46
caf::SRHeader::run
unsigned int run
run number
Definition:
SRHeader.h:24
caf::SRHeader::first_in_file
bool first_in_file
Whether this event is there first in the input file.
Definition:
SRHeader.h:37
caf::SRHeader::ismc
bool ismc
data or MC? True if MC
Definition:
SRHeader.h:30
caf::MCType_t
MCType_t
Which type of MC?
Definition:
SREnums.h:34
caf::SRHeader::~SRHeader
~SRHeader()
Definition:
SRHeader.cxx:36
caf::SRHeader::evt
unsigned int evt
ART event number, indexes trigger windows.
Definition:
SRHeader.h:28
caf::SRHeader::mctype
MCType_t mctype
Type of Monte Carlo used to generate this record.
Definition:
SRHeader.h:34
caf::SRHeader::ntriggerinfo
size_t ntriggerinfo
Number of Trigger objects.
Definition:
SRHeader.h:45
caf::SRHeader::first_in_subrun
bool first_in_subrun
Whether this event is the first in the subrun.
Definition:
SRHeader.h:36
SRNuMIInfo.h
caf::SRHeader::pot
float pot
POT of the subrun associated with this record.
Definition:
SRHeader.h:33
caf::SRHeader::ngenevt
unsigned int ngenevt
Number of events generated in input file associated with this record (before any filters) ...
Definition:
SRHeader.h:32
caf::SRHeader::proc
int proc
Definition:
SRHeader.h:38
caf::SRHeader::SRHeader
SRHeader()
Definition:
SRHeader.cxx:14
caf::SRHeader::husk
bool husk
Definition:
SRHeader.h:52
caf::SRHeader
Header representing overview information for the current event/slice.
Definition:
SRHeader.h:18
caf::SRHeader::nbnbinfo
size_t nbnbinfo
Number of BNBInfo objects.
Definition:
SRHeader.h:41
SRBNBInfo.h
caf::SRHeader::numiinfo
std::vector< caf::SRNuMIInfo > numiinfo
storing beam information per subrun
Definition:
SRHeader.h:44
caf::SRHeader::subevt
unsigned short subevt
slice number within spill
Definition:
SRHeader.h:29
caf::SRHeader::cluster
int cluster
Definition:
SRHeader.h:39
Generated by
1.8.5