forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code runs smoothly except for Snapshot
- Loading branch information
Showing
31 changed files
with
481 additions
and
451 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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
__init__.py | ||
*.png | ||
*.root | ||
*.pyc | ||
.*.swp | ||
.#* | ||
|
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,20 @@ | ||
import ROOT | ||
|
||
class parser: | ||
|
||
def __init__(self, file): | ||
|
||
self.file = file | ||
|
||
self.f = open(self.file) | ||
|
||
def parse(self): | ||
|
||
list = [x.strip() for x in self.f.readlines()] | ||
branchList = ROOT.vector('string')() | ||
|
||
for l in list: | ||
branchList.push_back(l) | ||
|
||
return branchList | ||
|
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,26 @@ | ||
# Built-in/Generic Imports | ||
import os | ||
import sys | ||
import time | ||
import ROOT | ||
from foo import * | ||
|
||
# Begin code for casting | ||
|
||
# this injection can be replaced by properly having this in a header | ||
# included in the interpreter at framework startup | ||
ROOT.gInterpreter.Declare(''' | ||
template <typename T> | ||
class NodeCaster { | ||
public: | ||
static ROOT::RDF::RNode Cast(T rdf) | ||
{ | ||
return ROOT::RDF::RNode(rdf); | ||
} | ||
}; | ||
''') | ||
|
||
def CastToRNode(node): | ||
return ROOT.NodeCaster(node.__cppname__).Cast(node) | ||
|
||
# end code for casting |
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,13 @@ | ||
class parser: | ||
|
||
def __init__(self, file): | ||
|
||
self.file = file | ||
|
||
self.f = open(self.file) | ||
|
||
def parse(self): | ||
|
||
print [x.strip() for x in self.f.readlines()] | ||
return [x.strip() for x in self.f.readlines()] | ||
|
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.