Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/calibrations/tpc/TPCPedestalCalibration/TPCPedestalCalibration.h>
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 |
CDBTTree * | m_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") | |
Definition at line 17 of file TPCPedestalCalibration.h.
View newest version in sPHENIX GitHub at line 17 of file TPCPedestalCalibration.h
|
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.
|
inlineoverride |
Definition at line 22 of file TPCPedestalCalibration.h.
View newest version in sPHENIX GitHub at line 22 of file TPCPedestalCalibration.h
|
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().
|
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().
|
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.
|
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.
|
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.
|
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.
|
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().
|
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.
|
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().
|
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().
|
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().
|
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().
|
private |
Definition at line 63 of file TPCPedestalCalibration.h.
View newest version in sPHENIX GitHub at line 63 of file TPCPedestalCalibration.h
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().