#ifndef _DEventProcessor_bcal_charged_timing_ #define _DEventProcessor_bcal_charged_timing_ #include using namespace jana; #include #include class DEventProcessor_bcal_charged_timing : public JEventProcessor{ public: DEventProcessor_bcal_charged_timing(){} ~DEventProcessor_bcal_charged_timing(){} const char* className(void){return "DEventProcessor_bcal_charged_timing";} private: jerror_t init(void); ///< Called once at program start. jerror_t brun(JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(JEventLoop *eventLoop, int 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. TTree *bcal_charged_timing_tree; //each member below corresponds to a branch on the tree bool m_track_recon; bool m_bcal_match; float m_cluster_t; float m_cluster_E; float m_cluster_t_first; //time of the first hit in the cluster float m_cluster_t_early_half; //average time of the earliest half of hits in the cluster float m_cluster_t_close_to_entry_half; //average time of half of hits closest to the entry point of the cluster float m_cluster_t_close_to_track_half; //average time of half of hits closest to the line between the target center and the cluster location float m_cluster_t_grabbag; int m_cluster_num_points; float m_track_t; //I think this is something like delta_TOF TTree *associated_points_tree; float m_point_E; float m_point_t; float m_point_t_inner; float m_point_z; float m_point_dist_to_entry; float m_point_dist_to_track; int m_point_layer; }; #endif // _DEventProcessor_bcal_charged_timing_