Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EMCal-LEDs/src/LEDTowerBuilder.h>
Public Types | |
enum | DetectorSystem { CEMC = 0, HCALIN = 1, HCALOUT = 2, EPD = 3 } |
Public Member Functions | |
LEDTowerBuilder (const std::string &name="LEDTowerBuilder") | |
~LEDTowerBuilder () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | set_detector_type (LEDTowerBuilder::DetectorSystem dettype) |
void | set_nsamples (int _nsamples) |
void | set_dataflag (bool flag) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Init (PHCompositeNode *) |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. | |
void | Print (const std::string &="ALL") const override |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Private Attributes | |
CaloWaveformProcessing * | WaveformProcessing = new CaloWaveformProcessing() |
LEDTowerBuilder::DetectorSystem | m_dettype |
std::string | m_detector |
int | m_packet_low |
int | m_packet_high |
int | m_nsamples |
int | m_nchannels |
bool | m_isdata |
int | m_event |
TTree * | tOut |
std::vector< float > | m_adc |
std::vector< float > | m_ped |
std::vector< float > | m_time |
std::vector< int > | m_chan |
std::vector< std::vector< float > > | m_waveforms |
std::string | m_outputFilename |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 22 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 22 of file LEDTowerBuilder.h
Definition at line 32 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 32 of file LEDTowerBuilder.h
LEDTowerBuilder::LEDTowerBuilder | ( | const std::string & | name = "LEDTowerBuilder" | ) |
Definition at line 3 of file LEDTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 3 of file LEDTowerBuilder.cc
References Branch(), m_adc, m_chan, m_ped, m_time, m_waveforms, and tOut.
|
override |
Definition at line 31 of file LEDTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 31 of file LEDTowerBuilder.cc
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 145 of file LEDTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 145 of file LEDTowerBuilder.cc
References Fun4AllReturnCodes::EVENT_OK, m_outputFilename, check_smearing_config::output, tOut, and Write().
|
overridevirtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.
Reimplemented from SubsysReco.
Definition at line 36 of file LEDTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 36 of file LEDTowerBuilder.cc
References CEMC, EPD, Fun4AllReturnCodes::EVENT_OK, CaloWaveformProcessing::FAST, HCALIN, HCALOUT, CaloWaveformProcessing::initialize_processing(), m_detector, m_dettype, m_nchannels, m_packet_high, m_packet_low, PHCompositeNode::print(), CaloWaveformProcessing::set_processing_type(), CaloWaveformProcessing::set_template_file(), and WaveformProcessing.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 74 of file LEDTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 74 of file LEDTowerBuilder.cc
References channel(), Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, Fill(), Event::getEvtType(), Event::getPacket(), i, Packet::iValue(), m_adc, m_chan, m_event, m_isdata, m_nchannels, m_nsamples, m_packet_high, m_packet_low, m_ped, m_time, m_waveforms, train_ambiguity_solver::pid, CaloWaveformProcessing::process_waveform(), tOut, and WaveformProcessing.
|
inline |
Definition at line 48 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 48 of file LEDTowerBuilder.h
References m_isdata.
|
inline |
Definition at line 39 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 39 of file LEDTowerBuilder.h
References m_dettype.
Referenced by Fun4All_LEDTowerBuilder().
|
inline |
Definition at line 44 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 44 of file LEDTowerBuilder.h
References m_nsamples.
|
private |
Definition at line 66 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 66 of file LEDTowerBuilder.h
Referenced by LEDTowerBuilder(), and process_event().
|
private |
Definition at line 69 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 69 of file LEDTowerBuilder.h
Referenced by LEDTowerBuilder(), and process_event().
|
private |
Definition at line 57 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 57 of file LEDTowerBuilder.h
Referenced by InitRun().
|
private |
Definition at line 56 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 56 of file LEDTowerBuilder.h
Referenced by InitRun(), and set_detector_type().
|
private |
Definition at line 63 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 63 of file LEDTowerBuilder.h
Referenced by process_event().
|
private |
Definition at line 62 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 62 of file LEDTowerBuilder.h
Referenced by process_event(), and set_dataflag().
|
private |
Definition at line 61 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 61 of file LEDTowerBuilder.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 60 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 60 of file LEDTowerBuilder.h
Referenced by process_event(), and set_nsamples().
|
private |
Definition at line 71 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 71 of file LEDTowerBuilder.h
Referenced by End().
|
private |
Definition at line 59 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 59 of file LEDTowerBuilder.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 58 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 58 of file LEDTowerBuilder.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 67 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 67 of file LEDTowerBuilder.h
Referenced by LEDTowerBuilder(), and process_event().
|
private |
Definition at line 68 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 68 of file LEDTowerBuilder.h
Referenced by LEDTowerBuilder(), and process_event().
|
private |
Definition at line 70 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 70 of file LEDTowerBuilder.h
Referenced by LEDTowerBuilder(), and process_event().
|
private |
Definition at line 65 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 65 of file LEDTowerBuilder.h
Referenced by End(), LEDTowerBuilder(), and process_event().
|
private |
Definition at line 55 of file LEDTowerBuilder.h.
View newest version in sPHENIX GitHub at line 55 of file LEDTowerBuilder.h
Referenced by InitRun(), and process_event().