Fork me on GitHub

Changeset 95b4e9f in git for modules/VertexSorter.cc


Ignore:
Timestamp:
Aug 31, 2016, 4:25:59 PM (8 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
4154bbd
Parents:
b195ba1
Message:

reorganize includes in vertexing modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/VertexSorter.cc

    rb195ba1 r95b4e9f  
    2929#include "TMatrixT.h"
    3030#include "TVector3.h"
     31
     32#include <utility>
     33#include <algorithm>
     34#include <stdexcept>
     35#include <iostream>
     36#include <vector>
     37#include <map>
     38#include <string>
     39
     40using namespace std;
    3141
    3242static const Double_t mm  = 1.;
     
    7686  fOutputArray = ExportArray(GetString("OutputArray", "clusters"));
    7787
    78   fMethod = GetString ("Method", "BTV");
     88  fMethod = GetString("Method", "BTV");
    7989}
    8090
     
    8898
    8999//------------------------------------------------------------------------------
    90 //
    91 Bool_t VertexSorter::secondDescending (pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1)
     100
     101static Bool_t secondDescending (pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1)
    92102{
    93103  return (pair0.second > pair1.second);
    94104}
    95 Bool_t VertexSorter::secondAscending (pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1)
     105
     106static Bool_t secondAscending (pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1)
    96107{
    97108  return (pair0.second < pair1.second);
    98109}
    99110
     111//------------------------------------------------------------------------------
     112
    100113void VertexSorter::Process()
    101114{
    102115  Candidate *candidate, *jetCandidate, *beamSpotCandidate;
    103   unordered_map<Int_t, UInt_t> clusterIDToIndex;
    104   unordered_map<Int_t, Double_t> clusterIDToSumPT2;
     116  map<Int_t, UInt_t> clusterIDToIndex;
     117  map<Int_t, Double_t> clusterIDToSumPT2;
    105118  vector<pair<Int_t, Double_t> > sortedClusterIDs;
    106119
     
    112125    }
    113126
    114   if (fMethod == "BTV")
     127  if(fMethod == "BTV")
    115128    {
    116129      if (!fJetInputArray)
Note: See TracChangeset for help on using the changeset viewer.