Newer
Older
TB_Chris / TbUT / scripts / .svn / text-base / ClusterAna.h.svn-base
  1. //////////////////////////////////////////////////////////
  2. // This class has been automatically generated on
  3. // Thu Feb 4 16:48:43 2016 by ROOT version 5.34/10
  4. // from TTree Clusters/TbUT nTuple
  5. // found on file: /data2/pmmannin/FullProcessing/BoardA2/Run_Bias_Scan-B2-A-1071-14008_Tuple.root
  6. //////////////////////////////////////////////////////////
  7.  
  8. #ifndef ClusterAna_h
  9. #define ClusterAna_h
  10.  
  11. #include <TROOT.h>
  12. #include <TChain.h>
  13. #include <TFile.h>
  14. #include <TProfile.h>
  15. #include <TH1F.h>
  16. #include <TH2F.h>
  17. #include <TLegend.h>
  18. #include <TBox.h>
  19. #include <TLine.h>
  20.  
  21. #include "AnalysisBaseCluOnly.h"
  22. // Header file for the classes stored in the TTree if any.
  23. #include <vector>
  24. #include <iostream>
  25. #include <algorithm>
  26. // Fixed size dimensions of array or collections stored in the TTree if any.
  27.  
  28. class ClusterAna : public AnalysisBaseCluOnly{
  29. public :
  30. ClusterAna(int biasVal);
  31. virtual ~ClusterAna();
  32. virtual void Loop();
  33. virtual TString getFileBase(TString scan="Bias", TString board="", TString bias="", TString angle="0", TString sector="1");
  34.  
  35. TFile *fout;
  36.  
  37. };
  38.  
  39. #endif
  40.  
  41. #ifdef ClusterAna_cxx
  42. ClusterAna::ClusterAna(int biasVal) {
  43. // if parameter tree is not specified (or zero), connect the file
  44. // used to generate this class and read the Tree.
  45. TString filename;
  46. if(biasVal != 0) m_bias = Form("%d",biasVal);
  47. TTree* tree = 0;
  48. TFile *f;
  49. if (tree == 0) {
  50. //
  51. // lhcb-dev
  52. //
  53. TString scanType = "Run_Bias";
  54. if(m_scanType.Contains("Angle")) scanType = "Run_Angle";
  55. filename = m_fileIndir+"Board"+m_board+"/"+scanType+"_Scan-"+getFileBase("Bias",m_board, m_bias, m_angle,m_sector)+"_Tuple.root";
  56.  
  57. f = new TFile(filename);
  58. tree = (TTree*)f->Get("TbUT/Clusters");
  59. std::cout << "===> Opening file: " << filename << std::endl;
  60. }
  61.  
  62. Init(tree);
  63.  
  64. TString filename2 = filename.ReplaceAll("_Tuple","");
  65. TFile *f2 = new TFile(filename2);
  66. f2->cd("TbUT");
  67. TH2D *hNoise = (TH2D*)gDirectory->Get("CMSData_vs_channel");
  68. TF1 *gau = new TF1("gau","gaus(0)",-120,120);
  69. gau->SetParameters(10000,0.0,40.0);
  70.  
  71. TH1D *px;
  72. for(int i=0;i<512;i++){
  73. px = hNoise->ProjectionY(Form("px%d",i),i,i);
  74. px->GetXaxis()->SetRangeUser(-200,200);
  75. if(px->GetEntries() < 10){
  76. noise[i] = 1000;
  77. continue;
  78. }
  79. double p = px->GetMaximum();
  80. double m = px->GetMean();
  81. double e = px->GetRMS();
  82. gau->SetParameters(p, m, e);
  83. gau->SetRange(m-3*e,m+3*e);
  84.  
  85. px->Fit(gau,"RQ");
  86. double mn = gau->GetParameter(1);
  87. double wid = gau->GetParameter(2);
  88. double emn = gau->GetParError(1);
  89. double ewid = gau->GetParError(2);
  90. noise[i] = wid;
  91. }
  92.  
  93.  
  94.  
  95. }
  96.  
  97. ClusterAna::~ClusterAna()
  98. {
  99. if (!fChain) return;
  100. delete fChain->GetCurrentFile();
  101. }
  102.  
  103. TString ClusterAna::getFileBase(TString scan, TString board, TString bias, TString angle, TString sector) {
  104.  
  105. TString tag = "";
  106.  
  107. if(board.Contains("A6")){
  108. if(sector == "1") {
  109. if ( bias == "300" ) tag = "B6-A-212-8358";
  110. if ( bias == "250" ) tag = "B6-A-213-8359";
  111. if ( bias == "200" ) tag = "B6-A-214-8361";
  112. if ( bias == "150" ) tag = "B6-A-215-8362";
  113. if ( bias == "100" ) tag = "B6-A-216-8363";
  114. if ( bias == "75" ) tag = "B6-A-219-8365";
  115. if ( bias == "50" ) tag = "B6-A-220-8366";
  116. } else if(sector == "2"){
  117. if ( bias == "300" ) tag = "B6-A-242-8389";
  118. if ( bias == "250" ) tag = "B6-A-245-8392";
  119. if ( bias == "200" ) tag = "B6-A-246-8393";
  120. if ( bias == "150" ) tag = "B6-A-247-8394";
  121. if ( bias == "100" ) tag = "B6-A-248-8395";
  122. if ( bias == "75" ) tag = "B6-A-249-8396";
  123. if ( bias == "50" ) tag = "B6-A-250-8397";
  124. } else if(sector == "3"){
  125. if ( bias == "300" ) tag = "B6-A-293-8425";
  126. if ( bias == "250" ) tag = "B6-A-294-8426";
  127. if ( bias == "200" ) tag = "B6-A-295-8427";
  128. if ( bias == "150" ) tag = "B6-A-296-8428";
  129. if ( bias == "100" ) tag = "B6-A-297-8429";
  130. if ( bias == "75" ) tag = "B6-A-298-8430";
  131. if ( bias == "50" ) tag = "B6-A-299-8431";
  132. } else if(sector == "4"){
  133. if ( bias == "300" ) tag = "B6-A-326-8452";
  134. if ( bias == "250" ) tag = "B6-A-327-8453";
  135. if ( bias == "200" ) tag = "B6-A-328-8454";
  136. if ( bias == "150" ) tag = "B6-A-329-8455";
  137. if ( bias == "100" ) tag = "B6-A-330-8456";
  138. if ( bias == "75" ) tag = "B6-A-331-8457";
  139. if ( bias == "50" ) tag = "B6-A-332-8458";
  140. } else if(sector == "5"){
  141. if ( bias == "300" ) tag = "B6-A-378-8494";
  142. if ( bias == "250" ) tag = "B6-A-381-8497";
  143. if ( bias == "200" ) tag = "B6-A-382-8498";
  144. if ( bias == "150" ) tag = "B6-A-383-8499";
  145. if ( bias == "100" ) tag = "B6-A-384-8500";
  146. if ( bias == "75" ) tag = "B6-A-385-8501";
  147. if ( bias == "50" ) tag = "B6-A-386-8502";
  148. } else if(sector == "6"){
  149. if ( bias == "300" ) tag = "B6-A-408-8523";
  150. if ( bias == "250" ) tag = "B6-A-409-8524";
  151. if ( bias == "200" ) tag = "B6-A-410-8525";
  152. if ( bias == "150" ) tag = "B6-A-411-8526";
  153. if ( bias == "100" ) tag = "B6-A-412-8527";
  154. if ( bias == "75" ) tag = "B6-A-413-8528";
  155. if ( bias == "50" ) tag = "B6-A-414-8529";
  156. }
  157. } else if (board.Contains("A4")) {
  158. if(sector == "1") {
  159. if(bias == "400" ) tag = "B4-A-210-8552";
  160. if(bias == "350" ) tag = "B4-A-211-8553";
  161. if(bias == "300" ) tag = "B4-A-212-8554";
  162. if(bias == "250" ) tag = "B4-A-213-8555";
  163. if(bias == "200" ) tag = "B4-A-214-8556";
  164. if(bias == "150" ) tag = "B4-A-215-8557";
  165. if(bias == "100" ) tag = "B4-A-216-8558";
  166. if(bias == "75" ) tag = "B4-A-217-8559";
  167. if(bias == "50" ) tag = "B4-A-218-8560";
  168. }else if(sector == "2") {
  169. if(bias == "400" ) tag = "B4-A-242-8583";
  170. if(bias == "350" ) tag = "B4-A-243-8584";
  171. if(bias == "300" ) tag = "B4-A-246-8586";
  172. if(bias == "250" ) tag = "B4-A-247-8587";
  173. if(bias == "200" ) tag = "B4-A-248-8588";
  174. if(bias == "150" ) tag = "B4-A-249-8589";
  175. if(bias == "100" ) tag = "B4-A-250-8590";
  176. if(bias == "75" ) tag = "B4-A-251-8591";
  177. if(bias == "50" ) tag = "B4-A-252-8592";
  178. } else if(sector == "3"){
  179. if(bias == "400" ) tag = "B4-A-275-8615";
  180. if(bias == "350" ) tag = "B4-A-276-8616";
  181. if(bias == "300" ) tag = "B4-A-277-8617";
  182. if(bias == "250" ) tag = "B4-A-278-8618";
  183. if(bias == "200" ) tag = "B4-A-279-8619";
  184. if(bias == "150" ) tag = "B4-A-280-8620";
  185. if(bias == "100" ) tag = "B4-A-281-8621";
  186. if(bias == "75" ) tag = "B4-A-282-8622";
  187. if(bias == "50" ) tag = "B4-A-283-8623";
  188. } else if(sector == "4"){
  189. if(bias == "400" ) tag = "B4-A-217-8651";
  190. if(bias == "350" ) tag = "B4-A-218-8652";
  191. if(bias == "300" ) tag = "B4-A-219-8653";
  192. if(bias == "250" ) tag = "B4-A-220-8654";
  193. if(bias == "200" ) tag = "B4-A-221-8655";
  194. if(bias == "150" ) tag = "B4-A-222-8656";
  195. if(bias == "100" ) tag = "B4-A-223-8657";
  196. if(bias == "75" ) tag = "B4-A-224-8658";
  197. if(bias == "50" ) tag = "B4-A-225-8659";
  198. } else if(sector == "5"){
  199. if(bias == "400" ) tag = "B4-A-246-8680";
  200. if(bias == "350" ) tag = "B4-A-247-8681";
  201. if(bias == "300" ) tag = "B4-A-248-8682";
  202. if(bias == "250" ) tag = "B4-A-249-8683";
  203. if(bias == "200" ) tag = "B4-A-250-8684";
  204. if(bias == "150" ) tag = "B4-A-251-8685";
  205. if(bias == "100" ) tag = "B4-A-252-8686";
  206. if(bias == "75" ) tag = "B4-A-253-8687";
  207. if(bias == "50" ) tag = "B4-A-254-8688";
  208. } else if(sector == "6"){
  209. if(bias == "400" ) tag = "B4-A-227-8711";
  210. if(bias == "350" ) tag = "B4-A-228-8712";
  211. if(bias == "300" ) tag = "B4-A-229-8713";
  212. if(bias == "250" ) tag = "B4-A-230-8714";
  213. if(bias == "200" ) tag = "B4-A-231-8715";
  214. if(bias == "150" ) tag = "B4-A-232-8716";
  215. if(bias == "100" ) tag = "B4-A-233-8717";
  216. if(bias == "75" ) tag = "B4-A-234-8718";
  217. if(bias == "50" ) tag = "B4-A-235-8719";
  218. tag = tag.ReplaceAll("B4","B1");
  219. }
  220. } else if (board.Contains("A8")) {
  221. if(sector == "1"){
  222. if(bias == "500") tag = "B8-A-296-13332";
  223. if(bias == "400") tag = "B8-A-297-13333";
  224. if(bias == "350") tag = "B8-A-298-13334";
  225. if(bias == "300") tag = "B8-A-299-13335";
  226. if(bias == "250") tag = "B8-A-300-13336";
  227. if(bias == "200") tag = "B8-A-301-13337";
  228. if(bias == "150") tag = "B8-A-302-13338";
  229. if(bias == "100") tag = "B8-A-303-13339";
  230. if(bias == "75") tag = "B8-A-304-13340";
  231. if(bias == "50") tag = "B8-A-305-13341";
  232. if(m_scanType=="Angle" && angle=="10" && bias == "300") tag = "B8-A-378-13399";
  233. if(m_scanType=="Angle" && angle=="20" && bias == "300") tag = "B8-A-379-13400";
  234. }else if (sector == "2"){
  235. //if(bias == "500") tag = "B8-A-321-13354";
  236. if(bias == "400") tag = "B8-A-324-13355";
  237. if(bias == "350") tag = "B8-A-325-13356";
  238. if(bias == "300") tag = "B8-A-327-13357";
  239. if(bias == "250") tag = "B8-A-328-13358";
  240. if(bias == "200") tag = "B8-A-329-13359";
  241. if(bias == "150") tag = "B8-A-330-13360";
  242. if(bias == "100") tag = "B8-A-331-13361";
  243. if(bias == "75") tag = "B8-A-332-13362";
  244. if(bias == "50") tag = "B8-A-333-13363";
  245. }else if (sector == "3"){
  246. //if(bias == "500") tag = "B8-A-358-13385";
  247. if(bias == "400") tag = "B8-A-359-13386";
  248. if(bias == "350") tag = "B8-A-360-13387";
  249. if(bias == "300") tag = "B8-A-361-13388";
  250. if(bias == "250") tag = "B8-A-365-13389";
  251. if(bias == "200") tag = "B8-A-366-13390";
  252. if(bias == "150") tag = "B8-A-367-13391";
  253. if(bias == "100") tag = "B8-A-368-13392";
  254. if(bias == "75") tag = "B8-A-369-13393";
  255. if(bias == "50") tag = "B8-A-370-13394";
  256. }else if (sector == "4"){
  257. //if(bias == "500") tag = "B8-A-309-13344";
  258. if(bias == "400") tag = "B8-A-311-13345";
  259. if(bias == "350") tag = "B8-A-312-13346";
  260. if(bias == "300") tag = "B8-A-314-13347";
  261. if(bias == "250") tag = "B8-A-315-13348";
  262. if(bias == "200") tag = "B8-A-316-13349";
  263. if(bias == "150") tag = "B8-A-317-13350";
  264. if(bias == "100") tag = "B8-A-318-13351";
  265. if(bias == "75") tag = "B8-A-319-13352";
  266. if(bias == "50") tag = "B8-A-320-13353";
  267. }else if (sector == "5"){
  268. //if(bias == "500") tag = "B8-A-334-13364";
  269. if(bias == "400") tag = "B8-A-337-13365";
  270. if(bias == "350") tag = "B8-A-339-13367";
  271. if(bias == "300") tag = "B8-A-340-13368";
  272. if(bias == "250") tag = "B8-A-341-13369";
  273. if(bias == "200") tag = "B8-A-342-13370";
  274. if(bias == "150") tag = "B8-A-343-13371";
  275. if(bias == "100") tag = "B8-A-344-13372";
  276. if(bias == "75") tag = "B8-A-345-13373";
  277. if(bias == "50") tag = "B8-A-346-13374";
  278. if(bias != "400") tag = tag.ReplaceAll("B8","B1");
  279. }else if (sector == "6"){
  280. //if(bias == "500") tag = "B8-A-347-13375";
  281. if(bias == "400") tag = "B8-A-348-13376";
  282. if(bias == "350") tag = "B8-A-349-13377";
  283. if(bias == "300") tag = "B8-A-350-13378";
  284. if(bias == "250") tag = "B8-A-352-13379";
  285. if(bias == "200") tag = "B8-A-353-13380";
  286. if(bias == "150") tag = "B8-A-354-13381";
  287. if(bias == "100") tag = "B8-A-355-13382";
  288. if(bias == "75") tag = "B8-A-356-13383";
  289. if(bias == "50") tag = "B8-A-357-13384";
  290. tag = tag.ReplaceAll("B8","B1");
  291. }
  292. } else if (board.Contains("D5")) {
  293. if(sector == "1"){
  294. if(bias == "50") tag = "B5-D-14-13066";
  295. if(bias == "75") tag = "B5-D-13-13065";
  296. if(bias == "100") tag = "B5-D-12-13064";
  297. if(bias == "150") tag = "B5-D-11-13063";
  298. if(bias == "200") tag = "B5-D-10-13062";
  299. if(bias == "250") tag = "B5-D-6-13058";
  300. if(bias == "300") tag = "B5-D-19-13071";
  301. if(bias == "350") tag = "B5-D-4-13056";
  302. if(bias == "400") tag = "B5-D-3-13055";
  303. if(bias == "500") tag = "B5-D-16-13068";
  304. }else if(sector == "2"){
  305. if(bias == "50") tag = "B5-D-119-13165";
  306. if(bias == "75") tag = "B5-D-118-13164";
  307. if(bias == "100") tag = "B5-D-117-13163";
  308. if(bias == "150") tag = "B5-D-116-13162";
  309. if(bias == "200") tag = "B5-D-115-13161";
  310. if(bias == "250") tag = "B5-D-114-13160";
  311. if(bias == "300") tag = "B5-D-113-13159";
  312. if(bias == "350") tag = "B5-D-111-13157";
  313. if(bias == "400") tag = "B5-D-110-13156";
  314. if(bias == "500") tag = "B5-D-109-13155";
  315. }else if(sector == "3"){
  316. if(bias == "50") tag = "B5-D-167-13209";
  317. if(bias == "75") tag = "B5-D-166-13208";
  318. if(bias == "100") tag = "B5-D-165-13207";
  319. if(bias == "150") tag = "B5-D-164-13206";
  320. if(bias == "200") tag = "B5-D-163-13205";
  321. if(bias == "250") tag = "B5-D-162-13204";
  322. if(bias == "300") tag = "B5-D-159-13202";
  323. if(bias == "350") tag = "B5-D-158-13201";
  324. if(bias == "400") tag = "B5-D-157-13200";
  325. if(bias == "500") tag = "B5-D-156-13199";
  326. }else if(sector == "4"){
  327. if(bias == "50") tag = "B5-D-65-13114";
  328. if(bias == "75") tag = "B5-D-64-13113";
  329. if(bias == "100") tag = "B5-D-63-13112";
  330. if(bias == "150") tag = "B5-D-62-13111";
  331. if(bias == "200") tag = "B5-D-61-13110";
  332. if(bias == "250") tag = "B5-D-59-13108";
  333. if(bias == "300") tag = "B5-D-58-13107";
  334. if(bias == "350") tag = "B5-D-57-13106";
  335. if(bias == "400") tag = "B5-D-56-13105";
  336. if(bias == "500") tag = "B5-D-55-13104";
  337. }else if(sector == "5"){
  338. if(bias == "50") tag = "B5-D-218-13253";
  339. if(bias == "75") tag = "B5-D-217-13252";
  340. if(bias == "100") tag = "B5-D-216-13251";
  341. if(bias == "150") tag = "B5-D-215-13250";
  342. if(bias == "200") tag = "B5-D-214-13249";
  343. if(bias == "250") tag = "B5-D-213-13248";
  344. if(bias == "300") tag = "B5-D-212-13247";
  345. if(bias == "350") tag = "B5-D-211-13246";
  346. if(bias == "400") tag = "B5-D-210-13245";
  347. if(bias == "500") tag = "B5-D-209-13244";
  348. }else if(sector == "6"){
  349. if(bias == "50") tag = "B5-D-260-13294";
  350. if(bias == "75") tag = "B5-D-259-13293";
  351. if(bias == "100") tag = "B5-D-258-13292";
  352. if(bias == "150") tag = "B5-D-257-13291";
  353. if(bias == "200") tag = "B5-D-256-13290";
  354. if(bias == "250") tag = "B5-D-255-13289";
  355. if(bias == "300") tag = "B5-D-254-13288";
  356. if(bias == "350") tag = "B5-D-253-13287";
  357. if(bias == "400") tag = "B5-D-252-13286";
  358. if(bias == "500") tag = "B5-D-251-13285";
  359. }
  360. } else if (board.Contains("D7")) {
  361. if(sector == "1"){
  362. if(bias == "50") tag = "B1-D-347-9360";
  363. if(bias == "75") tag = "B1-D-346-9359";
  364. if(bias == "100") tag = "B1-D-344-9356";
  365. if(bias == "150") tag = "B1-D-345-9357";
  366. if(bias == "200") tag = "B1-D-343-9355";
  367. if(bias == "300") tag = "B1-D-343-9354";
  368. if(bias == "400") tag = "B1-D-341-9353";
  369. if(bias == "500") tag = "B1-D-340-9272";
  370. }else if(sector == "2"){
  371. if(bias == "50") tag = "B1-D-471-9659";
  372. if(bias == "75") tag = "B1-D-470-9658";
  373. if(bias == "100") tag = "B1-D-469-9657";
  374. if(bias == "150") tag = "B1-D-468-9656";
  375. if(bias == "200") tag = "B1-D-467-9655";
  376. if(bias == "300") tag = "B1-D-466-9654";
  377. if(bias == "400") tag = "B1-D-465-9653";
  378. if(bias == "500") tag = "B1-D-464-9652";
  379. }else if(sector == "3"){
  380. if(bias == "50") tag = "B1-D-472-9660";
  381. if(bias == "75") tag = "B1-D-473-9661";
  382. if(bias == "100") tag = "B1-D-474-9662";
  383. if(bias == "150") tag = "B1-D-475-9663";
  384. if(bias == "200") tag = "B1-D-476-9664";
  385. if(bias == "300") tag = "B1-D-477-9665";
  386. if(bias == "400") tag = "B1-D-478-9666";
  387. if(bias == "500") tag = "B1-D-479-9667";
  388. }else if(sector == "4"){
  389. if(bias == "50") tag = "B1-D-379-9424";
  390. if(bias == "75") tag = "B1-D-378-9423";
  391. if(bias == "100") tag = "B1-D-377-9422";
  392. if(bias == "150") tag = "B1-D-376-9421";
  393. if(bias == "200") tag = "B1-D-375-9419";
  394. if(bias == "300") tag = "B1-D-374-9417";
  395. if(bias == "400") tag = "B1-D-373-9415";
  396. if(bias == "500") tag = "B1-D-372-9413";
  397. }else if(sector == "5"){
  398. if(bias == "50") tag = "B1-D-489-9763";
  399. if(bias == "75") tag = "B1-D-488-9762";
  400. if(bias == "100") tag = "B1-D-487-9761";
  401. if(bias == "150") tag = "B1-D-484-9674";
  402. if(bias == "200") tag = "B1-D-483-9673";
  403. if(bias == "300") tag = "B1-D-482-9672";
  404. if(bias == "400") tag = "B1-D-481-9671";
  405. if(bias == "500") tag = "B1-D-480-9670";
  406. }else if(sector == "6"){
  407. if(bias == "50") tag = "B1-D-321-9252";
  408. if(bias == "75") tag = "B1-D-320-9251";
  409. if(bias == "100") tag = "B1-D-319-9250";
  410. if(bias == "150") tag = "B1-D-318-9249";
  411. if(bias == "200") tag = "B1-D-317-9248";
  412. if(bias == "300") tag = "B1-D-316-9247";
  413. if(bias == "400") tag = "B1-D-315-9246";
  414. if(bias == "500") tag = "B1-D-314-9245";
  415. }
  416. } else if (board.Contains("A1")) {
  417. if(sector == "1"){
  418. if(bias == "350") tag = "B1-A-1022-13947";
  419. if(bias == "300") tag = "B1-A-1021-13946";
  420. if(bias == "250") tag = "B1-A-1053-13971";
  421. if(bias == "200") tag = "B1-A-1052-13970";
  422. if(bias == "150") tag = "B1-A-1015-13939";
  423. if(bias == "100") tag = "B1-A-1014-13938";
  424. if(bias == "75") tag = "B1-A-1013-13937";
  425. if(bias == "50") tag = "B1-A-1012-13936";
  426. }else if(sector == "2"){
  427. if(bias == "350") tag = "B1-A-1062-13980";
  428. if(bias == "300") tag = "B1-A-1061-13979";
  429. if(bias == "250") tag = "B1-A-1060-13978";
  430. if(bias == "200") tag = "B1-A-1059-13977";
  431. if(bias == "150") tag = "B1-A-1058-13976";
  432. if(bias == "100") tag = "B1-A-1057-13975";
  433. if(bias == "75") tag = "B1-A-1056-13974";
  434. if(bias == "50") tag = "B1-A-1055-13973";
  435. }
  436. } else if (board.Contains("A2")) {
  437. if(sector == "1"){
  438. if(bias == "340") tag = "B2-A-1095-14030";
  439. if(bias == "325") tag = "B2-A-1094-14029";
  440. if(bias == "300") tag = "B2-A-1084-14017";
  441. if(bias == "250") tag = "B2-A-1083-14016";
  442. if(bias == "200") tag = "B2-A-1082-14015";
  443. if(bias == "150") tag = "B2-A-1081-14014";
  444. if(bias == "100") tag = "B2-A-1078-14013";
  445. if(bias == "75") tag = "B2-A-1077-14012";
  446. if(bias == "50") tag = "B2-A-1076-14011";
  447. }else if(sector == "2"){
  448. if(bias == "340") tag = "B2-A-1099-14034";
  449. if(bias == "325") tag = "B2-A-1098-14033";
  450. if(bias == "300") tag = "B2-A-1097-14032";
  451. if(bias == "250") tag = "B2-A-1100-14035";
  452. if(bias == "200") tag = "B2-A-1101-14036";
  453. if(bias == "150") tag = "B2-A-1102-14037";
  454. if(bias == "100") tag = "B2-A-1103-14038";
  455. if(bias == "75") tag = "B2-A-1104-14039";
  456. if(bias == "50") tag = "B2-A-1105-14040";
  457. }
  458. }
  459.  
  460. return tag;
  461. }
  462.  
  463. #endif // #ifdef ClusterAna_cxx