ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/src/AnaSynch.cc
(Generate patch)

Comparing UserCode/L1RpcTriggerAnalysis/src/AnaSynch.cc (file contents):
Revision 1.1 by konec, Mon Oct 1 19:20:38 2012 UTC vs.
Revision 1.3 by konec, Mon Oct 22 06:28:46 2012 UTC

# Line 37 | Line 37 | void AnaSynch::init(TObjArray& histos)
37  
38    hSynch_delaySummary = new TH1F("hSynch_delaySummary","LinkDelaySummary",8,-3.5, 4.5); hSynch_delaySummary->SetStats(111); histos.Add(hSynch_delaySummary);
39  
40 <  hSynch_delaySpread = new TH2F("hSynch_delaySpread","LinkDelaySpread",71,-3.05, 4.05, 31,-0.05,3.05); hSynch_delaySpread->SetStats(0); histos.Add(hSynch_delaySpread);
40 >  double  widthX=1.0/50 ;                   // bin width of 1/25 BX = 1ns
41 >  unsigned int  nbinsX=2*(Int_t)(3.0/widthX)+1; // nbins for [-3 BX, +3 BX] range
42 >  double  widthY=1.0/50 ;                   // bin width of 1/25 BX = 1ns
43 >  unsigned int nbinsY=(Int_t)(7.0/widthY);     // nbins for [0 BX, 7 BX[ range
44 >
45 >  hSynch_delaySpread = new TH2F("hSynch_delaySpread",
46 >        "Average signal spread vs average signal arrival per Link Board; Avg signal arrival wrt L1A per Link Board [BX]; Avg signal spread per Link Board [BX]; Link Boards / bin",
47 >        nbinsX, 0.0-(int)(nbinsX/2)*widthX, 0.0+(int)(nbinsX/2)*widthX,
48 >        nbinsY, 0.0, 0.0+nbinsY*widthY);
49 > //        71,-3.05, 4.05, 31,-0.05,3.05);
50 >  hSynch_delaySpread->Sumw2();
51 >  //hSynch_delaySpread->SetStats(0);
52 >  histos.Add(hSynch_delaySpread);
53  
54    hSynch_notComplete[0] = new TH2F("hSynch_notComplete790","FED790: not All Paths hit",36,-0.5,35.5,18,-0.5,17.5); histos.Add(hSynch_notComplete[0]);
55    hSynch_notComplete[1] = new TH2F("hSynch_notComplete791","FED791: not All Paths hit",36,-0.5,35.5,18,-0.5,17.5); histos.Add(hSynch_notComplete[1]);
# Line 83 | Line 95 | void AnaSynch::endJob()
95    RPCLinkSynchroHistoMaker hm(theSynchroStat);
96    hm.fill(hSynch_delaySummary, hSynch_delaySpread, hSynch_topOccup, hSynch_topSpread);
97  
98 <  std::ofstream file("delays.txt");
98 >  std::ofstream file("l1RpcDelays.txt");
99    file << theSynchroStat.dumpDelays() << std::endl;
100    file.close();
101   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines