Skip to content

Commit eb8c502

Browse files
Modifying tree reader for VLLT
1 parent 2e0ae1f commit eb8c502

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

CLA/parse.y

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,11 @@ function : '{' particules '}' 'm' { vector<myParticle*> newList;
10861086
if (asys < 6){
10871087
//if (Initializations->at(0)=="ATLMIN" || Initializations->at(0)=="VLLF") nsys="nominal";
10881088
//if (Initializations->at(0)=="CMSNANO") nsys="Events";
1089-
std::pair<const std::string, TTreeReader*> &firstEntry = *ttr_map.begin();
1090-
nsys=firstEntry.first;
1089+
if (Initializations->at(0)=="VLLT") nsys="reco";
1090+
else {
1091+
std::pair<const std::string, TTreeReader*> &firstEntry = *ttr_map.begin();
1092+
nsys=firstEntry.first;
1093+
}
10911094

10921095
}
10931096
DEBUG(" asys:"<< asys<< "Special Func:"<<nsys<<"\n");
@@ -1189,8 +1192,11 @@ function : '{' particules '}' 'm' { vector<myParticle*> newList;
11891192
if (asys < 6){
11901193
//if (Initializations->at(0)=="ATLMIN") nsys="nominal";
11911194
//if (Initializations->at(0)=="CMSNANO") nsys="Events";
1192-
std::pair<const std::string, TTreeReader*> &firstEntry = *ttr_map.begin();
1193-
nsys=firstEntry.first;
1195+
if (Initializations->at(0)=="VLLT") nsys="reco";
1196+
else {
1197+
std::pair<const std::string, TTreeReader*> &firstEntry = *ttr_map.begin();
1198+
nsys=firstEntry.first;
1199+
}
11941200

11951201
}
11961202
DEBUG(" asys:"<< asys<< "Special SFunc:"<<nsys<<"\n");

0 commit comments

Comments
 (0)