Fork me on GitHub

Changeset 77e9ae1 in git for display


Ignore:
Timestamp:
Feb 12, 2019, 9:48:36 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, llp, master
Children:
899b162
Parents:
6455202
Message:

set Standard to Cpp03 in .clang-format

Location:
display
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • display/Delphes3DGeometry.cc

    r6455202 r77e9ae1  
    173173  for(std::vector<std::string>::const_iterator calo = calorimeters_.begin(); calo != calorimeters_.end(); ++calo)
    174174  {
    175     set<pair<Double_t, Int_t>> caloBinning;
     175    set<pair<Double_t, Int_t> > caloBinning;
    176176    ExRootConfParam paramEtaBins, paramPhiBins;
    177177    ExRootConfParam param = confReader->GetParam(Form("%s::EtaPhiBins", calo->c_str()));
     
    187187  }
    188188
    189   set<pair<Double_t, Int_t>> caloBinning = caloBinning_[*calorimeters_.begin()];
     189  set<pair<Double_t, Int_t> > caloBinning = caloBinning_[*calorimeters_.begin()];
    190190  Double_t *etaBins = new Double_t[caloBinning.size()]; // note that this is the eta binning of the first calo
    191191  unsigned int ii = 0;
    192   for(set<pair<Double_t, Int_t>>::const_iterator itEtaSet = caloBinning.begin(); itEtaSet != caloBinning.end(); ++itEtaSet)
     192  for(set<pair<Double_t, Int_t> >::const_iterator itEtaSet = caloBinning.begin(); itEtaSet != caloBinning.end(); ++itEtaSet)
    193193  {
    194194    etaBins[ii++] = itEtaSet->first;
     
    252252
    253253std::pair<Double_t, Double_t> Delphes3DGeometry::addCalorimeter(TGeoVolume *top, const char *name,
    254   Double_t innerBarrelRadius, Double_t innerBarrelLength, set<pair<Double_t, Int_t>> &caloBinning)
     254  Double_t innerBarrelRadius, Double_t innerBarrelLength, set<pair<Double_t, Int_t> > &caloBinning)
    255255{
    256256  // parameters derived from the inputs
     
    316316
    317317void Delphes3DGeometry::addCaloTowers(TGeoVolume *top, const char *name,
    318   Double_t innerBarrelRadius, Double_t innerBarrelLength, set<pair<Double_t, Int_t>> &caloBinning)
     318  Double_t innerBarrelRadius, Double_t innerBarrelLength, set<pair<Double_t, Int_t> > &caloBinning)
    319319{
    320320
     
    339339  Int_t etaslice = 0;
    340340  std::map<std::pair<int, int>, TGeoRotation *> phirotations;
    341   for(set<pair<Double_t, Int_t>>::const_iterator bin = caloBinning.begin(); bin != caloBinning.end(); ++bin)
     341  for(set<pair<Double_t, Int_t> >::const_iterator bin = caloBinning.begin(); bin != caloBinning.end(); ++bin)
    342342  {
    343343    if(abs(bin->first) > calo_endcap_etamin) continue; // only in the barrel
     
    388388  etaslice = 0;
    389389  phirotations.clear();
    390   for(set<pair<Double_t, Int_t>>::const_iterator bin = caloBinning.begin(); bin != caloBinning.end(); ++bin)
     390  for(set<pair<Double_t, Int_t> >::const_iterator bin = caloBinning.begin(); bin != caloBinning.end(); ++bin)
    391391  {
    392392    if(bin->first < calo_endcap_etamin) continue; // only in the + endcap
  • display/Delphes3DGeometry.h

    r6455202 r77e9ae1  
    6060private:
    6161  std::pair<Double_t, Double_t> addTracker(TGeoVolume *top);
    62   std::pair<Double_t, Double_t> addCalorimeter(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength, std::set<std::pair<Double_t, Int_t>> &caloBinning);
     62  std::pair<Double_t, Double_t> addCalorimeter(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength, std::set<std::pair<Double_t, Int_t> > &caloBinning);
    6363  std::pair<Double_t, Double_t> addMuonDets(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength);
    64   void addCaloTowers(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength, std::set<std::pair<Double_t, Int_t>> &caloBinning);
     64  void addCaloTowers(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength, std::set<std::pair<Double_t, Int_t> > &caloBinning);
    6565
    6666private:
     
    9090
    9191  std::map<std::string, Double_t> muonSystem_etamax_;
    92   std::map<std::string, std::set<std::pair<Double_t, Int_t>>> caloBinning_;
     92  std::map<std::string, std::set<std::pair<Double_t, Int_t> > > caloBinning_;
    9393};
    9494
  • display/DelphesPlotSummary.cc

    r6455202 r77e9ae1  
    181181{
    182182  // clear event histograms and markers
    183   for(std::map<TString, std::vector<TH1F *>>::iterator hv = eventProfiles_.begin(); hv != eventProfiles_.end(); ++hv)
     183  for(std::map<TString, std::vector<TH1F *> >::iterator hv = eventProfiles_.begin(); hv != eventProfiles_.end(); ++hv)
    184184  {
    185185    for(std::vector<TH1F *>::iterator h = hv->second.begin(); h < hv->second.end(); ++h)
     
    188188    }
    189189  }
    190   for(std::map<TString, std::vector<TMarker *>>::iterator mv = eventMarkers_.begin(); mv != eventMarkers_.end(); ++mv)
     190  for(std::map<TString, std::vector<TMarker *> >::iterator mv = eventMarkers_.begin(); mv != eventMarkers_.end(); ++mv)
    191191  {
    192192    for(std::vector<TMarker *>::iterator m = mv->second.begin(); m < mv->second.end(); ++m)
  • display/DelphesPlotSummary.h

    r6455202 r77e9ae1  
    4545  TEveWindowTab *tab_;
    4646  std::map<TString, TCanvas *> canvases_;
    47   std::map<TString, std::vector<TH1F *>> histograms_;
     47  std::map<TString, std::vector<TH1F *> > histograms_;
    4848  std::vector<DelphesBranchBase *> *elements_;
    49   std::map<TString, std::vector<TMarker *>> eventMarkers_;
    50   std::map<TString, std::vector<TH1F *>> eventProfiles_;
     49  std::map<TString, std::vector<TMarker *> > eventMarkers_;
     50  std::map<TString, std::vector<TH1F *> > eventProfiles_;
    5151};
    5252
Note: See TracChangeset for help on using the changeset viewer.