NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
NcDataStreamStats.h
Go to the documentation of this file.
1#ifndef NcDataStreamStats_h
2#define NcDataStreamStats_h
3// Copyright(c) 2018 NCFS/IIHE, All Rights Reserved.
4// See cxx source for full Copyright notice.
5
6#include <iostream>
7#include <fstream>
8
9#include "TSystem.h"
10#include "TFile.h"
11#include "TChain.h"
12#include "TTree.h"
13
14#include "NcTaggingBase.h"
15
17
19{
20 public:
21 NcDataStreamStats(const char* name="NcDataStreamStats",const char* title="Event tag statistics"); // Default constructor
22 virtual ~NcDataStreamStats(); // Default destructor
23 NcDataStreamStats(const NcDataStreamStats& q); // Copy constructor
24 void AddInputFile(TString file,TString tree,TString branch); // Add an input file
25 void SetMaxEvt(Int_t n); // Set the maximum number of events to be processed (0 : no limitation)
26 void SetPrintFrequency(Int_t m); // Set print frequency to provide a progress output line every "m" events
27 void ListInputFiles(Option_t* opt="") const; // Provide an overview of the various input files
28 virtual void Exec(Option_t* opt); // Perform the analysis
29 virtual TObject* Clone(const char* name="") const; // Make a deep copy and provide its pointer
30
31 protected:
32 TChain* fData; // The master data Chain used for the analysis
33 TString fBranchname; // The name of the Branch containing the NcEvent (or derived) data structures
34 Int_t fMaxevt; // Maximum number of events to be processed
35 Int_t fPfreq; // The print frequency for producing a progress output line
36
37 ClassDef(NcDataStreamStats,5) // Provide event classification tag statistics.
38};
39#endif
virtual TObject * Clone(const char *name="") const
void SetPrintFrequency(Int_t m)
void ListInputFiles(Option_t *opt="") const
virtual void Exec(Option_t *opt)
NcDataStreamStats(const char *name="NcDataStreamStats", const char *title="Event tag statistics")
void AddInputFile(TString file, TString tree, TString branch)
NcTaggingBase(const char *name="NcTaggingBase", const char *title="Base class for event tag processing")