1 #ifndef _DL1MCTrigger_factory_
2 #define _DL1MCTrigger_factory_
4 #include <JANA/JFactory.h>
201 template <
typename T>
int FADC_SSP(vector<T> merged_hits,
203 int GTP(
int detector);
211 jerror_t
brun(jana::JEventLoop *eventLoop, int32_t runnumber);
212 jerror_t
evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber);
218 const vector<double> &fcal_const_ch,
222 void GetSeeds(JEventLoop *loop, uint64_t eventnumber, UInt_t &seed1, UInt_t &seed2, UInt_t &seed3);
232 #endif // _DL1MCTrigger_factory_
static const int max_adc_bins
vector< bcal_signal > bcal_merged_hits
jerror_t init(void)
Called once at program start.
int SignalPulse(double en, double time, double amp_array[sample], int type)
unsigned int tagh_pattern
static const int FCAL_MAX_CHANNELS
void LoadFCALConst(fcal_constants_t &table, const vector< double > &fcal_const_ch, const DFCALGeometry &fcalGeom)
vector< bcal_signal > bcal_signal_hits
fcal_constants_t fcal_pedestals
vector< trigger_conf > triggers_enabled
void AddBaseline(double adc_amp[sample], double pedestal, DRandom2 &gDRandom)
vector< bcal_mod > bcal_trig_mask
fcal_constants_t fcal_gains
vector< fcal_signal > fcal_merged_hits
static const int TRIG_BASELINE
static const int time_stamp
int FADC_SSP(vector< T > merged_hits, int detector)
void Digitize(double adc_amp[sample], int adc_count[sample])
void GetSeeds(JEventLoop *loop, uint64_t eventnumber, UInt_t &seed1, UInt_t &seed2, UInt_t &seed3)
jerror_t fini(void)
Called after last event of last event source has been processed.
int FindTriggers(DL1MCTrigger *trigger)
vector< fcal_signal > fcal_signal_hits
float BCAL_ADC_PER_MEV_CORRECT
static TH1I * pedestal[nChan]
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.
vector< vector< double > > fcal_constants_t
vector< fcal_mod > fcal_trig_mask
int Read_RCDB(int32_t runnumber)
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.