Skip to content

Commit

Permalink
Macros need to compile in ROOT6
Browse files Browse the repository at this point in the history
  • Loading branch information
wmtan committed Apr 13, 2015
1 parent e2555d8 commit f93745b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion RecoParticleFlow/PFClusterTools/test/src/init.C
@@ -1,8 +1,8 @@
{
/*
* A Root macro to initialise testing of the functionality of the PFClusterTools package
*
*/
{
gSystem->Load("libRecoParticleFlowPFClusterTools.so");
std::cout << "Loaded libraries." << std::endl;
using namespace std;
Expand Down
16 changes: 8 additions & 8 deletions RecoParticleFlow/PFClusterTools/test/src/testConversion.C
Expand Up @@ -7,22 +7,22 @@
using namespace pftools;

TFile* testConversion = new TFile("TestConversion.root", "recreate");
testConversion.mkdir("extraction");
testConversion.cd("extraction");
testConversion->mkdir("extraction");
testConversion->cd("extraction");
TTree* tree = new TTree("Extraction", "");
Calibratable* c = new Calibratable();
tree->Branch("Calibratable", "pftools::Calibratable", &c, 32000, 2);

std::cout << "Initialised objects etc.\n";
TRandom2 rand;
TRandom2 rand2;
for (unsigned u(0); u < 1000; ++u) {
double eta, phi, energy, ecalFrac, gaussSamp;

eta = rand.Uniform(0, 1.5);
phi = rand.Uniform(0, 3.14);
energy = rand.Uniform(2, 20);
ecalFrac = rand.Uniform(0, 1.0);
gaussSamp = rand.Gaus(1, 0.3);
eta = rand2.Uniform(0, 1.5);
phi = rand2.Uniform(0, 3.14);
energy = rand2.Uniform(2, 20);
ecalFrac = rand2.Uniform(0, 1.0);
gaussSamp = rand2.Gaus(1, 0.3);
//gaussSamp = 1.0;

c->reset();
Expand Down
2 changes: 1 addition & 1 deletion RecoParticleFlow/PFClusterTools/test/src/testWrappers.C
@@ -1,8 +1,8 @@
{
/*
* A Root macro to initialise testing of the functionality of the PFClusterTools package
*
*/
{
gSystem->Load("libRecoParticleFlowPFClusterTools.so");

TFile f("TestWrappers.root", "recreate");
Expand Down
10 changes: 5 additions & 5 deletions RecoTracker/TrackProducer/test/analyze_tracks.C
Expand Up @@ -7,11 +7,11 @@ TTree * tree = (TTree *) gROOT->FindObject("Events");
TFile outFile("graphsParTest2.root","recreate");
float intervals[] = {0,0.5,1.0,1.5,2.0,2.5};
int bins = 5;
char * ptinterval = "4.99<P_{T}<5.01";
char * etainterval = "|#eta|<2.5";
char * rs = "recoTracks_rsWithMaterialTracks__RsWithMaterial";
char * ctf = "recoTracks_ctfWithMaterialTracks__FinalFits";
char * sim = "SimTracks_SimG4Object__Test";
const char * ptinterval = "4.99<P_{T}<5.01";
const char * etainterval = "|#eta|<2.5";
const char * rs = "recoTracks_rsWithMaterialTracks__RsWithMaterial";
const char * ctf = "recoTracks_ctfWithMaterialTracks__FinalFits";
const char * sim = "SimTracks_SimG4Object__Test";
////////////////////////////////////////
vector<float> tot;
vector<float> ptrmsRS;
Expand Down

0 comments on commit f93745b

Please sign in to comment.