Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/calibrations/tpc/fillSpaceChargeMaps/fillSpaceChargeMaps.h>
Public Member Functions | |
fillSpaceChargeMaps (const std::string &name="fillSpaceChargeMaps", const std::string &filename="Hist.root") | |
virtual | ~fillSpaceChargeMaps () |
int | Init (PHCompositeNode *) override |
int | InitRun (PHCompositeNode *) override |
int | process_event (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *) override |
Called at the end of all processing. | |
void | SetFrequency (int freq) |
void | SetBeamXing (const std::vector< int > &beamXs) |
void | SetEvtStart (int newEvtStart) |
void | SetUseIBFMap (bool useIBFMap=true) |
void | SetGain (float ampGain=2e3) |
void | SetIBF (float ampIBFfrac=0.004) |
void | SetCollSyst (int coll_syst=0) |
void | SetAvg (int fAvg=0) |
void | UseSliming (int fSliming=0) |
void | UseFieldMaps (int shiftElectrons=0) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
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. | |
Private Member Functions | |
std::vector< double > | getNewWeights (TH3 *_h_SC_ibf, TH2 *_h_modules_anode, TH2 *_h_modules_measuredibf, double _hit_r, double _hit_phi, double dr_bin, double dphi_bin, bool _fUseIBFMap) |
bool | IsOverFrame (double r, double phi) |
std::vector< double > | putOnPlane (double r, double phi) |
Private Attributes | |
Fun4AllHistoManager * | hm = nullptr |
std::string | _filename |
std::set< std::string > | _node_postfix |
std::map< int, int > | _timestamps |
std::vector< int > | _keys |
TFile * | outfile = nullptr |
float | _ampGain = 2e3 |
float | _ampIBFfrac = 0.02 |
int | _collSyst = 0 |
int | _shiftElectrons = 0 |
double | _freqKhz = 22 |
std::vector< int > | _beamxing |
int | _evtstart = 0 |
int | _fAvg = 0 |
int | _fSliming = 0 |
TTree * | _rawHits = nullptr |
int | _isOnPlane = 0 |
float | _hit_z = 0 |
float | _hit_r = 0 |
float | _hit_phi = 0 |
float | _hit_eion = 0 |
float | _ibf_vol = 0 |
float | _amp_ele_vol = 0 |
float | _event_timestamp = 0 |
float | _event_bunchXing = 0 |
bool | _fUseIBFMap = false |
TH2 * | _h_modules_anode = nullptr |
TH2 * | _h_modules_measuredibf = nullptr |
TH1 * | _h_hits = nullptr |
TH1 * | _h_R = nullptr |
TH2 * | _h_DC_E = nullptr |
TH2 * | _h_SC_XY = nullptr |
TH3 * | _h_SC_prim [nFrames] = {nullptr} |
TH3 * | _h_SC_ibf [nFrames] = {nullptr} |
float | f = 0.5 |
float | ns = 1e-9 |
float | s = 1.0 |
float | mm = 1.0 |
float | cm = 10.0 |
float | m = 1000.0 |
float | kHz = 1e3 |
float | MHz = 1e6 |
float | V = 1.0 |
float | ionMobility = 1.65 * cm * cm / V / s |
float | vIon = ionMobility * 400 * V / cm |
float | mbRate = _freqKhz * kHz |
float | xingRate = 9.383 * MHz |
double | Ne_dEdx = 1.56 / cm |
double | CF4_dEdx = 7.00 / cm |
double | Ne_NTotal = 43 / cm |
double | CF4_NTotal = 100 / cm |
double | Tpc_NTot = 0.50 * Ne_NTotal + 0.50 * CF4_NTotal |
double | Tpc_dEdx = 0.50 * Ne_dEdx + 0.50 * CF4_dEdx |
double | Tpc_ElectronsPerGeV = Tpc_NTot / Tpc_dEdx * 1e6 |
double | phi_dead_bins [24] |
float | _mbRate = 0 |
float | _xingRate = 0 |
float | _mean = 0 |
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 27 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 27 of file fillSpaceChargeMaps.h
fillSpaceChargeMaps::fillSpaceChargeMaps | ( | const std::string & | name = "fillSpaceChargeMaps" , |
const std::string & | filename = "Hist.root" |
||
) |
Definition at line 39 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 39 of file fillSpaceChargeMaps.cc
|
virtual |
Definition at line 47 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 47 of file fillSpaceChargeMaps.cc
References hm.
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 445 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 445 of file fillSpaceChargeMaps.cc
References _filename, _fSliming, _h_DC_E, _h_hits, _h_R, _h_SC_ibf, _h_SC_prim, _h_SC_XY, Fun4AllHistoManager::dumpHistos(), hm, and outfile.
|
private |
Definition at line 540 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 540 of file fillSpaceChargeMaps.cc
References _h_R.
Referenced by process_event().
|
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 55 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 55 of file fillSpaceChargeMaps.cc
References _amp_ele_vol, _event_bunchXing, _event_timestamp, _filename, _fSliming, _h_DC_E, _h_hits, _h_R, _h_SC_ibf, _h_SC_prim, _h_SC_XY, _hit_eion, _hit_phi, _hit_r, _hit_z, _ibf_vol, _isOnPlane, _rawHits, cm, hm, perf_headwind::name, nphi, nz, outfile, myAnalysis::phi_bins, 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 149 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 149 of file fillSpaceChargeMaps.cc
References _collSyst, _freqKhz, _fUseIBFMap, _h_modules_anode, _h_modules_measuredibf, _keys, _mbRate, _mean, _timestamps, _xingRate, i, kHz, line, mbRate, MHz, n, generate_files_AA::n_line, printf(), and xingRate.
Definition at line 632 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 632 of file fillSpaceChargeMaps.cc
References mm, merge_hashes::p, and phi_dead_bins.
Referenced by process_event().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 208 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 208 of file fillSpaceChargeMaps.cc
References _amp_ele_vol, _ampGain, _ampIBFfrac, _beamxing, _event_bunchXing, _event_timestamp, _evtstart, _fAvg, _fSliming, _fUseIBFMap, _h_DC_E, _h_hits, _h_modules_anode, _h_modules_measuredibf, _h_R, _h_SC_ibf, _h_SC_prim, _h_SC_XY, _hit_eion, _hit_phi, _hit_r, _hit_z, _ibf_vol, _isOnPlane, _keys, _rawHits, _shiftElectrons, _timestamps, add_histos_bX::bX, cm, Fun4AllReturnCodes::EVENT_OK, f, PHG4HitContainer::getHits(), getNewWeights(), IsOverFrame(), m, mm, ns, ActsTests::PropagationDatasets::phi, putOnPlane(), physmon_track_finding_ttbar::r, Shifter::ShiftForward(), Tpc_ElectronsPerGeV, vIon, ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
Definition at line 676 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 676 of file fillSpaceChargeMaps.cc
References mm, merge_hashes::p, and phi_dead_bins.
Referenced by process_event().
void fillSpaceChargeMaps::SetAvg | ( | int | fAvg = 0 | ) |
Definition at line 520 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 520 of file fillSpaceChargeMaps.cc
References _fAvg.
void fillSpaceChargeMaps::SetBeamXing | ( | const std::vector< int > & | beamXs | ) |
Definition at line 481 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 481 of file fillSpaceChargeMaps.cc
References _beamxing.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
void fillSpaceChargeMaps::SetCollSyst | ( | int | coll_syst = 0 | ) |
Definition at line 513 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 513 of file fillSpaceChargeMaps.cc
References _collSyst.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
void fillSpaceChargeMaps::SetEvtStart | ( | int | newEvtStart | ) |
Definition at line 491 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 491 of file fillSpaceChargeMaps.cc
References _evtstart.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
void fillSpaceChargeMaps::SetFrequency | ( | int | freq | ) |
Definition at line 475 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 475 of file fillSpaceChargeMaps.cc
References _freqKhz.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
void fillSpaceChargeMaps::SetGain | ( | float | ampGain = 2e3 | ) |
Definition at line 502 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 502 of file fillSpaceChargeMaps.cc
References _ampGain.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
void fillSpaceChargeMaps::SetIBF | ( | float | ampIBFfrac = 0.004 | ) |
Definition at line 507 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 507 of file fillSpaceChargeMaps.cc
References _ampIBFfrac.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
void fillSpaceChargeMaps::SetUseIBFMap | ( | bool | useIBFMap = true | ) |
Definition at line 497 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 497 of file fillSpaceChargeMaps.cc
References _fUseIBFMap.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
void fillSpaceChargeMaps::UseFieldMaps | ( | int | shiftElectrons = 0 | ) |
Definition at line 533 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 533 of file fillSpaceChargeMaps.cc
References _shiftElectrons.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
void fillSpaceChargeMaps::UseSliming | ( | int | fSliming = 0 | ) |
Definition at line 526 of file fillSpaceChargeMaps.cc.
View newest version in sPHENIX GitHub at line 526 of file fillSpaceChargeMaps.cc
References _fSliming.
Referenced by Fun4All_FillChargesMap_300evts_MDC2().
|
private |
Definition at line 98 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 98 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 78 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 78 of file fillSpaceChargeMaps.h
Referenced by process_event(), and SetGain().
|
private |
Definition at line 79 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 79 of file fillSpaceChargeMaps.h
Referenced by process_event(), and SetIBF().
|
private |
Definition at line 85 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 85 of file fillSpaceChargeMaps.h
Referenced by process_event(), and SetBeamXing().
|
private |
Definition at line 80 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 80 of file fillSpaceChargeMaps.h
Referenced by InitRun(), and SetCollSyst().
|
private |
Definition at line 100 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 100 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 99 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 99 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 88 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 88 of file fillSpaceChargeMaps.h
Referenced by process_event(), and SetEvtStart().
|
private |
Definition at line 89 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 89 of file fillSpaceChargeMaps.h
Referenced by process_event(), and SetAvg().
|
private |
Definition at line 73 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 73 of file fillSpaceChargeMaps.h
|
private |
Definition at line 83 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 83 of file fillSpaceChargeMaps.h
Referenced by InitRun(), and SetFrequency().
|
private |
Definition at line 90 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 90 of file fillSpaceChargeMaps.h
Referenced by End(), Init(), process_event(), and UseSliming().
|
private |
Definition at line 102 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 102 of file fillSpaceChargeMaps.h
Referenced by InitRun(), process_event(), and SetUseIBFMap().
|
private |
Definition at line 107 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 107 of file fillSpaceChargeMaps.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 105 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 105 of file fillSpaceChargeMaps.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 103 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 103 of file fillSpaceChargeMaps.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 104 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 104 of file fillSpaceChargeMaps.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 106 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 106 of file fillSpaceChargeMaps.h
Referenced by End(), getNewWeights(), Init(), and process_event().
|
private |
Definition at line 111 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 111 of file fillSpaceChargeMaps.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 110 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 110 of file fillSpaceChargeMaps.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 108 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 108 of file fillSpaceChargeMaps.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 96 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 96 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 95 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 95 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 94 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 94 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 93 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 93 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 97 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 97 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 92 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 92 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 76 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 76 of file fillSpaceChargeMaps.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 168 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 168 of file fillSpaceChargeMaps.h
Referenced by InitRun().
|
private |
Definition at line 170 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 170 of file fillSpaceChargeMaps.h
Referenced by InitRun().
|
private |
Definition at line 74 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 74 of file fillSpaceChargeMaps.h
|
private |
Definition at line 91 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 91 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 81 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 81 of file fillSpaceChargeMaps.h
Referenced by process_event(), and UseFieldMaps().
|
private |
Definition at line 75 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 75 of file fillSpaceChargeMaps.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 169 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 169 of file fillSpaceChargeMaps.h
Referenced by InitRun().
Definition at line 136 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 136 of file fillSpaceChargeMaps.h
Definition at line 138 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 138 of file fillSpaceChargeMaps.h
|
private |
Definition at line 118 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 118 of file fillSpaceChargeMaps.h
Referenced by Init(), and process_event().
|
private |
Definition at line 116 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 116 of file fillSpaceChargeMaps.h
Referenced by process_event().
|
private |
Definition at line 72 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 72 of file fillSpaceChargeMaps.h
Referenced by End(), Init(), and ~fillSpaceChargeMaps().
Definition at line 125 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 125 of file fillSpaceChargeMaps.h
|
private |
Definition at line 119 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 119 of file fillSpaceChargeMaps.h
Referenced by InitRun().
|
private |
Definition at line 118 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 118 of file fillSpaceChargeMaps.h
Referenced by process_event().
Definition at line 128 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 128 of file fillSpaceChargeMaps.h
Referenced by InitRun().
|
private |
Definition at line 119 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 119 of file fillSpaceChargeMaps.h
Referenced by InitRun().
|
private |
Definition at line 118 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 118 of file fillSpaceChargeMaps.h
Referenced by IsOverFrame(), process_event(), and putOnPlane().
Definition at line 135 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 135 of file fillSpaceChargeMaps.h
Definition at line 137 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 137 of file fillSpaceChargeMaps.h
|
staticprivate |
Definition at line 109 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 109 of file fillSpaceChargeMaps.h
|
private |
Definition at line 117 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 117 of file fillSpaceChargeMaps.h
Referenced by process_event().
|
private |
Definition at line 77 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 77 of file fillSpaceChargeMaps.h
|
private |
Definition at line 146 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 146 of file fillSpaceChargeMaps.h
Referenced by IsOverFrame(), and putOnPlane().
|
private |
Definition at line 117 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 117 of file fillSpaceChargeMaps.h
Definition at line 142 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 142 of file fillSpaceChargeMaps.h
Definition at line 145 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 145 of file fillSpaceChargeMaps.h
Referenced by process_event().
|
private |
Definition at line 141 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 141 of file fillSpaceChargeMaps.h
|
private |
Definition at line 120 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 120 of file fillSpaceChargeMaps.h
|
private |
Definition at line 126 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 126 of file fillSpaceChargeMaps.h
Referenced by process_event().
|
private |
Definition at line 129 of file fillSpaceChargeMaps.h.
View newest version in sPHENIX GitHub at line 129 of file fillSpaceChargeMaps.h
Referenced by InitRun().