Error while adding different loop on trees

Hello,

In this filealignment.C (7.58 KB) as soon as I am uncommenting the first commented line I am getting error saying **. But each part is working fine individually. Please suggest what I am doing wrong.

Also, here I am using many different trees. Is there any way so that I can loop over different trees?

Thanks,
Ram.

**
Error in TTreeFormula::Compile: Bad numerical expression : “sCMSNS2LC1.geoposX”
Error in TTreeFormula::Compile: Bad numerical expression : “sCMSNS2LC1.geoposX”
Error in TTreeFormula::Compile: Bad numerical expression : “sCMSNS2LC1.geoposX”
Error in TTreeFormula::Compile: Bad numerical expression : “sCMSNS2LC1.geoposX”
Error in TTreeFormula::Compile: Bad numerical expression : “sCMSNS2LC1.geoposX”
Error in TTreeFormula::Compile: Bad numerical expression : “sCMSNS2LC1.geoposX”
Error in TPad::Range: illegal world coordinates range: x1=135.000001, y1=-0.131250, x2=-15.000001, y2=1.181250
Error in TPad::RangeAxis: illegal axis coordinates range: xmin=120.000000, ymin=0.000000, xmax=0.000000, ymax=1.05000

You need to change all:
“some_char_string_” + TString(“another_char_string”)
into:
TString(“some_char_string_”) + “another_char_string”