forked from stadie/BaconTrans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_test.C
26 lines (24 loc) · 1.5 KB
/
my_test.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
gROOT->Macro("UHH2/BaconTrans/load.C");
convert("/nfs/dust/cms/user/karavdia/JEC_76X/General/MC/output_mc.root","/nfs/dust/cms/user/karavdia/JEC_76X/Bacon/MC/Bacon_output_mc.root","AK4PFCHS");
convert("/nfs/dust/cms/user/karavdia/JEC_76X/General/DATA/output_data.root","/nfs/dust/cms/user/karavdia/JEC_76X/Bacon/DATA/Bacon_output_data.root","AK4PFCHS");
// //convert("/nfs/dust/cms/user/kovalch/CRAB/ZeroBias/jme_1.root","test.root","nt_AK4PFCluster");
// //convert("/pnfs/desy.de/cms/tier2/store/user/stadie/ZeroBias1/zero/150625_132419/0000/jme_1.root","test.root","nt_AK4PFCluster");
// std::string first,second,path;
// first = "/pnfs/desy.de/cms/tier2/store/user/nkovalch/ZeroBias4/zero/150702_093020/0000/jme_";
// second = ".root";
// std::string tmp;
// Long_t *id,*size,*flags,*mt;
// for (int i=1; i<115; i++){
// tmp = std::to_string(i);
// path = first+tmp+second;
// const char *tmp_ = path.c_str();
// // error message if the file does not exist
// if(gSystem->GetPathInfo(tmp_,id,size,flags,mt)==1) std::cout << "file " << path << " does not exist" << std::endl;
// // conversion if the file exists...
// if(!gSystem->GetPathInfo(tmp_,id,size,flags,mt)){
// std::cout << " ++++++ conversion of " << path << " to bacon data format ++++++" << std::endl;
// convert(first+tmp+second,"/nfs/dust/cms/user/mstoev/CMSSW_7_2_1_patch4/src/UHH2/BaconTrans/zeroT_ak4pfcluster/jme_ak4pfcluster_ZeroBias4_"+tmp+".root","nt_AK4PFCluster");
// }
// }
}