This file contains hidden or 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
//////////////////////////////////////////////////////// | |
/// My preferred method to load a root file in root. | |
/// Must load in root as .L Load.cc+ | |
/// | |
/// 11/10/2012 : New File | |
//////////////////////////////////////////////////////// | |
#include <RAT/DS/Root.hh> | |
#include <RAT/DS/EV.hh> | |
#include <RAT/DS/Run.hh> |
This file contains hidden or 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
/rat/db/set GEO[scint] material "what scintillator did you use?" | |
/run/initialize | |
# BEGIN EVENT LOOP | |
/rat/proc classifier | |
/rat/procset classifier "nearAVAngular" | |
/rat/proc fitter | |
/rat/procset method "nearAVAngular" |
This file contains hidden or 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
#include <RAT/DS/Root.hh> | |
#include <RAT/DS/MC.hh> | |
#include <RAT/DS/MCParticle.hh> | |
#include <TFile.h> | |
#include <TTree.h> | |
#include <fstream> | |
using namespace std; |
This file contains hidden or 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
/// Get the uncalibrated PMTs | |
/// | |
/// @return the set of uncalibrated pmts | |
PMTSet<PMTUnCal>& GetUncalibratedPMTs() { return uncalibratedPMTs;} | |
const PMTSet<PMTUnCal>& GetUncalibratedPMTs() const { return uncalibratedPMTs;} | |
/// Get the calibrated PMTs | |
/// | |
/// @return the set of calibrated pmts | |
PMTSet<PMTCal>& GetCalibratedPMTs() { return calibratedPMTs;} |
This file contains hidden or 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
//////////////////////////////////////////////////////////////////////// | |
/// \class RAT::DS::DataCleaningFlags | |
/// | |
/// \brief This class contains the data cleaning flags for an event | |
/// | |
/// \author R Bonventre <[email protected]>\n | |
/// Phil G Jones <[email protected]> | |
/// | |
/// REVISION HISTORY:\n | |
/// 2013-10-16: P G Jones - New ds refactor. \n |
This file contains hidden or 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
//open the root file with the DSReader | |
RAT::DSReader reader("nhits.root"); | |
RAT::DS::Root* rds = reader.NextEvent(); | |
while(rds != NULL) | |
{ | |
rds = reader.NextEvent(); | |
} |
This file contains hidden or 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
#include <RAT/DB.hh> | |
#include <RAT/Log.hh> | |
#include <iostream> | |
using namespace std; | |
void RatDB() | |
{ | |
RAT::Log::Init("/dev/null"); |
This file contains hidden or 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
/PhysicsList/OmitMuonicProcesses true | |
/rat/db/set GEO[scint] material "te_0p3_labppo_scintillator_Oct2012" | |
/rat/db/set OPTICS[te_0p3_labppo_scintillator_Oct2012] SCINTWAVEFORMalpha_value1 [ -4.6d, -18d, -156d,] | |
/rat/db/set OPTICS[te_0p3_labppo_scintillator_Oct2012] SCINTWAVEFORMalpha_value2 [ 0.71d, 0.22d, 0.07d,] | |
/run/initialize | |
##########EVENT LOOP############ |
This file contains hidden or 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
#include <RAT/DB.hh> | |
#include <RAT/Log.hh> | |
#include <iostream> | |
using namespace std; | |
void RatDB() | |
{ | |
RAT::Log::Init("/dev/null"); |
This file contains hidden or 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
//////////////////////////////////////////////////////// | |
/// My preferred method to load a root file in root. | |
/// Must load in root as .L Load.cc+ | |
/// | |
/// 11/10/2012 : New File | |
//////////////////////////////////////////////////////// | |
#include <RAT/DS/Root.hh> | |
#include <RAT/DS/EV.hh> | |
#include <RAT/DS/Run.hh> |