ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/kiesel/TreeWriter/treeWriter.cc
(Generate patch)

Comparing UserCode/kiesel/TreeWriter/treeWriter.cc (file contents):
Revision 1.29 by kiesel, Mon Apr 29 13:50:54 2013 UTC vs.
Revision 1.32 by kiesel, Tue May 7 19:41:48 2013 UTC

# Line 259 | Line 259 | void TreeWriter::Loop() {
259          tree->Branch("type1metPhi", &type1met_phi, "type1metPhi/F");
260          tree->Branch("ht", &ht, "ht/F");
261          tree->Branch("nVertex", &nVertex, "nVertex/I");
262 <        tree->Branch("pu_weight", &pu_weight, "pu_weight/F");
262 >        tree->Branch("weight", &weight, "weight/D");
263          tree->Branch("genElectron", &genElectron);
264          tree->Branch("genPhoton", &genPhoton);
265  
266 <        for (unsigned long jentry=0; jentry < processNEvents; ++jentry) {
266 >        for (long jentry=0; jentry < processNEvents; ++jentry) {
267                  if ( loggingVerbosity>1 || jentry%reportEvery==0 )
268                          std::cout << jentry << " / " << processNEvents << std :: endl;
269                  inputTree->LoadTree( jentry );
# Line 279 | Line 279 | void TreeWriter::Loop() {
279  
280                  // weights
281                  if (pileupHisto == 0) {
282 <                        pu_weight = 1.;
282 >                        weight = 1.;
283                  } else {
284                          float trueNumInteractions = -1;
285                          for( susy::PUSummaryInfoCollection::const_iterator iBX = event->pu.begin();
# Line 287 | Line 287 | void TreeWriter::Loop() {
287                                  if (iBX->BX == 0)
288                                          trueNumInteractions = iBX->trueNumInteractions;
289                          }
290 <                        pu_weight = pileupHisto->GetBinContent( pileupHisto->FindBin( trueNumInteractions ) );
290 >                        weight = pileupHisto->GetBinContent( pileupHisto->FindBin( trueNumInteractions ) );
291                  }
292  
293                  // get ak5 jets
# Line 330 | Line 330 | void TreeWriter::Loop() {
330                          thisphoton.hadTowOverEm = it->hadTowOverEm;
331                          thisphoton.pixelseed = it->nPixelSeeds;
332                          thisphoton.conversionSafeVeto = it->passelectronveto;
333 +                        thisphoton.genInformation = 0;
334                          photon.push_back( thisphoton );
335                          if( loggingVerbosity > 2 )
336                                  std::cout << " p_T, gamma = " << thisphoton.pt << std::endl;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines