Analysis Software
Documentation for sPHENIX simulation software
|
Dump TPC raw data in PRDF format to a TTree for online debugging and seeding formal Fun4All reco/calib modules. More...
#include <coresoftware/blob/master/offline/packages/tpc/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 |
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] ={3, 2, 5, 3, 4, 0, 2, 1, 3, 4, 5, 7, 6, 2, 0, 1, 0, 1, 4, 5, 11, 9, 10, 8, 6, 7} |
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") | |
Dump TPC raw data in PRDF format to a TTree for online debugging and seeding formal Fun4All reco/calib modules.
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.
|
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 46 of file TpcRawDataTree.h.
View newest version in sPHENIX GitHub at line 46 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 111 of file TpcRawDataTree.h.
View newest version in sPHENIX GitHub at line 111 of file TpcRawDataTree.h
Referenced by process_event().
|
private |
Definition at line 110 of file TpcRawDataTree.h.
View newest version in sPHENIX GitHub at line 110 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 108 of file TpcRawDataTree.h.
View newest version in sPHENIX GitHub at line 108 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 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().