-
Notifications
You must be signed in to change notification settings - Fork 54
Code Examples
VinzenzBildstein edited this page Jun 4, 2018
·
1 revision
HOME > RUNNING GRSISORT > ANALYSIS > [CODE EXAMPLES](Code Examples)
Below are some code examples (some in pseudo-code):
bool suppressionFlags[<number of SCEPTAR>][<number of GRIFFIN>] = {...};
for each event:
for-loop over GRIFFIN events {
auto grif1 = fGrif->GetGriffinHit(index);
grif1->SetIsBremSuppressed(false);
for-loop over SCEPTAR events {
auto scep = fScep->GetSceptarHit(index2);
if(sceptar energy below threshold) continue;
if(sceptar and griffin are in coincidence) {
grif1->MakeBremSuppressed(suppressionFlags[scep->GetDetector()][grif1->GetArrayNumber()]);
}
}
if(grif1->GetIsBremSuppressed()) continue;
Fill Bremsstrahlungs suppressed histograms;
}
Home | Setup Guide | Running GRSISort | Technical Docs | Commands | Issue Tracker | Team
Useful resources