• As for some files to use: AANT1 files from /pnfs/uct3/users/boveia/wjets/samples/group10.phys-sm.mc09_7TeV.106020.PythiaWenu_1Lepton.merge.AOD.e468_s624_s633_r1085_r1113.WZphys.100401.02.D3PD.

  • Setup ROOT environment
    export ROOTSYS=/home/rwg/joe/root
    export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
    export PATH=$ROOTSYS/bin:$PATH

  • Trigger cut code:
    {std::string argStr;
    
    std::cin >> argStr;
    
    // split by ','
    std::vector fileList;
    for (size_t i=0,n; i <= argStr.length(); i=n+1)
    {
      n = argStr.find_first_of(',',i);
      if (n == string::npos)
        n = argStr.length();
      string tmp = argStr.substr(i,n-i);
      fileList.push_back(tmp);
    }
    
    TChain ch("physics");
    for (int iFile=0; iFileWrite();
    
    f.Close();
    
    std::cout << "Successful completion." << std::endl;
    }
    
  • Invoke:
    time echo /ecache/rwg/group10.phys-sm.mc09_7TeV.106020.PythiaWenu_1Lepton.merge.AOD.e468_s624_s633_r1085_r1113.WZphys.100401.02.D3PD.AANT1._00017.root  | root TriggerCut.C

References


-- RobGardner - 20 Apr 2010
Topic revision: r2 - 20 Apr 2010, RobGardner
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback