00001
00002
00003
00004
00005
00006
00007
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);
00025
00026
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