BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnTof2Raw2DigitNew Class Reference

#include <BmnTof2Raw2DigitNew.h>

Collaboration diagram for BmnTof2Raw2DigitNew:

Public Member Functions

 BmnTof2Raw2DigitNew (TString mappingFile, TString RunFile="empty", Int_t SlewingRun=0, UInt_t SlewingChamber=0, TString geomFile="TOF700_geometry_run7.txt")
 BmnTof2Raw2DigitNew ()
virtual ~BmnTof2Raw2DigitNew ()
void print ()
void getEventInfo (long long *ev, long long *t1, long long *t2)
int get_ch_tdc32vl (unsigned int tdc, unsigned int ch)
int get_ch_tdc64vhle (unsigned int tdc, unsigned int ch)
int get_ch_tdc72vhl (unsigned int tdc, unsigned int ch)
void DNL_read ()
int get_t0 ()
void SetWcut (int wcut)
int GetWcut ()
void SetWcutc (int c, int wcut)
int GetWcutc (int c)
void SetWmax (int wm)
int GetWmax ()
void SetWmaxc (int c, int wm)
int GetWmaxc (int c)
void SetW (int wcut, int wm)
void SetWT0max (int wt0m)
int GetWT0max ()
void SetWT0min (int wt0m)
int GetWT0min ()
void SetT0shift (float shift)
int GetT0shift ()
void SetWT0 (int wt1, int wt2)
void SetLeadMin (int c, int leadmin)
int GetLeadMin (int c)
void SetLeadMax (int c, int leadmax)
int GetLeadMax (int c)
void SetLeadMinMax (int c, int leadmin, int leadmax)
void fillPreparation (TClonesArray *data, unordered_map< UInt_t, Long64_t > *ts, Double_t t0, Double_t t0width)
void fillEvent (TClonesArray *data, unordered_map< UInt_t, Long64_t > *ts, Double_t t0, Double_t t0width, TClonesArray *tof2digit)
void fillSlewingT0 (TClonesArray *data, unordered_map< UInt_t, Long64_t > *ts, Double_t t0, Double_t t0width)
void fillSlewing (TClonesArray *data, unordered_map< UInt_t, Long64_t > *ts, Double_t t0, Double_t t0width)
void fillEqualization (TClonesArray *data, unordered_map< UInt_t, Long64_t > *ts, Double_t t0, Double_t t0width)
void writeSlewingLimits ()
void readSlewingLimits ()
void readSlewing (Bool_t update=false)
void SlewingResults ()
void FitSlewing ()
void Equalization ()
void Equalization0 ()
void drawprep ()
void drawprof ()
void drawproft0 ()
int readGeom (const char *geomFile)
int readLRoffsets (char *LRoffsetsFile)
int readXYCalibration (char *xcalibration, char *ycalibration)
int readXYCalibrationNew (char *xcalibration, char *ycalibration)
int printGeom ()
int get_strip_xyz (int chamber, int strip, float *x, float *y, float *z)
int get_chamber_z (int chamber, float *z)
int get_track_hits (float *xyz, float *cxyy, int *nhits, int *chamb, int *strip)
float get_hit_diff0 (int chamber, int strip, float diff)
float get_hit_x0 (int chamber, int strip, float diff)
void get_hit_xyz0 (int chamber, int strip, float diff, float *x, float *y, float *z)
float get_hit_diff (int chamber, int strip, float diff_corrected)
float get_hit_x (int chamber, int strip, float diff_corrected)
void get_hit_xyz (int chamber, int strip, float diff_corrected, float *x, float *y, float *z)
float get_hit_xp (int chamber, int strip, float diff)
void get_hit_xyzp (int chamber, int strip, float diff, float *x, float *y, float *z)
float get_hit_xng (int chamber, int strip, float diff)
void get_hit_xyzng (int chamber, int strip, float diff, float *x, float *y, float *z)
float get_hit_xnl (int chamber, int strip, float diff)
void get_hit_xyznl (int chamber, int strip, float diff, float *x, float *y, float *z)
void ReBook (int i)
void Book ()
void BookSlewing ()
void BookSlewingResults ()
void WriteSlewingResults ()
void WritePreparationHists ()
void WritePreparationHists0 ()
Double_t * GetINL ()
void SetSlewingReference (Int_t chamber, Int_t refrun, Int_t refchamber)
void SetPreparationFileName (TString prep)

Private Member Functions

int numcrate (int id)

Private Attributes

