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

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

+ Inheritance diagram for readDigitalCurrents:
+ Collaboration diagram for readDigitalCurrents:

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

Fun4AllHistoManagerhm = 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")
 

Detailed Description

Definition at line 26 of file readDigitalCurrents.h.

View newest version in sPHENIX GitHub at line 26 of file readDigitalCurrents.h

Constructor & Destructor Documentation

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

readDigitalCurrents::~readDigitalCurrents ( )
virtual

Definition at line 103 of file readDigitalCurrents.cc.

View newest version in sPHENIX GitHub at line 103 of file readDigitalCurrents.cc

References hm.

Member Function Documentation

int readDigitalCurrents::End ( PHCompositeNode topNode)
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.

+ Here is the call graph for this function:

int readDigitalCurrents::EndRun ( const int  runnumber)
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.

int readDigitalCurrents::Init ( PHCompositeNode topNode)
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.

+ Here is the call graph for this function:

int readDigitalCurrents::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 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().

+ Here is the call graph for this function:

void readDigitalCurrents::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan 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

int readDigitalCurrents::Reset ( PHCompositeNode topNode)
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.

int readDigitalCurrents::ResetEvent ( PHCompositeNode topNode)
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().

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

Member Data Documentation

float readDigitalCurrents::_ampIBFfrac = 0.02
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().

std::vector<int> readDigitalCurrents::_beamxing
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().

int readDigitalCurrents::_collSyst = 0
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().

float readDigitalCurrents::_event_bunchXing = 0
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().

float readDigitalCurrents::_event_timestamp = 0
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().

int readDigitalCurrents::_evtstart = 0
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().

int readDigitalCurrents::_f_ccgc = 0
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().

std::string readDigitalCurrents::_filename
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().

int readDigitalCurrents::_fillCSVFile = 0
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().

TH2* readDigitalCurrents::_h_DC_E = nullptr
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().

TH3* readDigitalCurrents::_h_DC_SC = nullptr
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().

TH2* readDigitalCurrents::_h_DC_SC_XY = nullptr
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().

TH2* readDigitalCurrents::_h_hit_XY = nullptr
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().

TH1* readDigitalCurrents::_h_hits = nullptr
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().

TH2* readDigitalCurrents::_h_modules_measuredibf = nullptr
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().

TH1* readDigitalCurrents::_h_R = nullptr
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().

TH3* readDigitalCurrents::_h_SC_ibf[nFrames] = {nullptr}
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().

std::vector<int> readDigitalCurrents::_keys
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().

std::map<int,int> readDigitalCurrents::_timestamps
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().

double readDigitalCurrents::adc_pedestal =0.
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().

double readDigitalCurrents::cm =1e1
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().

float readDigitalCurrents::f =0.5
private

Definition at line 118 of file readDigitalCurrents.h.

View newest version in sPHENIX GitHub at line 118 of file readDigitalCurrents.h

Fun4AllHistoManager* readDigitalCurrents::hm = nullptr
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().

float readDigitalCurrents::ionMobility =1.65*cm*cm/V/s
private

Definition at line 115 of file readDigitalCurrents.h.

View newest version in sPHENIX GitHub at line 115 of file readDigitalCurrents.h

double readDigitalCurrents::m =1e3
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().

double readDigitalCurrents::mm =1
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().

float readDigitalCurrents::ms =1e-3
private

Definition at line 112 of file readDigitalCurrents.h.

View newest version in sPHENIX GitHub at line 112 of file readDigitalCurrents.h

std::ofstream readDigitalCurrents::myCSVFile
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().

const int readDigitalCurrents::nFrames = 30
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().

float readDigitalCurrents::ns =1e-9
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().

float readDigitalCurrents::s =1
private

Definition at line 112 of file readDigitalCurrents.h.

View newest version in sPHENIX GitHub at line 112 of file readDigitalCurrents.h

float readDigitalCurrents::us =1e-6
private

Definition at line 112 of file readDigitalCurrents.h.

View newest version in sPHENIX GitHub at line 112 of file readDigitalCurrents.h

float readDigitalCurrents::V =1
private

Definition at line 113 of file readDigitalCurrents.h.

View newest version in sPHENIX GitHub at line 113 of file readDigitalCurrents.h

float readDigitalCurrents::vIon =ionMobility*400*V/cm
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().


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