All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 //////////////////////////////////////////////////////////////////////////////
unsigned int fno
Index of file processed by CAFMaker.
Definition: SRHeader.h:31
Det_t det
Detector, SBND=1 ICARUS=2.
Definition: SRHeader.h:35
Det_t
Which SBN detector?
Definition: SREnums.h:7
size_t nnumiinfo
Number of NuMIInfo objects.
Definition: SRHeader.h:43
std::vector< caf::SRBNBInfo > bnbinfo
storing beam information per subrun
Definition: SRHeader.h:42
unsigned int subrun
subrun number
Definition: SRHeader.h:25
std::vector< caf::SRTrigger > triggerinfo
storing trigger information per event
Definition: SRHeader.h:46
unsigned int run
run number
Definition: SRHeader.h:24
bool first_in_file
Whether this event is there first in the input file.
Definition: SRHeader.h:37
bool ismc
data or MC? True if MC
Definition: SRHeader.h:30
MCType_t
Which type of MC?
Definition: SREnums.h:34
unsigned int evt
ART event number, indexes trigger windows.
Definition: SRHeader.h:28
MCType_t mctype
Type of Monte Carlo used to generate this record.
Definition: SRHeader.h:34
size_t ntriggerinfo
Number of Trigger objects.
Definition: SRHeader.h:45
bool first_in_subrun
Whether this event is the first in the subrun.
Definition: SRHeader.h:36
float pot
POT of the subrun associated with this record.
Definition: SRHeader.h:33
unsigned int ngenevt
Number of events generated in input file associated with this record (before any filters) ...
Definition: SRHeader.h:32
Header representing overview information for the current event/slice.
Definition: SRHeader.h:18
size_t nbnbinfo
Number of BNBInfo objects.
Definition: SRHeader.h:41
std::vector< caf::SRNuMIInfo > numiinfo
storing beam information per subrun
Definition: SRHeader.h:44
unsigned short subevt
slice number within spill
Definition: SRHeader.h:29