Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
316d0a7
generate trees for ML
Feb 11, 2020
c7bf30e
Adds targets for building StarGenerator interface code. Uses installe…
Feb 14, 2020
fdcb8fc
Simple interface for Rastering the Si hits
Feb 27, 2020
bb24609
Improve Efficiency Plots, Study vertex projections
Mar 3, 2020
71623d4
Add more tree branches
Mar 10, 2020
06e02eb
manual merge lots of conflicts
Mar 10, 2020
628fdf4
Allow config file to be set in macro, make sure SiRefit is done with …
Mar 29, 2020
b76bbb0
Update for 3D efficiency. Testing with SiRefit using Mc Track Finding
Apr 1, 2020
1f2f21d
Merge branch 'ml_ttree'
Apr 7, 2020
833b911
fix last merge, missing class member
Apr 7, 2020
7217ec9
fix mltree error from merge
Apr 7, 2020
82dfce7
Add Criteria output to the ML tree
Apr 28, 2020
ea6dfc8
clang format and McFilter + TrackFit Duration
Apr 28, 2020
d18e5e4
Updates to track duration of fit step and McFilter to find failing fits
Apr 28, 2020
a47fd98
Clang Format. Mc track Seed for fitting. Lots of debug on GenFit to u…
May 5, 2020
61706b1
FwdGeomUtils to lookup Si/stgc z locations. Used in TrackFitter. Than…
May 5, 2020
a9e8c8a
Histos for SiRefit and ECal proj
May 19, 2020
31cc6e7
More granular info in FitStatus about # of Si Disks with matched hits
Jun 18, 2020
6879e14
pull in and update StFtsFastSimulatorMaker from /star/u/tchuang/FTS_S…
Jun 18, 2020
d004549
further cleanup to handle multiple sources for sTGC and Fst hit point…
Jul 9, 2020
c7d25b3
remove subclassed track fitting, use default with covmat
Jul 13, 2020
634a120
Add XmlConfig as a class member so that it can be used throughout Stg…
Jul 14, 2020
9e7d229
Fix covmat size mismatch for planar measuerements. Remove old unused …
Jul 17, 2020
2ff1994
Fix url on SiRasterize active lookup - prevented running on GEANT hit…
Jul 20, 2020
99ee818
starting to work on phi slicing
Jul 20, 2020
6eeadbf
Added McEvent info to StgMaker for filtering on Mc Mult for HIJING st…
Jul 30, 2020
f4da9f8
Update to include phi slicing for high multiplicity events
Jul 30, 2020
4d96297
Moved to separate StSiSimulatorMaker instead of StFstFastSimulatorMaker
Jul 30, 2020
f938d33
Shift the sTGC z location by about 0.4 cm to fix mismatch when loaded…
Jul 31, 2020
4c339b3
Fix long time incorrect labels in QualityPlotter for pT res
Jul 31, 2020
caa2a81
Add Mc info to Fsi hits loaded from StEvent to allow more QA
Jul 31, 2020
c54f072
Add WIP Si slow sim
Jul 31, 2020
296bb4b
Include FTT Fast simulator
Aug 10, 2020
bb00bb4
Rename StgMaker --> StFwdTrackMaker
Aug 11, 2020
62d4224
Rename FST FastSim --> StFstSimMaker/StFstFasSimMaker
Aug 11, 2020
c2fc2ef
rename stgc fast sim --> StFttSimMaker/StFttFastSimMaker
Aug 11, 2020
187601b
Use TRandome3 instead of StarRandom
Aug 11, 2020
337d2ba
protect stgc hits (StEvent) against nullptr McTrack
Aug 11, 2020
9ddb3b0
Fix layer on sTGC hits in StRndHitCollection
Aug 11, 2020
629cb68
Fix sector assignment on sTGC hits in StEvent
Aug 11, 2020
6c49f30
histograms for better understanding HIJING events
Sep 2, 2020
9df5e1f
Merge remote-tracking branch 'upstream/master'
Sep 2, 2020
59d055c
Remove now unused StgMaker directory
Sep 2, 2020
93c1fd2
Remove Fst Study since it is unused
Sep 2, 2020
c7ec59e
Use Attributes as per klendathu2k for controlling logfile, config, an…
Sep 2, 2020
038a710
Add full path for STAR includes (StEvent, StChain, etc.)
Sep 2, 2020
e4ad473
Find fitted state on GenFit track, add TheTruth for McTruth info
Sep 2, 2020
df4a8fd
import klendathu2k's changes for filling StEvent
Sep 2, 2020
0de5add
fix typo in comments
Sep 2, 2020
b39309a
Move Genfit inlude into cxx with forward dec
Sep 2, 2020
b9d0a47
remove the StFtsFastSimulatorMaker and StSiSlowSimMaker that showed u…
Sep 2, 2020
fe5f7fa
Mover StarFieldAdaptor to STARField.h
Sep 3, 2020
c4d4766
clean up STARField unused adapter
Sep 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
StRoot/StFstFitter/
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ star_add_library(pams/ctf St_ctf)
star_add_library(pams/sim/g2t St_g2t)
star_add_library(pams/sim/gstar)

# directory is balcklisted because it is mostly external generators
star_add_library(StRoot/StarGenerator/UTIL "StarGeneratorUtil" )
star_add_library(StRoot/StarGenerator/EVENT "StarGeneratorEvent")
star_add_library(StRoot/StarGenerator/BASE "StarGeneratorBase")