char filname_base [256]
char filname_base_results [256]
char filname_slewing [TOF2_MAX_CHAMBERS][256]
TString fPreparationFileName
int chamber_slewing [TOF2_MAX_CHAMBERS]
int type_slewing [TOF2_MAX_CHAMBERS]
int fSlewCham
int fSlewRun
int fRUN
int fPeriod
int fSRC
int n_rec
Bmn_Tof2_map_element_new mapa [TOF2_MAX_CHANNEL]
long long EVENT
long long TIME_SEC
long long TIME_NS
float T0
float T0shift
int Wcut
int Wmax
int Wcutc [TOF2_MAX_CHAMBERS]
int Wmaxc [TOF2_MAX_CHAMBERS]
int WT0min
int WT0max
int LeadMin [TOF2_MAX_CHAMBERS]
int LeadMax [TOF2_MAX_CHAMBERS]
int LeadMinW [TOF2_MAX_CHAMBERS][500]
int LeadMaxW [TOF2_MAX_CHAMBERS][500]
int MaxPlane
int numstrip [TOF2_MAX_CHAMBERS]
int numcr [TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE]
int numcha [TOF2_MAX_CHAMBERS]
int nslots
int ncrates
int nchambers
float idchambers [TOF2_MAX_CHAMBERS]
int numslots [TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE]
int idcrates [TOF2_MAX_CRATES]
int numcrates [TOF2_MAX_CRATES]
double chtima [10][25][64]
unsigned devser [TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE] = {{0}}
int devnum [TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE] = {0}
int devcrate [TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE] = {0}
int devslot [TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE] = {0}
int nrec [TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE][TOF2_MAX_CHANNELS_IN_SLOT]
double DNL_Table [TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE][72][1024]
int dnltype [TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE]
char dnlname [TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE][128]
TH2F * poffsets
TH2F * poffsets1
TH2F * poffsets2
TProfile2D * TvsW [TOF2_MAX_CHAMBERS][4]
TProfile2D * TvsWt0 [TOF2_MAX_CHAMBERS][4]
TProfile * TvsWr [TOF2_MAX_CHAMBERS][4]
TProfile * TvsWt0r [TOF2_MAX_CHAMBERS][4]
TH2F * TvsWp [TOF2_MAX_CHAMBERS][4]
TH2F * TvsWt0p [TOF2_MAX_CHAMBERS][4]
TH2F * TvsSm [TOF2_MAX_CHAMBERS][4]
TProfile * Toffsets [4]
TProfile * Toffsetsf [4]
TProfile * Toffsets0
TProfile * pLeadMin
TProfile * pLeadMax
TProfile * pWlimits
double Toffsets00 [TOF2_MAX_CHANNEL]
double Toffsets00n [TOF2_MAX_CHANNEL]
double Toffsets00e [TOF2_MAX_CHANNEL]
TH2F * TvsS [TOF2_MAX_CHAMBERS]
TH2F * WvsS [TOF2_MAX_CHAMBERS]
TH1F * Nhit
TH1F * Lt0
TH1F * Wt0
TH1F * Wts
TH2F * Hchambrate
TH1F * H1chambrate
TH2F * Hstriprate
TH2F * TvsWall [TOF2_MAX_CHAMBERS]
TH2F * TvsWallmax [TOF2_MAX_CHAMBERS]
float halfxwidth [TOF2_MAX_CHAMBERS]
float halfywidth [TOF2_MAX_CHAMBERS]
float xoffs
float xoffs2
float yoffs
float zoffs
int nstrips [TOF2_MAX_CHAMBERS]
float zchamb [TOF2_MAX_CHAMBERS]
float xcens [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float ycens [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float xmins [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float xmaxs [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float ymins [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float ymaxs [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float lroffsets [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
int lrsign [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float fVelosity
float xslope [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float xoffset [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float yslope [TOF2_MAX_CHAMBERS]
float yoffset [TOF2_MAX_CHAMBERS]
float interxg [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float slopexg [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float interxl [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float slopexl [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
float shifty [TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
TFile * fSlewing
TFile * fSlewingr

Detailed Description

Definition at line 51 of file BmnTof2Raw2DigitNew.h.

Constructor & Destructor Documentation

◆ BmnTof2Raw2DigitNew() [1/2]

◆ BmnTof2Raw2DigitNew() [2/2]

BmnTof2Raw2DigitNew::BmnTof2Raw2DigitNew ( )

Definition at line 84 of file BmnTof2Raw2DigitNew.cxx.

References n_rec.

Referenced by BmnResultsTOF700().

Here is the caller graph for this function:

◆ ~BmnTof2Raw2DigitNew()

BmnTof2Raw2DigitNew::~BmnTof2Raw2DigitNew ( )
virtual

Definition at line 516 of file BmnTof2Raw2DigitNew.cxx.

References fSlewing, i, MaxPlane, TvsS, TvsSm, TvsW, TvsWall, TvsWallmax, TvsWp, TvsWt0, TvsWt0p, Wt0, Wts, and WvsS.

Member Function Documentation

◆ Book()

void BmnTof2Raw2DigitNew::Book ( )

Definition at line 591 of file BmnTof2Raw2DigitNew.cxx.

References H1chambrate, Hchambrate, Hstriprate, i, idchambers, Lt0, MaxPlane, Nhit, TOF2_MAX_CHANNEL, TOF2_MAX_STRIPS_IN_CHAMBER, Toffsets0, TvsS, TvsWall, TvsWallmax, Wmax, Wt0, Wts, and WvsS.

Referenced by BmnPreparationTOF700().

Here is the caller graph for this function:

◆ BookSlewing()

◆ BookSlewingResults()

void BmnTof2Raw2DigitNew::BookSlewingResults ( )

◆ DNL_read()

void BmnTof2Raw2DigitNew::DNL_read ( )

Definition at line 3411 of file BmnTof2Raw2DigitNew.cxx.

References DNL_Table, dnlname, dnltype, i, n, TOF2_MAX_CHANNELS_IN_SLOT, TOF2_MAX_CRATES, and TOF2_MAX_SLOTS_IN_CRATE.

Referenced by BmnTof2Raw2DigitNew().

Here is the caller graph for this function:

◆ drawprep()

void BmnTof2Raw2DigitNew::drawprep ( )

Definition at line 3621 of file BmnTof2Raw2DigitNew.cxx.

References TCanvas::cd(), champos, champosn, TPad::Divide(), TObject::Draw(), filname_base, i, Lt0, MaxPlane, NDX, NDY, Nhit, TAttLine::SetLineColor(), TOF2_MAX_CHAMBERS, TvsS, TvsWall, TvsWallmax, Wcut, Wmax, Wt0, WT0max, WT0min, Wts, WvsS, and y.

Referenced by BmnPreparationTOF700().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawprof()

void BmnTof2Raw2DigitNew::drawprof ( )

Definition at line 3795 of file BmnTof2Raw2DigitNew.cxx.

References TCanvas::cd(), champos, champosn, TPad::Divide(), i, MaxPlane, NDX, NDY, TOF2_MAX_CHAMBERS, and TvsW.

Referenced by BmnSlewingTOF700().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawproft0()

void BmnTof2Raw2DigitNew::drawproft0 ( )

Definition at line 3841 of file BmnTof2Raw2DigitNew.cxx.

References TCanvas::cd(), champos, champosn, TPad::Divide(), i, MaxPlane, NDX, NDY, TOF2_MAX_CHAMBERS, and TvsWt0.

Referenced by BmnSlewingTOF700().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Equalization()

void BmnTof2Raw2DigitNew::Equalization ( )

◆ Equalization0()

void BmnTof2Raw2DigitNew::Equalization0 ( )

◆ fillEqualization()

◆ fillEvent()

◆ fillPreparation()

◆ fillSlewing()

◆ fillSlewingT0()

◆ FitSlewing()

◆ get_ch_tdc32vl()

int BmnTof2Raw2DigitNew::get_ch_tdc32vl ( unsigned int tdc,
unsigned int ch )

Definition at line 4321 of file BmnTof2Raw2DigitNew.cxx.

Referenced by fillEqualization(), fillEvent(), fillPreparation(), fillSlewing(), and fillSlewingT0().

Here is the caller graph for this function:

◆ get_ch_tdc64vhle()

int BmnTof2Raw2DigitNew::get_ch_tdc64vhle ( unsigned int tdc,
unsigned int ch )

Definition at line 4328 of file BmnTof2Raw2DigitNew.cxx.

Referenced by fillEqualization(), fillEvent(), fillPreparation(), fillSlewing(), and fillSlewingT0().

Here is the caller graph for this function:

◆ get_ch_tdc72vhl()

int BmnTof2Raw2DigitNew::get_ch_tdc72vhl ( unsigned int tdc,
unsigned int ch )

Definition at line 4335 of file BmnTof2Raw2DigitNew.cxx.

◆ get_chamber_z()

int BmnTof2Raw2DigitNew::get_chamber_z ( int chamber,
float * z )

Definition at line 3977 of file BmnTof2Raw2DigitNew.cxx.

References MaxPlane, z, and zchamb.

◆ get_hit_diff()

float BmnTof2Raw2DigitNew::get_hit_diff ( int chamber,
int strip,
float diff_corrected )

Definition at line 4093 of file BmnTof2Raw2DigitNew.cxx.

References MaxPlane, and TOF2_MAX_STRIPS_IN_CHAMBER.

◆ get_hit_diff0()

float BmnTof2Raw2DigitNew::get_hit_diff0 ( int chamber,
int strip,
float diff )

Definition at line 4085 of file BmnTof2Raw2DigitNew.cxx.

References HPTIMEBIN, lroffsets, MaxPlane, and TOF2_MAX_STRIPS_IN_CHAMBER.

Referenced by fillEvent().

Here is the caller graph for this function:

◆ get_hit_x()

float BmnTof2Raw2DigitNew::get_hit_x ( int chamber,
int strip,
float diff_corrected )

Definition at line 4074 of file BmnTof2Raw2DigitNew.cxx.

References fVelosity, lrsign, MaxPlane, x, and xcens.

◆ get_hit_x0()

float BmnTof2Raw2DigitNew::get_hit_x0 ( int chamber,
int strip,
float diff )

Definition at line 4063 of file BmnTof2Raw2DigitNew.cxx.

References fVelosity, HPTIMEBIN, lroffsets, lrsign, MaxPlane, x, and xcens.

◆ get_hit_xng()

float BmnTof2Raw2DigitNew::get_hit_xng ( int chamber,
int strip,
float diff )

Definition at line 4261 of file BmnTof2Raw2DigitNew.cxx.

References fabs(), interxg, MaxPlane, slopexg, TOF2_MAX_STRIPS_IN_CHAMBER, and x.

Here is the call graph for this function:

◆ get_hit_xnl()

float BmnTof2Raw2DigitNew::get_hit_xnl ( int chamber,
int strip,
float diff )

Definition at line 4291 of file BmnTof2Raw2DigitNew.cxx.

References fabs(), interxl, MaxPlane, slopexl, TOF2_MAX_STRIPS_IN_CHAMBER, x, and xcens.

Here is the call graph for this function:

◆ get_hit_xp()

float BmnTof2Raw2DigitNew::get_hit_xp ( int chamber,
int strip,
float diff )

◆ get_hit_xyz()

void BmnTof2Raw2DigitNew::get_hit_xyz ( int chamber,
int strip,
float diff_corrected,
float * x,
float * y,
float * z )

Definition at line 4115 of file BmnTof2Raw2DigitNew.cxx.

References fVelosity, lrsign, MaxPlane, x, xcens, y, ycens, z, and zchamb.

◆ get_hit_xyz0()

void BmnTof2Raw2DigitNew::get_hit_xyz0 ( int chamber,
int strip,
float diff,
float * x,
float * y,
float * z )

Definition at line 4101 of file BmnTof2Raw2DigitNew.cxx.

References fVelosity, HPTIMEBIN, lroffsets, lrsign, MaxPlane, x, xcens, y, ycens, z, and zchamb.

Referenced by fillEqualization(), fillEvent(), and fillPreparation().

Here is the caller graph for this function:

◆ get_hit_xyzng()

void BmnTof2Raw2DigitNew::get_hit_xyzng ( int chamber,
int strip,
float diff,
float * x,
float * y,
float * z )

Definition at line 4271 of file BmnTof2Raw2DigitNew.cxx.

References fabs(), interxg, MaxPlane, shifty, slopexg, TOF2_MAX_STRIPS_IN_CHAMBER, x, y, ycens, z, and zchamb.

Here is the call graph for this function:

◆ get_hit_xyznl()

void BmnTof2Raw2DigitNew::get_hit_xyznl ( int chamber,
int strip,
float diff,
float * x,
float * y,
float * z )

Definition at line 4301 of file BmnTof2Raw2DigitNew.cxx.

References fabs(), interxl, MaxPlane, shifty, slopexl, TOF2_MAX_STRIPS_IN_CHAMBER, x, xcens, y, ycens, z, and zchamb.

Here is the call graph for this function:

◆ get_hit_xyzp()

void BmnTof2Raw2DigitNew::get_hit_xyzp ( int chamber,
int strip,
float diff,
float * x,
float * y,
float * z )

◆ get_strip_xyz()

int BmnTof2Raw2DigitNew::get_strip_xyz ( int chamber,
int strip,
float * x,
float * y,
float * z )

Definition at line 3966 of file BmnTof2Raw2DigitNew.cxx.

References MaxPlane, x, xcens, y, ycens, z, and zchamb.

◆ get_t0()

int BmnTof2Raw2DigitNew::get_t0 ( )
inline

Definition at line 72 of file BmnTof2Raw2DigitNew.h.

References T0.

◆ get_track_hits()

int BmnTof2Raw2DigitNew::get_track_hits ( float * xyz,
float * cxyy,
int * nhits,
int * chamb,
int * strip )

Definition at line 3986 of file BmnTof2Raw2DigitNew.cxx.

References MaxPlane, n, nhits, nstrips, x, xmaxs, xmins, y, ymaxs, ymins, and zchamb.

◆ getEventInfo()

void BmnTof2Raw2DigitNew::getEventInfo ( long long * ev,
long long * t1,
long long * t2 )

Definition at line 1403 of file BmnTof2Raw2DigitNew.cxx.

References EVENT, TIME_NS, and TIME_SEC.

◆ GetINL()

Double_t * BmnTof2Raw2DigitNew::GetINL ( )
inline

Definition at line 263 of file BmnTof2Raw2DigitNew.h.

References DNL_Table.

◆ GetLeadMax()

int BmnTof2Raw2DigitNew::GetLeadMax ( int c)
inline

Definition at line 193 of file BmnTof2Raw2DigitNew.h.

References LeadMax, and MaxPlane.

◆ GetLeadMin()

int BmnTof2Raw2DigitNew::GetLeadMin ( int c)
inline

Definition at line 177 of file BmnTof2Raw2DigitNew.h.

References LeadMin, and MaxPlane.

◆ GetT0shift()

int BmnTof2Raw2DigitNew::GetT0shift ( )
inline

Definition at line 157 of file BmnTof2Raw2DigitNew.h.

References T0shift.

◆ GetWcut()

int BmnTof2Raw2DigitNew::GetWcut ( )
inline

Definition at line 82 of file BmnTof2Raw2DigitNew.h.

References Wcut.

◆ GetWcutc()

int BmnTof2Raw2DigitNew::GetWcutc ( int c)
inline

Definition at line 92 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, and Wcutc.

◆ GetWmax()

int BmnTof2Raw2DigitNew::GetWmax ( )
inline

Definition at line 108 of file BmnTof2Raw2DigitNew.h.

References Wmax.

◆ GetWmaxc()

int BmnTof2Raw2DigitNew::GetWmaxc ( int c)
inline

Definition at line 118 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, and Wmaxc.

◆ GetWT0max()

int BmnTof2Raw2DigitNew::GetWT0max ( )
inline

Definition at line 144 of file BmnTof2Raw2DigitNew.h.

References WT0max.

◆ GetWT0min()

int BmnTof2Raw2DigitNew::GetWT0min ( )
inline

Definition at line 154 of file BmnTof2Raw2DigitNew.h.

References WT0min.

◆ numcrate()

int BmnTof2Raw2DigitNew::numcrate ( int id)
private

Definition at line 1442 of file BmnTof2Raw2DigitNew.cxx.

References idcrates, and ncrates.

Referenced by fillEqualization(), fillEvent(), fillPreparation(), fillSlewing(), and fillSlewingT0().

Here is the caller graph for this function:

◆ print()

void BmnTof2Raw2DigitNew::print ( )

◆ printGeom()

int BmnTof2Raw2DigitNew::printGeom ( )

Definition at line 4005 of file BmnTof2Raw2DigitNew.cxx.

References halfxwidth, halfywidth, idchambers, MaxPlane, nstrips, xcens, ycens, and zchamb.

◆ readGeom()

int BmnTof2Raw2DigitNew::readGeom ( const char * geomFile)

Definition at line 3885 of file BmnTof2Raw2DigitNew.cxx.

References TString::Data(), TString::Format(), fPeriod, halfxwidth, halfywidth, i, idchambers, MaxPlane, n, nstrips, x, xcens, xmaxs, xmins, xoffs, xoffs2, y, ycens, ymaxs, ymins, yoffs, z, zchamb, and zoffs.

Referenced by BmnTof2Raw2DigitNew().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readLRoffsets()

int BmnTof2Raw2DigitNew::readLRoffsets ( char * LRoffsetsFile)

Definition at line 4019 of file BmnTof2Raw2DigitNew.cxx.

References TString::Data(), TString::Format(), idchambers, lroffsets, lrsign, MaxPlane, n, and TOF2_MAX_STRIPS_IN_CHAMBER.

Referenced by BmnTof2Raw2DigitNew().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readSlewing()

void BmnTof2Raw2DigitNew::readSlewing ( Bool_t update = false)

Definition at line 1270 of file BmnTof2Raw2DigitNew.cxx.

References chamber_slewing, filname_base, fRUN, fSlewCham, fSlewing, fSlewRun, TH1::GetBinContent(), TProfile::GetBinContent(), idchambers, LeadMax, LeadMin, MaxPlane, pLeadMax, pLeadMin, PRINT_TIME_LIMITS, Toffsets, Toffsets0, Toffsetsf, TvsSm, TvsW, TvsWt0, Wcut, Wmax, WT0max, and WT0min.

Here is the call graph for this function:

◆ readSlewingLimits()

◆ readXYCalibration()

int BmnTof2Raw2DigitNew::readXYCalibration ( char * xcalibration,
char * ycalibration )

Definition at line 4129 of file BmnTof2Raw2DigitNew.cxx.

References TString::Data(), TString::Format(), MaxPlane, n, TOF2_MAX_STRIPS_IN_CHAMBER, xoffset, xslope, yoffset, and yslope.

Referenced by BmnTof2Raw2DigitNew().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readXYCalibrationNew()

int BmnTof2Raw2DigitNew::readXYCalibrationNew ( char * xcalibration,
char * ycalibration )

Definition at line 4194 of file BmnTof2Raw2DigitNew.cxx.

References TString::Data(), interxg, interxl, shifty, slopexg, and slopexl.

Referenced by BmnTof2Raw2DigitNew().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReBook()

void BmnTof2Raw2DigitNew::ReBook ( int i)

Definition at line 854 of file BmnTof2Raw2DigitNew.cxx.

References i, idchambers, LeadMax, LeadMin, TOF2_MAX_STRIPS_IN_CHAMBER, TvsSm, TvsW, TvsWall, TvsWallmax, TvsWt0, Wmax, Wmaxc, WT0max, and WT0min.

Referenced by SetLeadMax(), SetLeadMin(), SetLeadMinMax(), SetW(), SetWcut(), SetWcutc(), SetWmax(), SetWmaxc(), SetWT0(), SetWT0max(), and SetWT0min().

Here is the caller graph for this function:

◆ SetLeadMax()

void BmnTof2Raw2DigitNew::SetLeadMax ( int c,
int leadmax )
inline

Definition at line 185 of file BmnTof2Raw2DigitNew.h.

References LeadMax, MaxPlane, and ReBook().

Here is the call graph for this function:

◆ SetLeadMin()

void BmnTof2Raw2DigitNew::SetLeadMin ( int c,
int leadmin )
inline

Definition at line 169 of file BmnTof2Raw2DigitNew.h.

References LeadMin, MaxPlane, and ReBook().

Here is the call graph for this function:

◆ SetLeadMinMax()

void BmnTof2Raw2DigitNew::SetLeadMinMax ( int c,
int leadmin,
int leadmax )
inline

Definition at line 201 of file BmnTof2Raw2DigitNew.h.

References LeadMax, LeadMin, MaxPlane, and ReBook().

Referenced by readSlewingLimits().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetPreparationFileName()

void BmnTof2Raw2DigitNew::SetPreparationFileName ( TString prep)
inline

Definition at line 267 of file BmnTof2Raw2DigitNew.h.

References fPreparationFileName.

◆ SetSlewingReference()

void BmnTof2Raw2DigitNew::SetSlewingReference ( Int_t chamber,
Int_t refrun,
Int_t refchamber )

◆ SetT0shift()

void BmnTof2Raw2DigitNew::SetT0shift ( float shift)
inline

Definition at line 156 of file BmnTof2Raw2DigitNew.h.

References T0shift.

Referenced by BmnPreparationTOF700(), and BmnSlewingTOF700().

Here is the caller graph for this function:

◆ SetW()

void BmnTof2Raw2DigitNew::SetW ( int wcut,
int wm )
inline

Definition at line 126 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, ReBook(), Wcut, and Wmax.

Referenced by BmnSlewingTOF700().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetWcut()

void BmnTof2Raw2DigitNew::SetWcut ( int wcut)
inline

Definition at line 74 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, ReBook(), and Wcut.

Here is the call graph for this function:

◆ SetWcutc()

void BmnTof2Raw2DigitNew::SetWcutc ( int c,
int wcut )
inline

Definition at line 83 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, ReBook(), and Wcutc.

Here is the call graph for this function:

◆ SetWmax()

void BmnTof2Raw2DigitNew::SetWmax ( int wm)
inline

Definition at line 100 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, ReBook(), and Wmax.

Here is the call graph for this function:

◆ SetWmaxc()

void BmnTof2Raw2DigitNew::SetWmaxc ( int c,
int wm )
inline

Definition at line 109 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, ReBook(), and Wmaxc.

Here is the call graph for this function:

◆ SetWT0()

void BmnTof2Raw2DigitNew::SetWT0 ( int wt1,
int wt2 )
inline

Definition at line 159 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, ReBook(), WT0max, and WT0min.

Referenced by BmnSlewingTOF700().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetWT0max()

void BmnTof2Raw2DigitNew::SetWT0max ( int wt0m)
inline

Definition at line 136 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, ReBook(), and WT0max.

Here is the call graph for this function:

◆ SetWT0min()

void BmnTof2Raw2DigitNew::SetWT0min ( int wt0m)
inline

Definition at line 146 of file BmnTof2Raw2DigitNew.h.

References MaxPlane, ReBook(), and WT0min.

Here is the call graph for this function:

◆ SlewingResults()

void BmnTof2Raw2DigitNew::SlewingResults ( )

Definition at line 3586 of file BmnTof2Raw2DigitNew.cxx.

References TH1::Fit(), TProfile::GetBinContent(), TProfile::GetBinEntries(), TH1::GetFunction(), TH1::GetNbinsX(), i, TF1::kNotDraw, MaxPlane, TObject::ResetBit(), TProfile::SetBinEntries(), TvsWr, and TvsWt0r.

Here is the call graph for this function:

◆ WritePreparationHists()

void BmnTof2Raw2DigitNew::WritePreparationHists ( )

Definition at line 938 of file BmnTof2Raw2DigitNew.cxx.

References f, filname_base, H1chambrate, Hchambrate, Hstriprate, i, Lt0, MaxPlane, Nhit, Toffsets0, TvsS, TvsWall, TvsWallmax, Wt0, Wts, and WvsS.

Referenced by BmnPreparationTOF700().

Here is the caller graph for this function:

◆ WritePreparationHists0()

void BmnTof2Raw2DigitNew::WritePreparationHists0 ( )

Definition at line 975 of file BmnTof2Raw2DigitNew.cxx.

References f, filname_base, H1chambrate, Hchambrate, Hstriprate, i, Lt0, MaxPlane, Nhit, Toffsets0, TvsS, TvsWall, TvsWallmax, Wt0, Wts, and WvsS.

Referenced by writeSlewingLimits().

Here is the caller graph for this function:

◆ writeSlewingLimits()

void BmnTof2Raw2DigitNew::writeSlewingLimits ( )

Definition at line 1058 of file BmnTof2Raw2DigitNew.cxx.

References filname_base, TH1::GetBinCenter(), i, LIMITS_ROOT_FILE, MAX_STRIP, MaxPlane, PRINT_TIME_LIMITS, TvsS, TvsWallmax, WritePreparationHists0(), and y.

Here is the call graph for this function:

◆ WriteSlewingResults()

void BmnTof2Raw2DigitNew::WriteSlewingResults ( )

Member Data Documentation

◆ chamber_slewing

int BmnTof2Raw2DigitNew::chamber_slewing[TOF2_MAX_CHAMBERS]
private

Definition at line 274 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), readSlewing(), and SetSlewingReference().

◆ chtima

double BmnTof2Raw2DigitNew::chtima[10][25][64]
private

◆ devcrate

int BmnTof2Raw2DigitNew::devcrate[TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE] = {0}
private

◆ devnum

int BmnTof2Raw2DigitNew::devnum[TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE] = {0}
private

◆ devser

unsigned BmnTof2Raw2DigitNew::devser[TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE] = {{0}}
private

Definition at line 305 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and print().

◆ devslot

int BmnTof2Raw2DigitNew::devslot[TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE] = {0}
private

◆ DNL_Table

double BmnTof2Raw2DigitNew::DNL_Table[TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE][72][1024]
private

◆ dnlname

char BmnTof2Raw2DigitNew::dnlname[TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE][128]
private

Definition at line 315 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), DNL_read(), and print().

◆ dnltype

int BmnTof2Raw2DigitNew::dnltype[TOF2_MAX_CRATES][TOF2_MAX_SLOTS_IN_CRATE]
private

Definition at line 314 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), DNL_read(), and print().

◆ EVENT

long long BmnTof2Raw2DigitNew::EVENT
private

Definition at line 283 of file BmnTof2Raw2DigitNew.h.

Referenced by getEventInfo().

◆ filname_base

◆ filname_base_results

char BmnTof2Raw2DigitNew::filname_base_results[256]
private

Definition at line 271 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and WriteSlewingResults().

◆ filname_slewing

char BmnTof2Raw2DigitNew::filname_slewing[TOF2_MAX_CHAMBERS][256]
private

Definition at line 272 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and SetSlewingReference().

◆ fPeriod

int BmnTof2Raw2DigitNew::fPeriod
private

◆ fPreparationFileName

TString BmnTof2Raw2DigitNew::fPreparationFileName
private

◆ fRUN

int BmnTof2Raw2DigitNew::fRUN
private

Definition at line 278 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and readSlewing().

◆ fSlewCham

int BmnTof2Raw2DigitNew::fSlewCham
private

Definition at line 276 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and readSlewing().

◆ fSlewing

TFile* BmnTof2Raw2DigitNew::fSlewing
private

◆ fSlewingr

TFile* BmnTof2Raw2DigitNew::fSlewingr
private

Definition at line 376 of file BmnTof2Raw2DigitNew.h.

◆ fSlewRun

int BmnTof2Raw2DigitNew::fSlewRun
private

Definition at line 277 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), readSlewing(), and WriteSlewingResults().

◆ fSRC

int BmnTof2Raw2DigitNew::fSRC
private

◆ fVelosity

float BmnTof2Raw2DigitNew::fVelosity
private

◆ H1chambrate

◆ halfxwidth

float BmnTof2Raw2DigitNew::halfxwidth[TOF2_MAX_CHAMBERS]
private

Definition at line 348 of file BmnTof2Raw2DigitNew.h.

Referenced by printGeom(), and readGeom().

◆ halfywidth

float BmnTof2Raw2DigitNew::halfywidth[TOF2_MAX_CHAMBERS]
private

Definition at line 349 of file BmnTof2Raw2DigitNew.h.

Referenced by printGeom(), and readGeom().

◆ Hchambrate

◆ Hstriprate

◆ idchambers

◆ idcrates

int BmnTof2Raw2DigitNew::idcrates[TOF2_MAX_CRATES]
private

◆ interxg

float BmnTof2Raw2DigitNew::interxg[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

◆ interxl

float BmnTof2Raw2DigitNew::interxl[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

◆ LeadMax

◆ LeadMaxW

int BmnTof2Raw2DigitNew::LeadMaxW[TOF2_MAX_CHAMBERS][500]
private

◆ LeadMin

◆ LeadMinW

int BmnTof2Raw2DigitNew::LeadMinW[TOF2_MAX_CHAMBERS][500]
private

◆ lroffsets

◆ lrsign

int BmnTof2Raw2DigitNew::lrsign[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

◆ Lt0

◆ mapa

◆ MaxPlane

◆ n_rec

◆ nchambers

int BmnTof2Raw2DigitNew::nchambers
private

Definition at line 299 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and print().

◆ ncrates

int BmnTof2Raw2DigitNew::ncrates
private

Definition at line 299 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), numcrate(), and print().

◆ Nhit

TH1F* BmnTof2Raw2DigitNew::Nhit
private

◆ nrec

◆ nslots

int BmnTof2Raw2DigitNew::nslots
private

◆ nstrips

int BmnTof2Raw2DigitNew::nstrips[TOF2_MAX_CHAMBERS]
private

Definition at line 351 of file BmnTof2Raw2DigitNew.h.

Referenced by get_track_hits(), printGeom(), and readGeom().

◆ numcha

int BmnTof2Raw2DigitNew::numcha[TOF2_MAX_CHAMBERS]
private

Definition at line 298 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and print().

◆ numcr

int BmnTof2Raw2DigitNew::numcr[TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE]
private

Definition at line 298 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and print().

◆ numcrates

int BmnTof2Raw2DigitNew::numcrates[TOF2_MAX_CRATES]
private

Definition at line 302 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and print().

◆ numslots

int BmnTof2Raw2DigitNew::numslots[TOF2_MAX_CRATES *TOF2_MAX_SLOTS_IN_CRATE]
private

Definition at line 301 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and print().

◆ numstrip

int BmnTof2Raw2DigitNew::numstrip[TOF2_MAX_CHAMBERS]
private

Definition at line 297 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), fillSlewing(), and fillSlewingT0().

◆ pLeadMax

TProfile* BmnTof2Raw2DigitNew::pLeadMax
private

Definition at line 329 of file BmnTof2Raw2DigitNew.h.

Referenced by BookSlewing(), and readSlewing().

◆ pLeadMin

TProfile* BmnTof2Raw2DigitNew::pLeadMin
private

Definition at line 328 of file BmnTof2Raw2DigitNew.h.

Referenced by BookSlewing(), and readSlewing().

◆ poffsets

TH2F* BmnTof2Raw2DigitNew::poffsets
private

Definition at line 317 of file BmnTof2Raw2DigitNew.h.

◆ poffsets1

TH2F * BmnTof2Raw2DigitNew::poffsets1
private

Definition at line 317 of file BmnTof2Raw2DigitNew.h.

◆ poffsets2

TH2F * BmnTof2Raw2DigitNew::poffsets2
private

Definition at line 317 of file BmnTof2Raw2DigitNew.h.

◆ pWlimits

TProfile* BmnTof2Raw2DigitNew::pWlimits
private

Definition at line 330 of file BmnTof2Raw2DigitNew.h.

Referenced by BookSlewing(), BookSlewingResults(), and WriteSlewingResults().

◆ shifty

float BmnTof2Raw2DigitNew::shifty[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

◆ slopexg

float BmnTof2Raw2DigitNew::slopexg[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

◆ slopexl

float BmnTof2Raw2DigitNew::slopexl[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

◆ T0

float BmnTof2Raw2DigitNew::T0
private

Definition at line 284 of file BmnTof2Raw2DigitNew.h.

Referenced by get_t0().

◆ T0shift

float BmnTof2Raw2DigitNew::T0shift
private

◆ TIME_NS

long long BmnTof2Raw2DigitNew::TIME_NS
private

Definition at line 283 of file BmnTof2Raw2DigitNew.h.

Referenced by getEventInfo().

◆ TIME_SEC

long long BmnTof2Raw2DigitNew::TIME_SEC
private

Definition at line 283 of file BmnTof2Raw2DigitNew.h.

Referenced by getEventInfo().

◆ Toffsets

TProfile* BmnTof2Raw2DigitNew::Toffsets[4]
private

Definition at line 325 of file BmnTof2Raw2DigitNew.h.

Referenced by BookSlewing(), fillEqualization(), fillEvent(), and readSlewing().

◆ Toffsets0

◆ Toffsets00

double BmnTof2Raw2DigitNew::Toffsets00[TOF2_MAX_CHANNEL]
private

Definition at line 331 of file BmnTof2Raw2DigitNew.h.

Referenced by BookSlewing(), and readSlewingLimits().

◆ Toffsets00e

double BmnTof2Raw2DigitNew::Toffsets00e[TOF2_MAX_CHANNEL]
private

Definition at line 333 of file BmnTof2Raw2DigitNew.h.

Referenced by BookSlewing(), and readSlewingLimits().

◆ Toffsets00n

double BmnTof2Raw2DigitNew::Toffsets00n[TOF2_MAX_CHANNEL]
private

Definition at line 332 of file BmnTof2Raw2DigitNew.h.

Referenced by BookSlewing(), and readSlewingLimits().

◆ Toffsetsf

TProfile* BmnTof2Raw2DigitNew::Toffsetsf[4]
private

Definition at line 326 of file BmnTof2Raw2DigitNew.h.

Referenced by BookSlewing(), Equalization(), fillEvent(), and readSlewing().

◆ TvsS

◆ TvsSm

TH2F* BmnTof2Raw2DigitNew::TvsSm[TOF2_MAX_CHAMBERS][4]
private

◆ TvsW

◆ TvsWall

◆ TvsWallmax

◆ TvsWp

TH2F* BmnTof2Raw2DigitNew::TvsWp[TOF2_MAX_CHAMBERS][4]
private

Definition at line 322 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and ~BmnTof2Raw2DigitNew().

◆ TvsWr

TProfile* BmnTof2Raw2DigitNew::TvsWr[TOF2_MAX_CHAMBERS][4]
private

◆ TvsWt0

◆ TvsWt0p

TH2F* BmnTof2Raw2DigitNew::TvsWt0p[TOF2_MAX_CHAMBERS][4]
private

Definition at line 323 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and ~BmnTof2Raw2DigitNew().

◆ TvsWt0r

TProfile* BmnTof2Raw2DigitNew::TvsWt0r[TOF2_MAX_CHAMBERS][4]
private

◆ type_slewing

int BmnTof2Raw2DigitNew::type_slewing[TOF2_MAX_CHAMBERS]
private

Definition at line 275 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), and SetSlewingReference().

◆ Wcut

◆ Wcutc

int BmnTof2Raw2DigitNew::Wcutc[TOF2_MAX_CHAMBERS]
private

◆ Wmax

◆ Wmaxc

int BmnTof2Raw2DigitNew::Wmaxc[TOF2_MAX_CHAMBERS]
private

◆ Wt0

◆ WT0max

int BmnTof2Raw2DigitNew::WT0max
private

◆ WT0min

int BmnTof2Raw2DigitNew::WT0min
private

◆ Wts

◆ WvsS

◆ xcens

◆ xmaxs

float BmnTof2Raw2DigitNew::xmaxs[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

Definition at line 356 of file BmnTof2Raw2DigitNew.h.

Referenced by get_track_hits(), and readGeom().

◆ xmins

float BmnTof2Raw2DigitNew::xmins[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

Definition at line 355 of file BmnTof2Raw2DigitNew.h.

Referenced by get_track_hits(), and readGeom().

◆ xoffs

float BmnTof2Raw2DigitNew::xoffs
private

Definition at line 350 of file BmnTof2Raw2DigitNew.h.

Referenced by readGeom().

◆ xoffs2

float BmnTof2Raw2DigitNew::xoffs2
private

Definition at line 350 of file BmnTof2Raw2DigitNew.h.

Referenced by readGeom().

◆ xoffset

float BmnTof2Raw2DigitNew::xoffset[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

◆ xslope

float BmnTof2Raw2DigitNew::xslope[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

◆ ycens

◆ ymaxs

float BmnTof2Raw2DigitNew::ymaxs[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

Definition at line 358 of file BmnTof2Raw2DigitNew.h.

Referenced by get_track_hits(), and readGeom().

◆ ymins

float BmnTof2Raw2DigitNew::ymins[TOF2_MAX_CHAMBERS][TOF2_MAX_STRIPS_IN_CHAMBER]
private

Definition at line 357 of file BmnTof2Raw2DigitNew.h.

Referenced by get_track_hits(), and readGeom().

◆ yoffs

float BmnTof2Raw2DigitNew::yoffs
private

Definition at line 350 of file BmnTof2Raw2DigitNew.h.

Referenced by readGeom().

◆ yoffset

float BmnTof2Raw2DigitNew::yoffset[TOF2_MAX_CHAMBERS]
private

Definition at line 367 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), get_hit_xyzp(), and readXYCalibration().

◆ yslope

float BmnTof2Raw2DigitNew::yslope[TOF2_MAX_CHAMBERS]
private

Definition at line 366 of file BmnTof2Raw2DigitNew.h.

Referenced by BmnTof2Raw2DigitNew(), get_hit_xyzp(), and readXYCalibration().

◆ zchamb

◆ zoffs

float BmnTof2Raw2DigitNew::zoffs
private

Definition at line 350 of file BmnTof2Raw2DigitNew.h.

Referenced by readGeom().


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