Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

FileChopper.h

Go to the documentation of this file.
00001 //==========================================================
00002 //
00003 // FileChopper.h
00004 //
00005 // Authors: Pedro Ochoa
00006 //
00007 // Written: December 20 2007
00008 //
00009 //===========================================================
00010 
00011 #ifndef FILECHOPPER_H
00012 #define FILECHOPPER_H
00013 
00014 #include <iostream>
00015 #include "TChain.h"
00016 
00017 class FileChopper{
00018   
00019  public:
00020   FileChopper();
00021   FileChopper(const char* fname, Int_t sizeofchop = 400);
00022   ~FileChopper();
00023   Int_t GetTotalPieces();
00024   Int_t GetSizeOfPiece(Int_t ii);//<--counting goes from 0 to total pieces-1
00025   //Int_t FirstEntryInPiece(Int_t ii);//<--counting goes from 0 to total pieces-1
00026   //Int_t LastEntryInPiece(Int_t ii);//<--counting goes from 0 to total pieces-1
00027   
00028  private:
00029   TChain *chain;
00030   Int_t tot_entries;
00031   Int_t chop_size;
00032   Int_t pieces;
00033   Int_t remainder;
00034 
00035 };
00036 
00037 #endif 

Generated on Mon Feb 15 11:06:41 2010 for loon by  doxygen 1.3.9.1