Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/TPC/DAQ/TPCRawDataTree/TPCRawDataTree.h>
Public Member Functions | |
TPCRawDataTree (const std::string &fname="TPCRawDataTree.root") | |
~TPCRawDataTree () 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 | AddPacket (int packet) |
void | includeXYPos (bool doInclude) |
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. | |
Protected Attributes | |
std::vector< int > | m_packets |
which packet to decode | |
TpcMap | M |
Private Attributes | |
bool | m_includeXYPos = true |
std::string | m_fname |
TFile * | m_file = nullptr |
TTree * | m_SampleTree = nullptr |
TTree * | m_PacketTree = nullptr |
TTree * | m_TaggerTree = nullptr |
TH1F * | R1_hist = nullptr |
TH1F * | R2_hist = nullptr |
TH1F * | R3_hist = nullptr |
TH1F * | TotalFEE = nullptr |
TH1F * | TotalFEEsampa = nullptr |
TH1F * | TotalFRAME = nullptr |
TH1F * | checksumError_fee = nullptr |
TH1F * | checksumError_feesampa = nullptr |
TH1F * | checksumError_frame = nullptr |
TH2F * | R1_time = nullptr |
TH2F * | R2_time = nullptr |
TH2F * | R3_time = nullptr |
std::string | sectorNum |
int | m_packet = 0 |
int | m_frame = 0 |
int | m_nWaveormInFrame = 0 |
int | m_maxFEECount = 0 |
int | m_nSamples = 0 |
int | m_fee = 0 |
int | m_sampaAddress = 0 |
int | m_sampaChannel = 0 |
int | m_Channel = 0 |
int | m_BCO = 0 |
int | m_checksum = 0 |
int | m_checksumError = 0 |
int | side = 0 |
double | m_xPos = 0. |
double | m_yPos = 0. |
int | m_nTaggerInFrame = 0 |
uint16_t | m_tagger_type = 0 |
uint8_t | m_is_endat = 0 |
uint8_t | m_is_lvl1 = 0 |
uint64_t | m_bco = 0 |
uint32_t | m_lvl1_count = 0 |
uint32_t | m_endat_count = 0 |
uint64_t | m_last_bco = 0 |
uint8_t | m_modebits = 0 |
uint64_t | m_last_lvl1_bco = 0 |
std::vector< unsigned short > | m_adcSamples |
int | FEE_R [26] ={2, 2, 1, 1, 1, 3, 3, 3, 3, 3, 3, 2, 2, 1, 2, 2, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3} |
int | FEE_map [26] ={4, 5, 0, 2, 1, 11, 9, 10, 8, 7, 6, 0, 1, 3, 7, 6, 5, 4, 3, 2, 0, 2, 1, 3, 5, 4} |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 20 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 20 of file TPCRawDataTree.h
|
explicit |
Definition at line 26 of file TPCRawDataTree.cc.
View newest version in sPHENIX GitHub at line 26 of file TPCRawDataTree.cc
References M, m_adcSamples, and TpcMap::setMapNames().
|
inlineoverride |
Definition at line 25 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 25 of file TPCRawDataTree.h
|
inline |
Definition at line 42 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 42 of file TPCRawDataTree.h
References m_packets.
Referenced by Fun4All_TPC_EventDisplayPrep(), Fun4All_TPC_UnpackPRDF(), and Fun4All_TPC_UnpackPRDF_Batch().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 244 of file TPCRawDataTree.cc.
View newest version in sPHENIX GitHub at line 244 of file TPCRawDataTree.cc
References checksumError_fee, checksumError_feesampa, checksumError_frame, Fun4AllReturnCodes::EVENT_OK, m_file, TotalFEE, TotalFEEsampa, and TotalFRAME.
|
inline |
Definition at line 47 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 47 of file TPCRawDataTree.h
References m_includeXYPos.
|
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. A place to book histograms which have to know the run number.
Reimplemented from SubsysReco.
Definition at line 36 of file TPCRawDataTree.cc.
View newest version in sPHENIX GitHub at line 36 of file TPCRawDataTree.cc
References assert, checksumError_fee, checksumError_feesampa, checksumError_frame, Fun4AllReturnCodes::EVENT_OK, m_adcSamples, m_BCO, m_bco, m_Channel, m_checksum, m_checksumError, m_endat_count, m_fee, m_file, m_fname, m_frame, m_includeXYPos, m_is_endat, m_is_lvl1, m_last_bco, m_lvl1_count, m_maxFEECount, m_modebits, m_nSamples, m_nTaggerInFrame, m_nWaveormInFrame, m_packet, m_PacketTree, m_sampaAddress, m_sampaChannel, m_SampleTree, m_tagger_type, m_TaggerTree, m_xPos, m_yPos, Acts::Test::pos, R1_hist, R1_time, R2_hist, R2_time, R3_hist, R3_time, sectorNum, side, TotalFEE, TotalFEEsampa, and TotalFRAME.
|
overridevirtual |
Called for each event. This is where you do the real work.
special events
Reimplemented from SubsysReco.
Definition at line 111 of file TPCRawDataTree.cc.
View newest version in sPHENIX GitHub at line 111 of file TPCRawDataTree.cc
References assert, checksumError_fee, checksumError_feesampa, checksumError_frame, Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, FEE_map, FEE_R, fillHist(), Event::getEvtSequence(), Event::getEvtType(), TpcMap::getLayer(), Event::getPacket(), TpcMap::getPhi(), TpcMap::getR(), layer, M, m_adcSamples, m_BCO, m_bco, m_Channel, m_checksum, m_checksumError, m_endat_count, m_fee, m_frame, m_includeXYPos, m_is_endat, m_is_lvl1, m_last_bco, m_lvl1_count, m_maxFEECount, m_modebits, m_nSamples, m_nTaggerInFrame, m_nWaveormInFrame, m_packet, m_packets, m_PacketTree, m_sampaAddress, m_sampaChannel, m_SampleTree, m_tagger_type, m_TaggerTree, m_xPos, m_yPos, merge_hashes::p, ActsTests::PropagationDatasets::phi, Acts::IntegrationTest::R, R1_hist, R1_time, R2_hist, R2_time, R3_hist, R3_time, physmon_simulation::s, sectorNum, side, t, TotalFEE, TotalFEEsampa, TotalFRAME, and Fun4AllBase::Verbosity().
|
private |
Definition at line 73 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 73 of file TPCRawDataTree.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 74 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 74 of file TPCRawDataTree.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 75 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 75 of file TPCRawDataTree.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 114 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 114 of file TPCRawDataTree.h
Referenced by process_event().
|
private |
Definition at line 113 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 113 of file TPCRawDataTree.h
Referenced by process_event().
|
protected |
Definition at line 55 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 55 of file TPCRawDataTree.h
Referenced by process_event(), and TPCRawDataTree().
|
private |
Definition at line 111 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 111 of file TPCRawDataTree.h
Referenced by InitRun(), process_event(), and TPCRawDataTree().
|
private |
Definition at line 91 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 91 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 102 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 102 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 90 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 90 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 92 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 92 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 93 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 93 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 104 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 104 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 87 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 87 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 60 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 60 of file TPCRawDataTree.h
|
private |
Definition at line 59 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 59 of file TPCRawDataTree.h
Referenced by InitRun().
|
private |
Definition at line 83 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 83 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 58 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 58 of file TPCRawDataTree.h
Referenced by includeXYPos(), InitRun(), and process_event().
|
private |
Definition at line 100 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 100 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 101 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 101 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 105 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 105 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 109 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 109 of file TPCRawDataTree.h
|
private |
Definition at line 103 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 103 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 85 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 85 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 106 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 106 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 86 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 86 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 98 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 98 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 84 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 84 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 82 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 82 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
protected |
which packet to decode
Definition at line 54 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 54 of file TPCRawDataTree.h
Referenced by AddPacket(), and process_event().
|
private |
Definition at line 62 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 62 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 88 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 88 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 89 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 89 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 61 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 61 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 99 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 99 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 63 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 63 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 95 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 95 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 96 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 96 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 67 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 67 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 76 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 76 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 68 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 68 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 77 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 77 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 69 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 69 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 78 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 78 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 80 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 80 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 94 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 94 of file TPCRawDataTree.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 70 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 70 of file TPCRawDataTree.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 71 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 71 of file TPCRawDataTree.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 72 of file TPCRawDataTree.h.
View newest version in sPHENIX GitHub at line 72 of file TPCRawDataTree.h
Referenced by End(), InitRun(), and process_event().