-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into v2.2-rc1
- Loading branch information
Showing
112 changed files
with
4,113 additions
and
15,873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,9 @@ log | |
.cproject | ||
.project | ||
|
||
#ignore build type file | ||
.buildtype | ||
|
||
#ignore dot files | ||
*.dot | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Run using (for example): | ||
// build/reroot -l -q 'analysis/hyperon/hyperon_pion_rates.C("hyperon_lambda_2M.root")' | ||
|
||
void hyperon_pion_rates(const TString& files) | ||
{ | ||
TChain* T = new TChain("T"); | ||
T->Add(files); | ||
|
||
std::vector<remollEventParticle_t>* parts = 0; | ||
std::vector<remollGenericDetectorHit_t>* hits = 0; | ||
|
||
T->SetBranchAddress("hit", &hits); | ||
T->SetBranchAddress("part", &parts); | ||
|
||
TH1F h_hit_r("h_hit_r","Pion hit radius at the main detector plane",20,0,2000); | ||
|
||
// Loop over events | ||
for (size_t iev = 0; iev < T->GetEntries(); iev++) { | ||
T->GetEntry(iev); | ||
|
||
// Store hits on main detector | ||
for (size_t ihit = 0; ihit < hits->size(); ihit++) { | ||
remollGenericDetectorHit_t hit = hits->at(ihit); | ||
if (hit.det == 28 && hit.pid == -211) { | ||
h_hit_r.Fill(hit.r); | ||
} | ||
} | ||
for (size_t ipart = 0; ipart < parts->size(); ipart++) { | ||
remollEventParticle_t part = parts->at(ipart); | ||
} | ||
} | ||
|
||
TCanvas c; | ||
h_hit_r.Draw(); | ||
c.SaveAs("images/hyperon_pion_rates_hit_r.png"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
a.out | ||
hyperon-gen | ||
hyperon_decay | ||
lambda_decay | ||
|
||
hyperon_outp.dat | ||
hyperon_particle_decays.dat | ||
*.dat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.