// $Id$ // // File: JEventProcessor_CPPMVA.h // Created: Sat Jul 2 10:49:58 EDT 2016 // Creator: davidl (on Darwin harriet 15.5.0 Darwin Kernel Version 15.5.0) // #ifndef _JEventProcessor_CPPMVA_ #define _JEventProcessor_CPPMVA_ #include #include class JEventProcessor_CPPMVA:public jana::JEventProcessor{ public: JEventProcessor_CPPMVA(); ~JEventProcessor_CPPMVA(); const char* className(void){return "JEventProcessor_CPPMVA";} class mva_params_t{ public: Int_t Ntracks; Int_t Ntof; Int_t Nfcal_hits; Int_t Nfcal_clusters; Float_t Efcal_clusters; Float_t Efcal_hits; Int_t Nfmwpc; Int_t Nfmwpc1; Int_t Nfmwpc2; Int_t Nfmwpc3; Int_t Nfmwpc4; Int_t Nfmwpc5; Int_t Nfmwpc6; Int_t Nfmwpc7; Int_t Nfmwpc8; Int_t Nfmwpc9; Int_t Nfmwpc10; Int_t Nfmwpc11; Int_t Nfmwpc12; Int_t Nfmwpc_with_2hits; Int_t Nfmwpc_with_lt_2hits; Int_t Nfmwpc_with_gt_2hits; Float_t Evisible; Float_t pip_theta; Float_t pim_theta; Float_t pip_E; Float_t pim_E; Float_t pip_theta_Thrown; Float_t pim_theta_Thrown; Float_t pip_E_Thrown; Float_t pim_E_Thrown; Int_t is_pion; }; TTree *cppmva; mva_params_t mva; private: jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event. jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called. jerror_t fini(void); ///< Called after last event of last event source has been processed. }; #endif // _JEventProcessor_CPPMVA_