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

#include <analysis/blob/master/MvtxTelescope/AnaMvtxPrototype1/AnaMvtxPrototype1.h>

+ Inheritance diagram for AnaMvtxPrototype1:
+ Collaboration diagram for AnaMvtxPrototype1:

Public Member Functions

 AnaMvtxPrototype1 (const std::string &name="AnaMvtxPrototype1", const std::string &ofName="out.root")
 
int Init (PHCompositeNode *)
 
int InitRun (PHCompositeNode *)
 
int process_event (PHCompositeNode *)
 
int End (PHCompositeNode *)
 Called at the end of all processing.
 
void MisalignLayer (int lyr, double dx, double dy, double dz)
 
- 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

int GetNodes (PHCompositeNode *)
 
double CalcSlope (double x0, double y0, double x1, double y1)
 Get all nodes.
 
double CalcIntecept (double x0, double y0, double m)
 
double CalcProjection (double x, double m, double b)
 
void Misalign ()
 
void PrintMisalign ()
 

Private Attributes

TrkrClusterContainerclusters_
 
std::string _foutname
 
TFile * _f
 
TH1D * hlayer
 
TH1D * hsize [4]
 
TH1D * hsize_phi [4]
 
TH1D * hsize_z [4]
 
TH2D * hxz [4]
 
TH1D * hdx [4]
 
TH1D * hdz [4]
 
TH1D * htrk
 
TH1D * htrk_dx [4]
 
TH1D * htrk_dz [4]
 
TH1D * htrk_chi2xy
 
TH1D * htrk_chi2zy
 
TH1D * htrk_cut
 
TH1D * htrk_cut_dx [4]
 
TH1D * htrk_cut_dz [4]
 
TH1D * htrk_cut_chi2xy
 
TH1D * htrk_cut_chi2zy
 
int _ievent
 
std::map< int, mis_misalign
 
MvtxStandaloneTrackingmvtxtracking_
 map for misaligning clusters
 

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 43 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 43 of file AnaMvtxPrototype1.h

Constructor & Destructor Documentation

AnaMvtxPrototype1::AnaMvtxPrototype1 ( const std::string &  name = "AnaMvtxPrototype1",
const std::string &  ofName = "out.root" 
)

Definition at line 47 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 47 of file AnaMvtxPrototype1.C

References hdx, hdz, hlayer, hsize, hsize_phi, hsize_z, hxz, mvtxtracking_, MvtxStandaloneTracking::SetWindowX(), MvtxStandaloneTracking::SetWindowZ(), and MvtxStandaloneTracking::Verbosity().

+ Here is the call graph for this function:

Member Function Documentation

double AnaMvtxPrototype1::CalcIntecept ( double  x0,
double  y0,
double  m 
)
private

Definition at line 632 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 632 of file AnaMvtxPrototype1.C

References Acts::UnitConstants::m.

Referenced by process_event().

+ Here is the caller graph for this function:

double AnaMvtxPrototype1::CalcProjection ( double  x,
double  m,
double  b 
)
private

Definition at line 641 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 641 of file AnaMvtxPrototype1.C

References KFPMath::b.

Referenced by process_event().

+ Here is the caller graph for this function:

double AnaMvtxPrototype1::CalcSlope ( double  x0,
double  y0,
double  x1,
double  y1 
)
private

Get all nodes.

Definition at line 623 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 623 of file AnaMvtxPrototype1.C

References x0.

Referenced by process_event().

+ Here is the caller graph for this function:

int AnaMvtxPrototype1::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 589 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 589 of file AnaMvtxPrototype1.C

References _f, and PrintMisalign().

+ Here is the call graph for this function:

int AnaMvtxPrototype1::GetNodes ( PHCompositeNode topNode)
private

Definition at line 603 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 603 of file AnaMvtxPrototype1.C

References _ievent, Fun4AllReturnCodes::ABORTEVENT, clusters_, Fun4AllReturnCodes::EVENT_OK, and PHWHERE.

Referenced by process_event().

+ Here is the caller graph for this function:

int AnaMvtxPrototype1::Init ( PHCompositeNode )
virtual

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 73 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 73 of file AnaMvtxPrototype1.C

References _f, _foutname, hdx, hdz, hlayer, hsize, hsize_phi, hsize_z, htrk, htrk_chi2xy, htrk_chi2zy, htrk_cut, htrk_cut_chi2xy, htrk_cut_chi2zy, htrk_cut_dx, htrk_cut_dz, htrk_dx, htrk_dz, and hxz.

int AnaMvtxPrototype1::InitRun ( PHCompositeNode )
virtual

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 151 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 151 of file AnaMvtxPrototype1.C

References _ievent.

void AnaMvtxPrototype1::Misalign ( )
private

Definition at line 664 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 664 of file AnaMvtxPrototype1.C

References _misalign, and clusters_.

void AnaMvtxPrototype1::MisalignLayer ( int  lyr,
double  dx,
double  dy,
double  dz 
)

Misalign chip in x, y, z (pixel index)

Definition at line 650 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 650 of file AnaMvtxPrototype1.C

References _misalign, mis::dx, dy, mis::dy, mis::dz, and dz.

void AnaMvtxPrototype1::PrintMisalign ( )
private

Definition at line 744 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 744 of file AnaMvtxPrototype1.C

References _misalign, dz, and PHWHERE.

Referenced by End().

+ Here is the caller graph for this function:

int AnaMvtxPrototype1::process_event ( PHCompositeNode )
virtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 162 of file AnaMvtxPrototype1.C.

View newest version in sPHENIX GitHub at line 162 of file AnaMvtxPrototype1.C

References _ievent, _misalign, CalcIntecept(), CalcProjection(), CalcSlope(), clusters_, dy, dz, Fun4AllReturnCodes::EVENT_OK, GetNodes(), hdx, hdz, hlayer, hsize, hsize_phi, hsize_z, htrk, htrk_chi2xy, htrk_chi2zy, htrk_cut, htrk_cut_chi2xy, htrk_cut_chi2zy, htrk_cut_dx, htrk_cut_dz, htrk_dx, htrk_dz, hxz, i, j, mvtxtracking_, PHWHERE, MvtxStandaloneTracking::RunTracking(), TrkrClusterContainer::size(), verbosity, Fun4AllBase::VERBOSITY_MORE, ambiguity_solver_full_chain::x, x0, y, and physmon_track_finding_ttbar::z.

+ Here is the call graph for this function:

Member Data Documentation

TFile* AnaMvtxPrototype1::_f
private

Definition at line 81 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 81 of file AnaMvtxPrototype1.h

Referenced by End(), and Init().

std::string AnaMvtxPrototype1::_foutname
private

Definition at line 80 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 80 of file AnaMvtxPrototype1.h

Referenced by Init().

int AnaMvtxPrototype1::_ievent
private

Definition at line 105 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 105 of file AnaMvtxPrototype1.h

Referenced by GetNodes(), InitRun(), and process_event().

std::map<int, mis> AnaMvtxPrototype1::_misalign
private

Definition at line 106 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 106 of file AnaMvtxPrototype1.h

Referenced by Misalign(), MisalignLayer(), PrintMisalign(), and process_event().

TrkrClusterContainer* AnaMvtxPrototype1::clusters_
private

Definition at line 74 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 74 of file AnaMvtxPrototype1.h

Referenced by GetNodes(), Misalign(), and process_event().

TH1D* AnaMvtxPrototype1::hdx[4]
private

Definition at line 88 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 88 of file AnaMvtxPrototype1.h

Referenced by AnaMvtxPrototype1(), Init(), and process_event().

TH1D* AnaMvtxPrototype1::hdz[4]
private

Definition at line 89 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 89 of file AnaMvtxPrototype1.h

Referenced by AnaMvtxPrototype1(), Init(), and process_event().

TH1D* AnaMvtxPrototype1::hlayer
private

Definition at line 83 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 83 of file AnaMvtxPrototype1.h

Referenced by AnaMvtxPrototype1(), Init(), and process_event().

TH1D* AnaMvtxPrototype1::hsize[4]
private

Definition at line 84 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 84 of file AnaMvtxPrototype1.h

Referenced by AnaMvtxPrototype1(), Init(), and process_event().

TH1D* AnaMvtxPrototype1::hsize_phi[4]
private

Definition at line 85 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 85 of file AnaMvtxPrototype1.h

Referenced by AnaMvtxPrototype1(), Init(), and process_event().

TH1D* AnaMvtxPrototype1::hsize_z[4]
private

Definition at line 86 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 86 of file AnaMvtxPrototype1.h

Referenced by AnaMvtxPrototype1(), Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk
private

Definition at line 91 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 91 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_chi2xy
private

Definition at line 94 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 94 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_chi2zy
private

Definition at line 95 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 95 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_cut
private

Definition at line 97 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 97 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_cut_chi2xy
private

Definition at line 100 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 100 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_cut_chi2zy
private

Definition at line 101 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 101 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_cut_dx[4]
private

Definition at line 98 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 98 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_cut_dz[4]
private

Definition at line 99 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 99 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_dx[4]
private

Definition at line 92 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 92 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH1D* AnaMvtxPrototype1::htrk_dz[4]
private

Definition at line 93 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 93 of file AnaMvtxPrototype1.h

Referenced by Init(), and process_event().

TH2D* AnaMvtxPrototype1::hxz[4]
private

Definition at line 87 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 87 of file AnaMvtxPrototype1.h

Referenced by AnaMvtxPrototype1(), Init(), and process_event().

MvtxStandaloneTracking* AnaMvtxPrototype1::mvtxtracking_
private

map for misaligning clusters

Definition at line 107 of file AnaMvtxPrototype1.h.

View newest version in sPHENIX GitHub at line 107 of file AnaMvtxPrototype1.h

Referenced by AnaMvtxPrototype1(), and process_event().


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