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

#include <coresoftware/blob/master/calibrations/tpc/TPCPedestalCalibration/TPCPedestalCalibration.h>

+ Inheritance diagram for TPCPedestalCalibration:
+ Collaboration diagram for TPCPedestalCalibration:

Public Member Functions

 TPCPedestalCalibration (const std::string &name="TPCPedestalCalibration.root")
 
 ~TPCPedestalCalibration () override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int EndRun (const int runnumber) override
 Called at the end of each run.
 
void CDBInsert ()
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
void AddPacket (int packet)
 
void SetSector (int sectorNum)
 
void InsertCDBTTree (const std::string &username)
 
void NewCDBGlobalTag (std::string username)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
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 {1001}
 which packet to decode
 

Private Attributes

std::string m_fname
 
bool m_writeToCDB
 
CDBTTreem_cdbttree = nullptr
 
int m_BCO = 0
 
int m_packet = 0
 
int m_nWaveormInFrame = 0
 
int m_nSamples = 0
 
int m_fee = 0
 
int m_Channel = 0
 
std::vector< unsigned short > m_adcSamples
 
float m_aveADCFeeChannel [26][256]
 
float m_stdADCFeeChannel [26][256]
 
float m_countsADCFeeChannel [26][256]
 
int m_aliveArrayFeeChannel [26][256]
 
std::string m_username = "test"
 
bool m_firstBCO = true
 
int m_isAlive = 1
 
float m_pedMean = 0
 
float m_pedStd = 0
 
int m_sector = 0
 
int m_outFEE = 99
 
int m_chan = 999
 
int m_module = 9
 
int m_slot = 99
 
