42 : treeFileName_(iConfig.getParameter<
std::
string>(
"InputFileName")),
43 outputFileName_(iConfig.getParameter<
std::
string>(
"OutputFileName")),
44 maxEvents_(iConfig.getParameter<int32_t>(
"MaxEvents")),
45 subSampleFirstEvent_(iConfig.getParameter<uint32_t>(
"SubSampleFirstEvent")),
46 subSampleMaxEvents_(iConfig.getParameter<uint32_t>(
"SubSampleMaxEvents")) {}
54 typedef std::vector<std::pair<lorentzVector, lorentzVector> >
MuonPairVector;
56 std::vector<MuonPair> savedPair;
61 std::vector<MuonPair> newSavedPair;
65 std::vector<MuonPair>::iterator it = savedPair.begin();
66 std::cout <<
"Starting loop on " << savedPair.size() <<
" muons" << std::endl;
68 for (; it != savedPair.end(); ++it, ++
i) {
71 newSavedPair.push_back(*it);
uint32_t subSampleFirstEvent_
TreeSplitter(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void readTree(const int maxEvents, const TString &fileName, MuonPairVector *savedPair, const int muonType, std::vector< std::pair< unsigned int, unsigned long long > > *evtRun, MuonPairVector *genPair=nullptr)
void writeTree(const TString &fileName, const std::vector< MuonPair > *savedPair, const int muonType=0, const std::vector< GenMuonPair > *genPair=nullptr, const bool saveAll=false)
void analyze(const edm::Event &, const edm::EventSetup &) override
uint32_t subSampleMaxEvents_
std::vector< std::pair< lorentzVector, lorentzVector > > MuonPairVector