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

#include <analysis/blob/master/TPC/DAQ/TPCRawDataTree/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
 
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")
 

Detailed Description

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.

Referenced by Fun4All_TPC_EventDisplayPrep(), Fun4All_TPC_UnpackPRDF(), and Fun4All_TPC_UnpackPRDF_Batch().

+ Here is the caller graph for this function:

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 47 of file TPCRawDataTree.h.

View newest version in sPHENIX GitHub at line 47 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] ={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}
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().

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 113 of file TPCRawDataTree.h.

View newest version in sPHENIX GitHub at line 113 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 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().

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().

uint64_t TPCRawDataTree::m_last_lvl1_bco = 0
private

Definition at line 109 of file TPCRawDataTree.h.

View newest version in sPHENIX GitHub at line 109 of file TPCRawDataTree.h

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: