Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:15:37

0001 #ifndef __SVTXSIMPERFORMANCECHECKRECO_H__
0002 #define __SVTXSIMPERFORMANCECHECKRECO_H__
0003 
0004 #include <fun4all/SubsysReco.h>
0005 #include <string>
0006 #include <TH1D.h>
0007 #include <TH2D.h>
0008 
0009 class PHCompositeNode;
0010 
0011 class SvtxSimPerformanceCheckReco: public SubsysReco {
0012 
0013 public: 
0014 
0015   SvtxSimPerformanceCheckReco(const std::string &name="SvtxSimPerformanceCheckReco");
0016 
0017   int Init(PHCompositeNode *topNode);
0018   int process_event(PHCompositeNode *topNode);
0019   int End(PHCompositeNode *topNode);
0020 
0021   void set_nlayers(unsigned int nlayers) {_nlayers = nlayers;}
0022   void set_inner_layer_mask(unsigned int mask) {_inner_layer_mask = mask;}
0023 
0024 private:
0025 
0026   // event counter
0027   unsigned long long _event;
0028 
0029   // number of layers
0030   unsigned int _nlayers;
0031 
0032   unsigned int _inner_layer_mask;
0033 
0034   // output histograms ---------------------------------------------------------
0035   
0036   TH2D* _truept_dptoverpt;                    // momentum resolution
0037 
0038   TH2D* _truept_dca;                          // dca resolution
0039   
0040   TH1D* _truept_particles_leaving7Hits;       // pattern reco eff baseline
0041   
0042   TH1D* _truept_particles_recoWithExactHits;  // pattern reco eff by nhits
0043   TH1D* _truept_particles_recoWithin1Hit;
0044   TH1D* _truept_particles_recoWithin2Hits;
0045 
0046   TH1D* _truept_particles_recoWithExactInnerHits;  // pattern reco eff by nhits
0047   TH1D* _truept_particles_recoWithin1InnerHit;
0048   TH1D* _truept_particles_recoWithin2InnerHits;
0049 
0050   TH1D* _truept_particles_recoWithin3Percent; // parttern reco eff by momentum match
0051   TH1D* _truept_particles_recoWithin4Percent;
0052   TH1D* _truept_particles_recoWithin5Percent;
0053 
0054   TH1D* _recopt_tracks_all;                   // purity baseline (non-embedded particles)
0055   
0056   TH1D* _recopt_tracks_recoWithExactHits;     // purity by nhit match
0057   TH1D* _recopt_tracks_recoWithin1Hit;
0058   TH1D* _recopt_tracks_recoWithin2Hits;
0059 
0060   TH1D* _recopt_tracks_recoWithExactInnerHits;
0061   TH1D* _recopt_tracks_recoWithin1InnerHit;
0062   TH1D* _recopt_tracks_recoWithin2InnerHits;
0063 
0064   TH1D* _recopt_tracks_recoWithin3Percent;    // purity by momentum match
0065   TH1D* _recopt_tracks_recoWithin4Percent;
0066   TH1D* _recopt_tracks_recoWithin5Percent;
0067 
0068   TH2D* _recopt_quality;                     // quality distributions
0069   
0070   TH1D* _dx_vertex;                          // vertex resolution
0071   TH1D* _dy_vertex;
0072   TH1D* _dz_vertex;
0073 
0074   TH2D* _truept_quality_particles_recoWithin4Percent;
0075 
0076   TH2D* _recopt_quality_tracks_all;
0077   TH2D* _recopt_quality_tracks_recoWithin4Percent;
0078 };
0079 
0080 #endif // __SVTXSIMPERFORMANCECHECKRECO_H__