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
//////////////////////////////////////////////////////////////////////// | |
/// \class RAT::DS::DataCleaningFlags | |
/// | |
/// \brief This class contains the data cleaning flags for an event | |
/// | |
/// \author R Bonventre <rbonv@hep.upenn.edu>\n | |
/// Phil G Jones <p.g.jones@qmul.ac.uk> | |
/// | |
/// 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
/// 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
#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
/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
//////////////////////////////////////////////////////// | |
/// 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
// To run this open ROOT and do | |
// .L PlotCAEN.cc+ | |
// PlotCAEN( "output_filename.root", 10 ); | |
// where the number is the event id you'd like to view the waveforms of | |
#include <RAT/DU/DSReader.hh> | |
#include <RAT/DS/Entry.hh> | |
#include <RAT/DS/Digitiser.hh> | |
#include <TCanvas.h> | |
#include <TGraph.h> |
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
// | |
// ******************************************************************** | |
// * License and Disclaimer * | |
// * * | |
// * The Geant4 software is copyright of the Copyright Holders of * | |
// * the Geant4 Collaboration. It is provided under the terms and * | |
// * conditions of the Geant4 Software License, included in the file * | |
// * LICENSE and available at http://cern.ch/geant4/license . These * | |
// * include a list of copyright holders. * | |
// * * |
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 Value(object): | |
def __init__(self, a, b, c): | |
self.a = a | |
self.b = b | |
self.c = c | |
array = [] | |
for index in range(0, 360): | |
value = Value(10 * index, 20, 30) |
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
import logging | |
import requests | |
log = logging.getLogger(__name__) | |
# Currency without decimal places according to Neteller | |
NETELLER_NOT_DECIMAL = ['HUF', 'JPY'] | |
OlderNewer