int mod_arr [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 slot_arr [26] = {5,6,1,3,2,12,10,11,9,8,7,1,2,4,8,7,6,5,4,3,1,3,2,4,6,5}
 

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 17 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 17 of file TPCPedestalCalibration.h

Constructor & Destructor Documentation

TPCPedestalCalibration::TPCPedestalCalibration ( const std::string &  name = "TPCPedestalCalibration.root")
explicit

Definition at line 30 of file TPCPedestalCalibration.cc.

View newest version in sPHENIX GitHub at line 30 of file TPCPedestalCalibration.cc

References m_adcSamples, m_aliveArrayFeeChannel, m_aveADCFeeChannel, m_countsADCFeeChannel, and m_stdADCFeeChannel.

TPCPedestalCalibration::~TPCPedestalCalibration ( )
inlineoverride

Definition at line 22 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 22 of file TPCPedestalCalibration.h

Member Function Documentation

void TPCPedestalCalibration::AddPacket ( int  packet)
inline

Definition at line 34 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 34 of file TPCPedestalCalibration.h

References m_packets.

void TPCPedestalCalibration::CDBInsert ( )

Definition at line 188 of file TPCPedestalCalibration.cc.

View newest version in sPHENIX GitHub at line 188 of file TPCPedestalCalibration.cc

References CDBUtils::createPayloadType(), PHFlag::get_StringFlag(), CDBUtils::insertPayload(), recoConsts::instance(), m_BCO, and m_fname.

Referenced by End().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int TPCPedestalCalibration::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 200 of file TPCPedestalCalibration.cc.

View newest version in sPHENIX GitHub at line 200 of file TPCPedestalCalibration.cc

References CDBInsert(), CDBTTree::Commit(), Fun4AllReturnCodes::EVENT_OK, m_cdbttree, m_fname, m_username, m_writeToCDB, CDBTTree::Print(), Fun4AllBase::Verbosity(), and CDBTTree::WriteCDBTTree().

+ Here is the call graph for this function:

int TPCPedestalCalibration::EndRun ( const int  )
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 139 of file TPCPedestalCalibration.cc.

View newest version in sPHENIX GitHub at line 139 of file TPCPedestalCalibration.cc

References Fun4AllReturnCodes::EVENT_OK, m_aliveArrayFeeChannel, m_aveADCFeeChannel, m_cdbttree, m_chan, m_countsADCFeeChannel, m_isAlive, m_module, m_outFEE, m_pedMean, m_pedStd, m_sector, m_slot, m_stdADCFeeChannel, mod_arr, CDBTTree::SetFloatValue(), CDBTTree::SetIntValue(), and slot_arr.

+ Here is the call graph for this function:

int TPCPedestalCalibration::InitRun ( PHCompositeNode )
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 51 of file TPCPedestalCalibration.cc.

View newest version in sPHENIX GitHub at line 51 of file TPCPedestalCalibration.cc

References Fun4AllReturnCodes::EVENT_OK, m_cdbttree, and m_fname.

void TPCPedestalCalibration::InsertCDBTTree ( const std::string &  username)
inline

Definition at line 44 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 44 of file TPCPedestalCalibration.h

References m_username, m_writeToCDB, and runCondor_beamspot::username.

void TPCPedestalCalibration::NewCDBGlobalTag ( std::string  username)
inline

Definition at line 50 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 50 of file TPCPedestalCalibration.h

References CDBUtils::createGlobalTag(), and uti.

+ Here is the call graph for this function:

int TPCPedestalCalibration::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

special events

Reimplemented from SubsysReco.

Definition at line 59 of file TPCPedestalCalibration.cc.

View newest version in sPHENIX GitHub at line 59 of file TPCPedestalCalibration.cc

References assert, Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, Event::getEvtType(), Event::getPacket(), m_adcSamples, m_aliveArrayFeeChannel, m_aveADCFeeChannel, m_BCO, m_Channel, m_countsADCFeeChannel, m_fee, m_firstBCO, m_nSamples, m_nWaveormInFrame, m_packet, m_packets, m_stdADCFeeChannel, merge_hashes::p, physmon_simulation::s, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void TPCPedestalCalibration::SetSector ( int  sectorNum)
inline

Definition at line 39 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 39 of file TPCPedestalCalibration.h

References m_sector.

Member Data Documentation

std::vector<unsigned short> TPCPedestalCalibration::m_adcSamples
private

Definition at line 71 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 71 of file TPCPedestalCalibration.h

Referenced by process_event(), and TPCPedestalCalibration().

int TPCPedestalCalibration::m_aliveArrayFeeChannel[26][256]
private

Definition at line 76 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 76 of file TPCPedestalCalibration.h

Referenced by EndRun(), process_event(), and TPCPedestalCalibration().

float TPCPedestalCalibration::m_aveADCFeeChannel[26][256]
private

Definition at line 73 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 73 of file TPCPedestalCalibration.h

Referenced by EndRun(), process_event(), and TPCPedestalCalibration().

int TPCPedestalCalibration::m_BCO = 0
private

Definition at line 65 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 65 of file TPCPedestalCalibration.h

Referenced by CDBInsert(), and process_event().

CDBTTree* TPCPedestalCalibration::m_cdbttree = nullptr
private

Definition at line 63 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 63 of file TPCPedestalCalibration.h

Referenced by End(), EndRun(), and InitRun().

int TPCPedestalCalibration::m_chan = 999
private

Definition at line 85 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 85 of file TPCPedestalCalibration.h

Referenced by EndRun().

int TPCPedestalCalibration::m_Channel = 0
private

Definition at line 70 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 70 of file TPCPedestalCalibration.h

Referenced by process_event().

float TPCPedestalCalibration::m_countsADCFeeChannel[26][256]
private

Definition at line 75 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 75 of file TPCPedestalCalibration.h

Referenced by EndRun(), process_event(), and TPCPedestalCalibration().

int TPCPedestalCalibration::m_fee = 0
private

Definition at line 69 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 69 of file TPCPedestalCalibration.h

Referenced by process_event().

bool TPCPedestalCalibration::m_firstBCO = true
private

Definition at line 79 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 79 of file TPCPedestalCalibration.h

Referenced by process_event().

std::string TPCPedestalCalibration::m_fname
private

Definition at line 61 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 61 of file TPCPedestalCalibration.h

Referenced by CDBInsert(), End(), and InitRun().

int TPCPedestalCalibration::m_isAlive = 1
private

Definition at line 80 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 80 of file TPCPedestalCalibration.h

Referenced by EndRun().

int TPCPedestalCalibration::m_module = 9
private

Definition at line 86 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 86 of file TPCPedestalCalibration.h

Referenced by EndRun().

int TPCPedestalCalibration::m_nSamples = 0
private

Definition at line 68 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 68 of file TPCPedestalCalibration.h

Referenced by process_event().

int TPCPedestalCalibration::m_nWaveormInFrame = 0
private

Definition at line 67 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 67 of file TPCPedestalCalibration.h

Referenced by process_event().

int TPCPedestalCalibration::m_outFEE = 99
private

Definition at line 84 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 84 of file TPCPedestalCalibration.h

Referenced by EndRun().

int TPCPedestalCalibration::m_packet = 0
private

Definition at line 66 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 66 of file TPCPedestalCalibration.h

Referenced by process_event().

std::vector<int> TPCPedestalCalibration::m_packets {1001}
protected

which packet to decode

Definition at line 58 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 58 of file TPCPedestalCalibration.h

Referenced by AddPacket(), and process_event().

float TPCPedestalCalibration::m_pedMean = 0
private

Definition at line 81 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 81 of file TPCPedestalCalibration.h

Referenced by EndRun().

float TPCPedestalCalibration::m_pedStd = 0
private

Definition at line 82 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 82 of file TPCPedestalCalibration.h

Referenced by EndRun().

int TPCPedestalCalibration::m_sector = 0
private

Definition at line 83 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 83 of file TPCPedestalCalibration.h

Referenced by EndRun(), and SetSector().

int TPCPedestalCalibration::m_slot = 99
private

Definition at line 87 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 87 of file TPCPedestalCalibration.h

Referenced by EndRun().

float TPCPedestalCalibration::m_stdADCFeeChannel[26][256]
private

Definition at line 74 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 74 of file TPCPedestalCalibration.h

Referenced by EndRun(), process_event(), and TPCPedestalCalibration().

std::string TPCPedestalCalibration::m_username = "test"
private

Definition at line 78 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 78 of file TPCPedestalCalibration.h

Referenced by End(), and InsertCDBTTree().

bool TPCPedestalCalibration::m_writeToCDB
private

Definition at line 62 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 62 of file TPCPedestalCalibration.h

Referenced by End(), and InsertCDBTTree().

int TPCPedestalCalibration::mod_arr[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 89 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 89 of file TPCPedestalCalibration.h

Referenced by EndRun().

int TPCPedestalCalibration::slot_arr[26] = {5,6,1,3,2,12,10,11,9,8,7,1,2,4,8,7,6,5,4,3,1,3,2,4,6,5}
private

Definition at line 90 of file TPCPedestalCalibration.h.

View newest version in sPHENIX GitHub at line 90 of file TPCPedestalCalibration.h

Referenced by EndRun().


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