GET_SUBDIRS(star_lib_dirs "StarVMC;StRoot")
if(EXISTS ${PROJECT_SOURCE_DIR}/StRoot)
GET_SUBDIRS(star_lib_dirs "StarVMC;StRoot;${PROJECT_SOURCE_DIR}/StRoot")
Expand Down
3 changes: 3 additions & 0 deletions StRoot/StFstSimMaker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CVS/
crossLine.h
.consign
960 changes: 960 additions & 0 deletions StRoot/StFstSimMaker/StFstFastSimMaker.cxx

Large diffs are not rendered by default.

140 changes: 140 additions & 0 deletions StRoot/StFstSimMaker/StFstFastSimMaker.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
#ifndef ST_FST_FAST_SIM_MAKER_H
#define ST_FST_FAST_SIM_MAKER_H

class g2t_emc_hit_st;
class StFtsHit;
class StEvent;
class StRnDHitCollection;

#include "StChain/StMaker.h"
#include <vector>

#include "TH1F.h"
#include "TH2F.h"
#include "TH3F.h"

class StRnDHit;

class StFstFastSimMaker : public StMaker {
public:
explicit StFstFastSimMaker(const Char_t *name = "fstFastSim");
virtual ~StFstFastSimMaker() {}
Int_t Make();
int Init();
int Finish();
virtual const char *GetCVS() const;
/// Define segmentation
void setPixels(int numR = 8, int numSec = 12, int numPhi = 128) {
mNumR = numR;
mNumSEC = numSec;
mNumPHI = numPhi;
}
/// Set offset for each disk ( x=R*cos(idisk*60 degrees), y=R*sin(...) )
void setRaster(float R = 1.0) { mRaster = R; }
/// Set min/max active radii for each disk
void setDisk(const int i, const float rmn, const float rmx);
/// Set even spacing in eta (defaults to even in r)
void setConstEta() { mConstEta = true; }
void setInEfficiency(float ineff = 0.1) { mInEff = ineff; }
void setQAFileName(TString filename = 0.1) { mQAFileName = filename; }

/// Enable / disable specified disk (disks counted from 1)
void setActive(const int disk, const bool flag = true) { mEnable[disk - 1] = flag; }
/// Point making in each pad (strip,wire)-->(x,y)
void setPointHits() { mPointHits = true; }

void setStripWidth(const float width = 0.3) { mStripWidth = width; }
void setWireSpacing(const float space = 0.15) { mWireSpacing = space; }
void setWindow(const float window = 3.0) { mWindow = window; }

void setStereo(const float stereo = 2 * TMath::Pi() / 8 / 6) { mStereo = stereo; }

void setStagger(const float stagger = 3.0) { mStagger = 3.0; }

void setAmbiguity(const bool a = true) { mAmbiguity = a; }

private:
Int_t getDetectorId(const g2t_emc_hit_st &hit) const;

void fillSilicon(StEvent *event);
void fillThinGapChambers(StEvent *event);

StRnDHitCollection *hitCollection = nullptr;

bool mEnable[12];

int mNumR;
int mNumPHI;
int mNumSEC;

float mRaster;

float mInEff;
TString mQAFileName;

TH3F *hTrutHitYXDisk;
TH2F *hTrutHitRDisk;
TH2F *hTrutHitRShower[3];
TH2F *hTrutHitPhiDisk;
TH2F *hTrutHitPhiZ;
TH3F *hRecoHitYXDisk;
TH2F *hRecoHitRDisk;
TH2F *hRecoHitPhiDisk;
TH2F *hRecoHitPhiZ;
TH2F *hGlobalDRDisk;
TH1F *hGlobalZ;

TH2F *hOctantYX;

TH2F *hOctantWireYX;
TH2F *hOctantStripYX;

TH2F *hWireDeltasX;
TH2F *hWireDeltasY;
TH2F *hStripDeltasX;
TH2F *hStripDeltasY;

TH2F *hWirePullsX;
TH2F *hWirePullsY;
TH2F *hStripPullsX;
TH2F *hStripPullsY;

TH2F *hPointsPullsX;
TH2F *hPointsPullsY;

bool mPointHits;
bool mAmbiguity;

TH2F *h2LocalXY;
TH2F *h2LocalSmearedXY;
TH2F *h2LocalDeltaXY;
TH3F *h3LocalDeltaXYDisk;
TH3F *h3LocalDeltaXYR;
TH2F *h2GlobalXY;
TH2F *h2GlobalSmearedXY;
TH3F *h3GlobalXYDisk;
TH3F *h3GlobalXYR;
TH3F *h3GlobalSmearedXYDisk;
TH3F *h3GlobalSmearedXYR;
TH2F *h2GlobalDeltaXY;
TH3F *h3GlobalDeltaXYDisk;
TH3F *h3GlobalDeltaXYR;
TFile *fOut;

float mStripWidth;
float mWireSpacing;
float mWindow; // for filtering combinatorics
float mStereo;
float mStagger;

bool mConstEta;

ClassDef(StFstFastSimMaker, 0)
};

inline const char *StFstFastSimMaker::GetCVS() const {
static const char cvs[] = "Tag $Name: $ $Id: StFstFastSimMaker.h,v 1.1 2018/11/06 18:56:05 jdb Exp $ built " __DATE__ " " __TIME__;
return cvs;
}

#endif
Loading