ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/src/FillMitTree.cc
(Generate patch)

Comparing UserCode/MitProd/TreeFiller/src/FillMitTree.cc (file contents):
Revision 1.3 by loizides, Thu Jun 19 16:53:43 2008 UTC vs.
Revision 1.60 by mzanetti, Tue Mar 1 14:44:22 2011 UTC

# Line 2 | Line 2
2  
3   #include "MitProd/TreeFiller/interface/FillMitTree.h"
4   #include "FWCore/MessageLogger/interface/MessageLogger.h"
5 + #include "FWCore/ParameterSet/interface/ParameterSet.h"
6   #include "FWCore/ServiceRegistry/interface/Service.h"
7 < #include "MitProd/TreeService/interface/TreeService.h"
7 > #include "MitProd/ObjectService/interface/ObjectService.h"
8 > #include "MitProd/TreeFiller/interface/AssociationMaps.h"
9 > #include "MitProd/TreeFiller/interface/FillerBasicClusters.h"
10 > #include "MitProd/TreeFiller/interface/FillerBeamSpot.h"
11 > #include "MitProd/TreeFiller/interface/FillerCaloJets.h"
12 > #include "MitProd/TreeFiller/interface/FillerCaloMet.h"
13 > #include "MitProd/TreeFiller/interface/FillerCaloTaus.h"
14 > #include "MitProd/TreeFiller/interface/FillerCaloTowers.h"
15 > #include "MitProd/TreeFiller/interface/FillerConversions.h"
16 > #include "MitProd/TreeFiller/interface/FillerConversionsDecay.h"
17 > #include "MitProd/TreeFiller/interface/FillerDecayParts.h"
18 > #include "MitProd/TreeFiller/interface/FillerElectrons.h"
19 > #include "MitProd/TreeFiller/interface/FillerEvtSelData.h"
20 > #include "MitProd/TreeFiller/interface/FillerGenJets.h"
21 > #include "MitProd/TreeFiller/interface/FillerGenMet.h"
22 > #include "MitProd/TreeFiller/interface/FillerJPTJets.h"
23 > #include "MitProd/TreeFiller/interface/FillerMCEventInfo.h"
24 > #include "MitProd/TreeFiller/interface/FillerMCParticles.h"
25 > #include "MitProd/TreeFiller/interface/FillerMCVertexes.h"
26 > #include "MitProd/TreeFiller/interface/FillerMet.h"
27   #include "MitProd/TreeFiller/interface/FillerMetaInfos.h"
28 < #include "MitProd/TreeFiller/interface/FillerGlobalMuons.h"
28 > #include "MitProd/TreeFiller/interface/FillerMetaInfos.h"
29 > #include "MitProd/TreeFiller/interface/FillerMuons.h"
30 > #include "MitProd/TreeFiller/interface/FillerPFCandidates.h"
31 > #include "MitProd/TreeFiller/interface/FillerPFJets.h"
32 > #include "MitProd/TreeFiller/interface/FillerPFMet.h"
33 > #include "MitProd/TreeFiller/interface/FillerPFTaus.h"
34 > #include "MitProd/TreeFiller/interface/FillerPhotons.h"
35 > #include "MitProd/TreeFiller/interface/FillerPileupInfo.h"
36 > #include "MitProd/TreeFiller/interface/FillerPileupEnergyDensity.h"
37 > #include "MitProd/TreeFiller/interface/FillerPixelHits.h"
38 > #include "MitProd/TreeFiller/interface/FillerStableParts.h"
39 > #include "MitProd/TreeFiller/interface/FillerStripHits.h"
40 > #include "MitProd/TreeFiller/interface/FillerSuperClusters.h"
41 > #include "MitProd/TreeFiller/interface/FillerTracks.h"
42 > #include "MitProd/TreeFiller/interface/FillerTrackJets.h"
43 > #include "MitProd/TreeFiller/interface/FillerVertexes.h"
44 > #include "MitAna/DataTree/interface/Names.h"
45 > #include "MitAna/DataTree/interface/BranchTable.h"
46 > #include "MitCommon/OptIO/interface/OptInt.h"
47  
48   using namespace std;
49   using namespace edm;
50   using namespace mithep;
51  
52 < //-------------------------------------------------------------------------------------------------
53 < FillMitTree::FillMitTree(const edm::ParameterSet &cfg)
52 > mithep::ObjectService *mithep::FillMitTree::os_ = 0;
53 >
54 > //--------------------------------------------------------------------------------------------------
55 > FillMitTree::FillMitTree(const edm::ParameterSet &cfg) :
56 >  defactive_(cfg.getUntrackedParameter<bool>("defactive",1)),
57 >  brtable_(0),
58 >  acfnumber_(-1),
59 >  tws_(new TreeWriter(Names::gkEvtTreeName,0))
60   {
61 <  // Constructor: initialize fillers
61 >  // Constructor.
62  
63    if (!configure(cfg)) {
64      throw edm::Exception(edm::errors::Configuration, "FillMitTree::FillMitTree()\n")
# Line 22 | Line 66 | FillMitTree::FillMitTree(const edm::Para
66    }
67   }
68  
69 < //-------------------------------------------------------------------------------------------------
69 > //--------------------------------------------------------------------------------------------------
70   FillMitTree::~FillMitTree()
71   {
72 <  // Destructor: nothing to be done here.
72 >  // Destructor.
73 >
74 >  delete brtable_;
75 >  delete tws_;
76 > }
77 >
78 > //--------------------------------------------------------------------------------------------------
79 > bool FillMitTree::addActiveFiller(BaseFiller *bf)
80 > {
81 >  // Check if filler is active and add it to list of fillers. Otherwise delete it.
82 >
83 >  if (!bf)
84 >    return 0;
85 >
86 >  if (bf->Active()) {
87 >    fillers_.push_back(bf);
88 >    return 1;
89 >  }
90 >
91 >  delete bf;
92 >  bf = 0;
93 >  return 0;
94   }
95  
96 < //-------------------------------------------------------------------------------------------------
96 > //--------------------------------------------------------------------------------------------------
97 > void FillMitTree::beginRun(edm::Run const &run, edm::EventSetup const &setup)
98 > {
99 >  // Access and copy event content.
100 >
101 >  // first step: Loop over the data fillers of the various components
102 >  for (std::vector<BaseFiller*>::const_iterator iF = fillers_.begin(); iF != fillers_.end(); ++iF) {
103 >    (*iF)->FillRunBlock(run,setup);
104 >  }
105 >  
106 > }
107 >
108 > //--------------------------------------------------------------------------------------------------
109   void FillMitTree::analyze(const edm::Event      &event,
110                            const edm::EventSetup &setup)
111   {
112    // Access and copy event content.
113 +  
114 +  //tree writer begin event actions
115 +  tws_->BeginEvent(kTRUE);
116  
117 <  // First step: Loop over the data fillers of the various components
117 >  // first step: Loop over the data fillers of the various components
118    for (std::vector<BaseFiller*>::const_iterator iF = fillers_.begin(); iF != fillers_.end(); ++iF) {
119      (*iF)->FillDataBlock(event,setup);
120    }
121  
122 <  // Second step: Loop over the link resolution of the various components
122 >  // second step: Loop over the link resolution of the various components
123    for (std::vector<BaseFiller*>::const_iterator iF = fillers_.begin(); iF != fillers_.end(); ++iF) {
124      (*iF)->ResolveLinks(event,setup);
125    }
126 +
127 +  if (brtable_) { // only the first FillMitTree object has to deal with the branch table
128 +    if (acfnumber_==-1) {
129 +      brtable_->Rehash(brtable_->GetSize());
130 +      if (0)
131 +        brtable_->Print();
132 +    }
133 +    if (acfnumber_ != tws_->GetFileNumber()) {
134 +      tws_->StoreObject(brtable_);
135 +      acfnumber_ = tws_->GetFileNumber();
136 +    }
137 +  }
138 +
139 +  //tree writer end of event actions
140 +  tws_->EndEvent(kTRUE);
141   }
142  
143 < //-------------------------------------------------------------------------------------------------
144 < void FillMitTree::beginJob(const edm::EventSetup &event)
143 > //--------------------------------------------------------------------------------------------------
144 > void FillMitTree::beginJob()
145   {
146    // Access the tree and book branches.
147  
148 <  Service<TreeService> ts;
149 <  TreeWriter *tws = ts->get();
150 <  if (! tws) {
151 <    throw edm::Exception(edm::errors::Configuration, "FillMitTree::beginJob()\n")
152 <      << "Could not get pointer to tree." << "\n";
153 <    return;
148 >  if (os_==0) { // only the first FillMitTree object has to deal with this
149 >    Service<ObjectService> os;
150 >    if (!os.isAvailable()) {
151 >      throw edm::Exception(edm::errors::Configuration, "FillMitTree::beginJob()\n")
152 >        << "Could not get object service. "
153 >        << "Do you have the ObjectService defined in your config?" << "\n";
154 >      return;
155 >    }
156 >    os_ = &(*os);
157 >    brtable_ = new BranchTable;
158 >    brtable_->SetName(Names::gkBranchTable);
159 >    brtable_->SetOwner();
160 >    os->add(brtable_, brtable_->GetName());
161    }
162  
163 <  // Loop over the various components and book the branches
163 >  // loop over the various components and book the branches
164    for (std::vector<BaseFiller*>::iterator iF = fillers_.begin(); iF != fillers_.end(); ++iF) {
165 <    (*iF)->BookDataBlock(tws);
165 >    edm::LogInfo("FillMitTree::beginJob") << "Booking for " << (*iF)->Name() << endl;
166 >    (*iF)->BookDataBlock(*tws_);
167    }
168 <  return;
168 >
169 >  // call branch ref for the event tree
170 >  if (brtable_ && tws_->GetTree())
171 >    tws_->GetTree()->BranchRef();
172 >  
173   }
174  
175 < //-------------------------------------------------------------------------------------------------
175 > //--------------------------------------------------------------------------------------------------
176   bool FillMitTree::configure(const edm::ParameterSet &cfg)
177   {
71  // Configure our fillers.
178  
179 +  // Configure TreeWriter
180 +  const std::string twsConfigName("TreeWriter");
181 +  ParameterSet twsConfig;
182 +  if (cfg.existsAs<ParameterSet>(twsConfigName,0))
183 +    twsConfig = cfg.getUntrackedParameter<ParameterSet>(twsConfigName);
184 +  
185 +  configureTreeWriter(twsConfig);
186 +  
187 +  // Configure our fillers according to given parameter ("fillers").
188 +
189 +  std::vector<std::string> pars;
190 +  if (cfg.exists("fillers"))
191 +    pars=cfg.getUntrackedParameter<vector<string> >("fillers");
192 +  else
193 +    cfg.getParameterSetNames(pars, false);
194 +
195 +  // loop over psets
196 +  for (unsigned int i = 0; i<pars.size(); ++i) {
197 +
198 +    const string name(pars.at(i));
199 +
200 +    string ftype("Filler" + name);
201 +    if (cfg.existsAs<ParameterSet>(name,0)) {
202 +      ParameterSet next(cfg.getUntrackedParameter<ParameterSet>(name));
203 +      if (!next.exists("fillerType")) {
204 +        edm::LogError("FillMitTree") << "Cannot determine fillerType for pset named "
205 +                                     << name << std::endl;
206 +        throw edm::Exception(edm::errors::Configuration, "FillMitTree::configure\n")
207 +          << "Cannot determine fillerType for pset named "
208 +          << name << std::endl;
209 +      }
210 +      ftype = next.getUntrackedParameter<string>("fillerType");
211 +    }
212 +
213 +    edm::LogInfo("FillMitTree") << "Attempting to configure '" << ftype
214 +                                << "' for '" << name << "'" << std::endl;
215 +
216 +    if (ftype.compare("FillerMetaInfos")==0) {
217 +      FillerMetaInfos *fillerMetaInfos = new FillerMetaInfos(cfg, name.c_str(), defactive_);
218 +      addActiveFiller(fillerMetaInfos);
219 +      continue;
220 +    }
221 +
222 +    if (ftype.compare("FillerMCParticles")==0) {
223 +      FillerMCParticles *fillerMCParticles = new FillerMCParticles(cfg, name.c_str(), defactive_);
224 +      addActiveFiller(fillerMCParticles);
225 +      continue;
226 +    }
227 +
228 +    if (ftype.compare("FillerMCEventInfo")==0) {
229 +      FillerMCEventInfo *fillerMCEventInfo = new FillerMCEventInfo(cfg, name.c_str(), defactive_);
230 +      addActiveFiller(fillerMCEventInfo);
231 +      continue;
232 +    }
233 +
234 +    if (ftype.compare("FillerMCVertexes")==0) {
235 +      FillerMCVertexes *fillerMCVertexes = new FillerMCVertexes(cfg, name.c_str(), defactive_);
236 +      addActiveFiller(fillerMCVertexes);
237 +      continue;
238 +    }  
239 +
240 +    if (ftype.compare("FillerEvtSelData")==0) {
241 +      FillerEvtSelData *fillerEvtSelData = new FillerEvtSelData(cfg, name.c_str(), defactive_);
242 +      addActiveFiller(fillerEvtSelData);
243 +      continue;
244 +    }
245 +
246 +    if (ftype.compare("FillerBeamSpot")==0) {
247 +      FillerBeamSpot *fillerBeamSpot = new FillerBeamSpot(cfg, name.c_str(), defactive_);
248 +      addActiveFiller(fillerBeamSpot);
249 +      continue;
250 +    }
251 +
252 +    if (ftype.compare("FillerVertexes")==0) {
253 +      FillerVertexes *fillerVertexes = new FillerVertexes(cfg, name.c_str(), defactive_);
254 +      addActiveFiller(fillerVertexes);
255 +      continue;
256 +    }  
257 +
258 +    if (ftype.compare("FillerCaloTowers")==0) {
259 +      FillerCaloTowers *fillerCaloTowers = new FillerCaloTowers(cfg, name.c_str(), defactive_);
260 +      addActiveFiller(fillerCaloTowers);
261 +      continue;
262 +    }  
263 +
264 +    if (ftype.compare("FillerGenJets")==0) {
265 +      FillerGenJets *fillerGenJets = new FillerGenJets(cfg, name.c_str(), defactive_);
266 +      addActiveFiller(fillerGenJets);
267 +      continue;
268 +    }  
269 +
270 +    if (ftype.compare("FillerCaloJets")==0) {
271 +      FillerCaloJets *fillerCaloJets = new FillerCaloJets(cfg, name.c_str(), defactive_);
272 +      addActiveFiller(fillerCaloJets);
273 +      continue;
274 +    }  
275 +    
276 +    if (ftype.compare("FillerMet")==0) {
277 +      FillerMet *fillerMet = new FillerMet(cfg, name.c_str(), defactive_);
278 +      addActiveFiller(fillerMet);
279 +      continue;
280 +    }  
281 +    
282 +    if (ftype.compare("FillerGenMet")==0) {
283 +      FillerGenMet *fillerGenMet = new FillerGenMet(cfg, name.c_str(), defactive_);
284 +      addActiveFiller(fillerGenMet);
285 +      continue;
286 +    }  
287 +
288 +    if (ftype.compare("FillerCaloMet")==0) {
289 +      FillerCaloMet *fillerCaloMet = new FillerCaloMet(cfg, name.c_str(), defactive_);
290 +      addActiveFiller(fillerCaloMet);
291 +      continue;
292 +    }
293 +    
294 +    if (ftype.compare("FillerPFMet")==0) {
295 +      FillerPFMet *fillerPFMet = new FillerPFMet(cfg, name.c_str(), defactive_);
296 +      addActiveFiller(fillerPFMet);
297 +      continue;
298 +    }  
299 +
300 +    if (ftype.compare("FillerBasicClusters")==0) {
301 +      FillerBasicClusters *fillerBasicClusters =
302 +        new FillerBasicClusters(cfg, name.c_str(), defactive_);
303 +      addActiveFiller(fillerBasicClusters);
304 +      continue;
305 +    }  
306 +
307 +    if (ftype.compare("FillerSuperClusters")==0) {
308 +      FillerSuperClusters *fillerSuperClusters =  
309 +        new FillerSuperClusters(cfg, name.c_str(), defactive_);
310 +      addActiveFiller(fillerSuperClusters);
311 +      continue;
312 +    }  
313 +
314 +    if (ftype.compare("FillerPixelHits")==0) {
315 +      FillerPixelHits *fillerPixelHits =  
316 +        new FillerPixelHits(cfg, name.c_str(), defactive_);
317 +      addActiveFiller(fillerPixelHits);
318 +      continue;
319 +    }  
320 +
321 +    if (ftype.compare("FillerPileupInfo")==0) {
322 +      FillerPileupInfo *fillerPileupInfo =  
323 +        new FillerPileupInfo(cfg, name.c_str(), defactive_);
324 +      addActiveFiller(fillerPileupInfo);
325 +      continue;
326 +    }  
327 +
328 +    if (ftype.compare("FillerPileupEnergyDensity")==0) {
329 +      FillerPileupEnergyDensity *fillerPileupEnergyDensity =  
330 +        new FillerPileupEnergyDensity(cfg, name.c_str(), defactive_);
331 +      addActiveFiller(fillerPileupEnergyDensity);
332 +      continue;
333 +    }  
334 +
335 +    if (ftype.compare("FillerStripHits")==0) {
336 +      FillerStripHits *fillerStripHits =  
337 +        new FillerStripHits(cfg, name.c_str(), defactive_);
338 +      addActiveFiller(fillerStripHits);
339 +      continue;
340 +    }  
341 +
342 +    if (ftype.compare("FillerTracks")==0) {
343 +      FillerTracks *fillerTracks = new FillerTracks(cfg, name.c_str(), defactive_);
344 +      addActiveFiller(fillerTracks);
345 +      continue;
346 +    }  
347 +
348 +    if (ftype.compare("FillerMuons")==0) {
349 +      FillerMuons *fillerMuons = new FillerMuons(cfg, name.c_str(), defactive_);
350 +      addActiveFiller(fillerMuons);
351 +      continue;
352 +    }  
353 +
354 +    if (ftype.compare("FillerElectrons")==0) {
355 +      FillerElectrons *fillerElectrons = new FillerElectrons(cfg, name.c_str(), defactive_);
356 +      addActiveFiller(fillerElectrons);
357 +      continue;
358 +    }  
359 +
360 +    if (ftype.compare("FillerConversions")==0) {
361 +      FillerConversions *fillerConversions = new FillerConversions(cfg, name.c_str(), defactive_);
362 +      addActiveFiller(fillerConversions);
363 +      continue;
364 +    }
365 +    
366 +    if (ftype.compare("FillerConversionsDecay")==0) {
367 +      FillerConversionsDecay *fillerConversionsDecay = new FillerConversionsDecay(cfg, name.c_str(), defactive_);
368 +      addActiveFiller(fillerConversionsDecay);
369 +      continue;
370 +    }    
371 +
372 +    if (ftype.compare("FillerPhotons")==0) {
373 +      FillerPhotons *fillerPhotons = new FillerPhotons(cfg, name.c_str(), defactive_);
374 +      addActiveFiller(fillerPhotons);
375 +      continue;
376 +    }  
377 +
378 +    if (ftype.compare("FillerStableParts")==0) {
379 +      FillerStableParts *fillerStableParts = new FillerStableParts(cfg, name.c_str(), defactive_);
380 +      addActiveFiller(fillerStableParts);
381 +      continue;
382 +    }  
383 +
384 +    if (ftype.compare("FillerDecayParts")==0) {
385 +      FillerDecayParts *fillerDecayParts = new FillerDecayParts(cfg, name.c_str(), defactive_);
386 +      addActiveFiller(fillerDecayParts);
387 +      continue;
388 +    }  
389 +    
390 +    if (ftype.compare("FillerPFCandidates")==0) {
391 +      FillerPFCandidates *fillerPFCands = new FillerPFCandidates(cfg, name.c_str(), defactive_);
392 +      addActiveFiller(fillerPFCands);
393 +      continue;
394 +    }  
395 +
396 +    if (ftype.compare("FillerPFJets")==0) {
397 +      FillerPFJets *fillerPFJets = new FillerPFJets(cfg, name.c_str(), defactive_);
398 +      addActiveFiller(fillerPFJets);
399 +      continue;
400 +    }  
401 +
402 +    if (ftype.compare("FillerJPTJets")==0) {
403 +      FillerJPTJets *fillerJPTJets = new FillerJPTJets(cfg, name.c_str(), defactive_);
404 +      addActiveFiller(fillerJPTJets);
405 +      continue;
406 +    }  
407 +
408 +    if (ftype.compare("FillerCaloTaus")==0) {
409 +      FillerCaloTaus *fillerCaloTaus = new FillerCaloTaus(cfg, name.c_str(), defactive_);
410 +      addActiveFiller(fillerCaloTaus);
411 +      continue;
412 +    }
413 +    
414 +    if (ftype.compare("FillerPFTaus")==0) {
415 +      FillerPFTaus *fillerPFTaus = new FillerPFTaus(cfg, name.c_str(), defactive_);
416 +      addActiveFiller(fillerPFTaus);
417 +      continue;
418 +    }  
419 +
420 +    if (ftype.compare("FillerTrackJets")==0) {
421 +      FillerTrackJets *fillerTrackJets = new FillerTrackJets(cfg, name.c_str(), defactive_);
422 +      addActiveFiller(fillerTrackJets);
423 +      continue;
424 +    }
425 +    
426 +    edm::LogError("FillMitTree")
427 +      << "Unknown fillerType " << ftype << " for pset named " << name << std::endl;
428 +    throw edm::Exception(edm::errors::Configuration, "FillMitTree::configure\n")
429 +      << "Unknown fillerType " << ftype << " for pset named " << name << std::endl;
430 +  }
431 +
432 +  return 1;
433 + }
434  
435 <  FillerMetaInfos *fillerMetaInfos = new FillerMetaInfos(cfg);
436 <  if (fillerMetaInfos->Active())
437 <    fillers_.push_back(fillerMetaInfos);
438 <  else
78 <    delete fillerMetaInfos;
79 <
80 <  FillerGlobalMuons *fillerGlobalMuons = new FillerGlobalMuons(cfg);
81 <  if (fillerGlobalMuons->Active())
82 <    fillers_.push_back(fillerGlobalMuons);
83 <  else
84 <    delete fillerGlobalMuons;
435 > //--------------------------------------------------------------------------------------------------
436 > bool FillMitTree::configureTreeWriter(const edm::ParameterSet &cfg)
437 > {
438 >  // Configure tree writer with options from config file.
439  
440 +  tws_->SetPrefix(cfg.getUntrackedParameter<string>("fileName","mit-test"));
441 +  tws_->SetBaseURL(cfg.getUntrackedParameter<string>("pathName","."));
442 +  tws_->SetMaxSize((Long64_t)cfg.getUntrackedParameter<unsigned>("maxSize",1024)*1024*1024);
443 +  tws_->SetCompressLevel(cfg.getUntrackedParameter<unsigned>("compLevel",9));
444 +  tws_->SetDefaultSL(cfg.getUntrackedParameter<unsigned>("splitLevel",99));
445 +  tws_->SetDefaultBrSize(cfg.getUntrackedParameter<unsigned>("brSize",16*1024));
446 +  
447 +  if (OptInt::IsActivated()) {
448 +    OptInt::SetZipMode(cfg.getUntrackedParameter<unsigned>("zipMode",99));
449 +    OptInt::SetGzipFraction(cfg.getUntrackedParameter<double>("gZipThres",1.0));
450 +    OptInt::SetBzipFraction(cfg.getUntrackedParameter<double>("bZipThres",-1.0));
451 +    OptInt::SetLzoFraction(cfg.getUntrackedParameter<double>("lzoThres",-1.0));
452 +    OptInt::SetLzmaFraction(cfg.getUntrackedParameter<double>("lzmaThres",0.95));
453 +    OptInt::SetVerbose(cfg.getUntrackedParameter<unsigned>("optIOVerbose",0));
454 +
455 +  } else {
456 +
457 +    if (cfg.exists("zipMode")   || cfg.exists("bZipThres") ||
458 +        cfg.exists("gZipThres") || cfg.exists("lzoThres")  ||
459 +        cfg.exists("lzmaThres")) {
460 +      edm::LogError("FillMitTree") <<
461 +        "OptIO interface not properly pre-loaded, ignoring given settings." << std::endl;
462 +    }
463 +  }
464 +  
465    return 1;
466   }
467  
468 < //-------------------------------------------------------------------------------------------------
468 > //--------------------------------------------------------------------------------------------------
469   void FillMitTree::endJob()
470   {
471    // Delete fillers.
# Line 95 | Line 474 | void FillMitTree::endJob()
474      delete *iF;
475    }
476  
477 +  tws_->Clear();
478 +  
479    edm::LogInfo("FillMitTree::endJob") << "Ending Job" << endl;
480   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines