Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/calibrations/tpc/fillDigitalCurrentMaps/readDigitalCurrents.h>
Public Member Functions | |
readDigitalCurrents (const std::string &name="readDigitalCurrents", const std::string &filename="DC_Hist_OnPlane_WIBF.root") | |
virtual | ~readDigitalCurrents () |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up internals after each event. | |
int | EndRun (const int runnumber) override |
Called at the end of each run. | |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
int | Reset (PHCompositeNode *) override |
Reset. | |
void | Print (const std::string &what="ALL") const override |
void | SetBeamXing (const std::vector< int > &beamXs) |
void | SetEvtStart (int newEvtStart) |
void | FillCSV (int fillCSVFile) |
void | SetCollSyst (int coll_syst=0) |
void | SetIBF (float ampIBFfrac=0.004) |
void | SetCCGC (float f_ccgc=0) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
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 | |
Fun4AllHistoManager * | hm = nullptr |
std::string | _filename |
std::map< int, int > | _timestamps |
std::vector< int > | _keys |
float | _ampIBFfrac = 0.02 |
int | _collSyst = 0 |
std::ofstream | myCSVFile |
Private Attributes | |
std::vector< int > | _beamxing |
int | _evtstart = 0 |
int | _fillCSVFile = 0 |
int | _f_ccgc = 0 |
TH2 * | _h_modules_measuredibf = nullptr |
TH1 * | _h_R = nullptr |
TH1 * | _h_hits = nullptr |
TH3 * | _h_DC_SC = nullptr |
TH2 * | _h_DC_SC_XY = nullptr |
TH2 * | _h_hit_XY = nullptr |
TH2 * | _h_DC_E = nullptr |
TH3 * | _h_SC_ibf [nFrames] = {nullptr} |
float | _event_timestamp = 0 |
float | _event_bunchXing = 0 |
double | adc_pedestal =0. |
double | cm =1e1 |
double | m =1e3 |
double | mm =1 |
float | ns =1e-9 |
float | us =1e-6 |
float | ms =1e-3 |
float | s =1 |
float | V =1 |
float | ionMobility =1.65*cm*cm/V/s |
float | vIon =ionMobility*400*V/cm |
float | f =0.5 |
Static Private Attributes | |
static const int | nFrames = 30 |
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 26 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 26 of file readDigitalCurrents.h
readDigitalCurrents::readDigitalCurrents | ( | const std::string & | name = "readDigitalCurrents" , |
const std::string & | filename = "DC_Hist_OnPlane_WIBF.root" |
||
) |
Definition at line 91 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 91 of file readDigitalCurrents.cc
|
virtual |
Definition at line 103 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 103 of file readDigitalCurrents.cc
References hm.
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 490 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 490 of file readDigitalCurrents.cc
References _filename, _fillCSVFile, _h_DC_E, _h_DC_SC, _h_DC_SC_XY, _h_hit_XY, _h_hits, _h_R, _h_SC_ibf, Fun4AllHistoManager::dumpHistos(), Fun4AllReturnCodes::EVENT_OK, hm, myCSVFile, and nFrames.
|
overridevirtual |
Called at the end of each run.
Reimplemented from SubsysReco.
Definition at line 483 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 483 of file readDigitalCurrents.cc
References Fun4AllReturnCodes::EVENT_OK.
void readDigitalCurrents::FillCSV | ( | int | fillCSVFile | ) |
Definition at line 526 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 526 of file readDigitalCurrents.cc
References _fillCSVFile.
|
overridevirtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 111 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 111 of file readDigitalCurrents.cc
References _event_timestamp, _fillCSVFile, _h_DC_E, _h_DC_SC, _h_DC_SC_XY, _h_hit_XY, _h_hits, _h_R, _h_SC_ibf, cm, Fun4AllReturnCodes::EVENT_OK, hm, myCSVFile, perf_headwind::name, nFrames, nphi, nz, myAnalysis::phi_bins, Fun4AllHistoManager::registerHisto(), and physmon_track_finding_ttbar::z.
|
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 217 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 217 of file readDigitalCurrents.cc
References _collSyst, _h_modules_measuredibf, _keys, _timestamps, Fun4AllReturnCodes::EVENT_OK, i, line, n, generate_files_AA::n_line, and printf().
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from Fun4AllBase.
Definition at line 516 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 516 of file readDigitalCurrents.cc
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 267 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 267 of file readDigitalCurrents.cc
References _beamxing, _event_bunchXing, _event_timestamp, _evtstart, _f_ccgc, _fillCSVFile, _h_DC_E, _h_DC_SC, _h_DC_SC_XY, _h_hit_XY, _h_hits, _h_modules_measuredibf, _h_R, _h_SC_ibf, _keys, _timestamps, Fun4AllReturnCodes::ABORTRUN, adc_pedestal, add_histos_bX::bX, cm, E, Fun4AllReturnCodes::EVENT_OK, PHG4TpcCylinderGeom::get_phibins(), PHG4CylinderCellGeom::get_phicenter(), PHG4TpcCylinderGeom::get_phicenter(), PHG4CylinderCellGeom::get_radius(), PHG4TpcCylinderGeom::get_radius(), PHG4CylinderCellGeom::get_zcenter(), PHG4TpcCylinderGeom::get_zcenter(), TrkrHit::getAdc(), TrkrHit::getEnergy(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4CylinderCellGeomContainer::GetLayerCellGeom(), PHG4TpcCylinderGeomContainer::GetLayerCellGeom(), TpcDefs::getPad(), TpcDefs::getSide(), TpcDefs::getTBin(), TrkrDefs::getTrkrId(), layer, m, mm, myCSVFile, nFrames, ns, PHWHERE, TrkrDefs::tpcId, vIon, ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
Definition at line 509 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 509 of file readDigitalCurrents.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 476 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 476 of file readDigitalCurrents.cc
References Fun4AllReturnCodes::EVENT_OK.
void readDigitalCurrents::SetBeamXing | ( | const std::vector< int > & | beamXs | ) |
Definition at line 532 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 532 of file readDigitalCurrents.cc
References _beamxing.
Referenced by Fun4All_FillDCMap().
void readDigitalCurrents::SetCCGC | ( | float | f_ccgc = 0 | ) |
Definition at line 549 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 549 of file readDigitalCurrents.cc
References _f_ccgc.
Referenced by Fun4All_FillDCMap().
void readDigitalCurrents::SetCollSyst | ( | int | coll_syst = 0 | ) |
Definition at line 537 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 537 of file readDigitalCurrents.cc
References _collSyst.
Referenced by Fun4All_FillDCMap().
void readDigitalCurrents::SetEvtStart | ( | int | newEvtStart | ) |
Definition at line 521 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 521 of file readDigitalCurrents.cc
References _evtstart.
Referenced by Fun4All_FillDCMap().
void readDigitalCurrents::SetIBF | ( | float | ampIBFfrac = 0.004 | ) |
Definition at line 544 of file readDigitalCurrents.cc.
View newest version in sPHENIX GitHub at line 544 of file readDigitalCurrents.cc
References _ampIBFfrac.
Referenced by Fun4All_FillDCMap().
|
protected |
Definition at line 82 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 82 of file readDigitalCurrents.h
Referenced by SetIBF().
|
private |
Definition at line 87 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 87 of file readDigitalCurrents.h
Referenced by process_event(), and SetBeamXing().
|
protected |
Definition at line 83 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 83 of file readDigitalCurrents.h
Referenced by InitRun(), and SetCollSyst().
|
private |
Definition at line 107 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 107 of file readDigitalCurrents.h
Referenced by process_event().
|
private |
Definition at line 106 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 106 of file readDigitalCurrents.h
Referenced by Init(), and process_event().
|
private |
Definition at line 88 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 88 of file readDigitalCurrents.h
Referenced by process_event(), and SetEvtStart().
|
private |
Definition at line 92 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 92 of file readDigitalCurrents.h
Referenced by process_event(), and SetCCGC().
|
protected |
Definition at line 78 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 78 of file readDigitalCurrents.h
Referenced by End().
|
private |
Definition at line 90 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 90 of file readDigitalCurrents.h
Referenced by End(), FillCSV(), Init(), and process_event().
|
private |
Definition at line 101 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 101 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 98 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 98 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 99 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 99 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 100 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 100 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 97 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 97 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 94 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 94 of file readDigitalCurrents.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 96 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 96 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 104 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 104 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
protected |
Definition at line 81 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 81 of file readDigitalCurrents.h
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 80 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 80 of file readDigitalCurrents.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 110 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 110 of file readDigitalCurrents.h
Referenced by process_event().
|
private |
Definition at line 111 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 111 of file readDigitalCurrents.h
Referenced by Init(), and process_event().
|
private |
Definition at line 118 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 118 of file readDigitalCurrents.h
|
protected |
Definition at line 77 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 77 of file readDigitalCurrents.h
Referenced by End(), Init(), and ~readDigitalCurrents().
Definition at line 115 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 115 of file readDigitalCurrents.h
|
private |
Definition at line 111 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 111 of file readDigitalCurrents.h
Referenced by process_event().
|
private |
Definition at line 111 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 111 of file readDigitalCurrents.h
Referenced by process_event().
|
private |
Definition at line 112 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 112 of file readDigitalCurrents.h
|
protected |
Definition at line 84 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 84 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
staticprivate |
Definition at line 103 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 103 of file readDigitalCurrents.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 112 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 112 of file readDigitalCurrents.h
Referenced by process_event().
|
private |
Definition at line 112 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 112 of file readDigitalCurrents.h
|
private |
Definition at line 112 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 112 of file readDigitalCurrents.h
|
private |
Definition at line 113 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 113 of file readDigitalCurrents.h
|
private |
Definition at line 116 of file readDigitalCurrents.h.
View newest version in sPHENIX GitHub at line 116 of file readDigitalCurrents.h
Referenced by process_event().