// $Id$ // // File: DL3TriggerBDT_factory.h // Created: Mon Aug 5 12:24:22 EDT 2013 // Creator: jrsteven (on Linux hissh0002.cmsaf.mit.edu 2.6.18-194.11.3.el5.cve20103081 x86_64) // #ifndef _DL3TriggerBDT_factory_ #define _DL3TriggerBDT_factory_ #include #include #include #include #include #include #include #include #include "DANA/DApplication.h" #include "TRACKING/DMagneticFieldStepper.h" class DL3TriggerBDT_factory:public jana::JFactory{ public: DL3TriggerBDT_factory(){}; ~DL3TriggerBDT_factory(){}; /////////////////////////// // Monitoring Histograms // /////////////////////////// bool FILL_HISTOGRAMS; TH1F *hCpuTime; TH1F *hBdtClass; TH1F *hTrackMomKeep, *hTrackMomDiscard; TH2F *hEbcal_EfcalKeep, *hEbcal_EfcalDiscard; private: jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::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. DL3Trigger *l3trig; DApplication* dApplication; DMagneticFieldMap *bfield; DMagneticFieldStepper *stepper; //////////////////////////////// // Paramters for L3 algorithm // //////////////////////////////// Float_t BDT_CUT; string BDT_WEIGHT_PATH; //////////////////////////////// // Variables for L3 algorithm // //////////////////////////////// float Nstart_counter; // Number of start counter hits float Ntof; // Number of TOF hits float Nbcal_points; // Number of BCAL pofloats float Nbcal_clusters; // Number of BCAL clusters float EbcalPoints; // Total energy in BCAL (Points) float EbcalClusters; // Total energy in BCAL (Clusters) float Nfcal_clusters; // Number of FCAL clusters float EfcalClusters; // Total energy in FCAL (Clusters) float Ntrack_candidates_cut; // Number of track candidates float Ptot_tracks_cut; // Sum of total momentum from candidate tracks }; #endif // _DL3TriggerBDT_factory_