// process_cbnt.h #ifndef process_cbnt_H #define process_cbnt_H // David Adams // April 2003 // // Function that uses PAW to process the events in an ATLAS // combined ntuple dataset. // // dst is an ATLAS combined ntuple dataset // // inittxt is a list of PAW commands for initialization, typically to // define histograms // OR // initfile is an HBOOK file in which the histograms are defined // // code is a fortran subroutine named cbnt to be called each event // The file cbnt.inc may be included to access the CBNT data // For example: // subroutine cbnt // include 'cbnt.inc' // write(*,*) run, event // end // // resfile is the name for the output HBOOK file. It will include // the objects defined using inittxt or initfile and then filled // using code. // // Debugging text is written to cout for verbose > 0. // // Returns 0 for success. #include class Text; namespace dset { class CbntDataset; } // Initialization from a script. int process_cbnt(const dset::CbntDataset& dst, const Text& inittxt, const Text& code, std::string resfile, int verbose =0); // Initialization from an hbook file. int process_cbnt(const dset::CbntDataset& dst, std::string initfile, const Text& code, std::string resfile, int verbose =0); #endif