Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcRawDataTree Class Reference

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>

+ Inheritance diagram for TpcRawDataTree:
+ Collaboration diagram for TpcRawDataTree:

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")
 

Detailed Description

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

Constructor & Destructor Documentation

TpcRawDataTree::TpcRawDataTree ( const std::string &  fname = "TpcRawDataTree.root")
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().

+ Here is the call graph for this function:

TpcRawDataTree::~TpcRawDataTree ( )
inlineoverride

Definition at line 25 of file TpcRawDataTree.h.

View newest version in sPHENIX GitHub at line 25 of file TpcRawDataTree.h

Member Function Documentation

void TpcRawDataTree::AddPacket ( int  packet)
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.

int TpcRawDataTree::End ( PHCompositeNode topNode)
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.

void TpcRawDataTree::includeXYPos ( bool  doInclude)
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.

int TpcRawDataTree::InitRun ( PHCompositeNode topNode)
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.

Member Data Documentation

TH1F* TpcRawDataTree::checksumError_fee = nullptr
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().

TH1F* TpcRawDataTree::checksumError_feesampa = nullptr
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().

TH1F* TpcRawDataTree::checksumError_frame = nullptr
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().

int TpcRawDataTree::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}
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().

int TpcRawDataTree::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}
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().

TpcMap TpcRawDataTree::M
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().

std::vector<unsigned short> TpcRawDataTree::m_adcSamples
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().

int TpcRawDataTree::m_BCO = 0
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().

uint64_t TpcRawDataTree::m_bco = 0
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().

int TpcRawDataTree::m_Channel = 0
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().

int TpcRawDataTree::m_checksum = 0
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().

int TpcRawDataTree::m_checksumError = 0
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().

uint32_t TpcRawDataTree::m_endat_count = 0
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().

int TpcRawDataTree::m_fee = 0
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().

TFile* TpcRawDataTree::m_file = nullptr
private

Definition at line 60 of file TpcRawDataTree.h.

View newest version in sPHENIX GitHub at line 60 of file TpcRawDataTree.h

Referenced by End(), and InitRun().

std::string TpcRawDataTree::m_fname
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().

int TpcRawDataTree::m_frame = 0
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().

bool TpcRawDataTree::m_includeXYPos = true
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().

uint8_t TpcRawDataTree::m_is_endat = 0
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().

uint8_t TpcRawDataTree::m_is_lvl1 = 0
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().

uint64_t TpcRawDataTree::m_last_bco = 0
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().

uint32_t TpcRawDataTree::m_lvl1_count = 0
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().

int TpcRawDataTree::m_maxFEECount = 0
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().

uint8_t TpcRawDataTree::m_modebits = 0
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().

int TpcRawDataTree::m_nSamples = 0
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().

int TpcRawDataTree::m_nTaggerInFrame = 0
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().

int TpcRawDataTree::m_nWaveormInFrame = 0
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().

int TpcRawDataTree::m_packet = 0
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().

std::vector<int> TpcRawDataTree::m_packets
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().

TTree* TpcRawDataTree::m_PacketTree = nullptr
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().

int TpcRawDataTree::m_sampaAddress = 0
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().

int TpcRawDataTree::m_sampaChannel = 0
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().

TTree* TpcRawDataTree::m_SampleTree = nullptr
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().

uint16_t TpcRawDataTree::m_tagger_type = 0
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().

TTree* TpcRawDataTree::m_TaggerTree = nullptr
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().

double TpcRawDataTree::m_xPos = 0.
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().

double TpcRawDataTree::m_yPos = 0.
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().

TH1F* TpcRawDataTree::R1_hist = nullptr
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().

TH2F* TpcRawDataTree::R1_time = nullptr
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().

TH1F* TpcRawDataTree::R2_hist = nullptr
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().

TH2F* TpcRawDataTree::R2_time = nullptr
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().

TH1F* TpcRawDataTree::R3_hist = nullptr
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().

TH2F* TpcRawDataTree::R3_time = nullptr
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().

std::string TpcRawDataTree::sectorNum
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().

int TpcRawDataTree::side = 0
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().

TH1F* TpcRawDataTree::TotalFEE = nullptr
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().

TH1F* TpcRawDataTree::TotalFEEsampa = nullptr
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().

TH1F* TpcRawDataTree::TotalFRAME = nullptr
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().


The documentation for this class was generated from the following files: