24 vector<string> fwo, fwi, fno, fni;
28 flist.open(
"./noisefiles.list");
31 while(getline(flist,line)){
32 if(line.find(
"north_inner")!=UINT64_MAX){
35 if(line.find(
"north_outer")!=UINT64_MAX){
38 if(line.find(
"west_inner")!=UINT64_MAX){
41 if(line.find(
"west_outer")!=UINT64_MAX){
49 cout <<
"--- found files ---" << endl;
50 cout <<
" north, inner: " << fni.size() << endl;
51 cout <<
" north, outer: " << fno.size() << endl;
52 cout <<
" west, inner: " << fwi.size() << endl;
53 cout <<
" west, outer: " << fwo.size() << endl;
56 const size_t n_wo = fwo.size();
57 const size_t n_wi = fwi.size();
58 const size_t n_no = fno.size();
59 const size_t n_ni = fni.size();
60 float rateWO[6][n_wo];
61 float rateWI[6][n_wi];
62 float rateNO[4][n_no];
63 float rateNI[4][n_ni];
69 Date date0 = PathToDate(fno[0]);
72 for(
size_t i=0; i<n_no; i++){
73 cout <<
"opening file " << fno[i] << endl;
74 TFile fin(fno[i].c_str());
75 timeNO[i] = (float)DaysPassed(date0,PathToDate(fno[i]));
77 for(
size_t imac=0; imac<4; imac++){
80 TH1F*
h = (TH1F*)fin.FindObjectAny(hname.c_str());
82 rateNO[imac][i] = h->GetMean();
89 for(
size_t i=0; i<n_ni; i++){
90 cout <<
"opening file " << fni[i] << endl;
91 TFile fin(fni[i].c_str());
92 timeNI[i] = (float)DaysPassed(date0,PathToDate(fni[i]));
94 for(
size_t imac=0; imac<4; imac++){
97 TH1F* h = (TH1F*)fin.FindObjectAny(hname.c_str());
99 rateNI[imac][i] = h->GetMean();
108 for(
size_t i=0; i<n_wo; i++){
109 cout <<
"opening file " << fwo[i] << endl;
110 TFile fin(fwo[i].c_str());
111 timeWO[i] = (float)DaysPassed(date0,PathToDate(fwo[i]));
113 for(
size_t imac=0; imac<6; imac++){
116 TH1F* h = (TH1F*)fin.FindObjectAny(hname.c_str());
118 rateWO[imac][i] = h->GetMean();
125 for(
size_t i=0; i<n_wi; i++){
126 cout <<
"opening file " << fwi[i] << endl;
127 TFile fin(fwi[i].c_str());
128 timeWI[i] = (float)DaysPassed(date0,PathToDate(fwi[i]));
130 for(
size_t imac=0; imac<6; imac++){
133 TH1F* h = (TH1F*)fin.FindObjectAny(hname.c_str());
135 rateWI[imac][i] = h->GetMean();
145 TLegend* leg_ni =
new TLegend(0.3,0.65,0.6,0.9);
146 TLegend* leg_no =
new TLegend(0.3,0.65,0.6,0.9);
147 TLegend* leg_wi =
new TLegend(0.3,0.55,0.6,0.9);
148 TLegend* leg_wo =
new TLegend(0.3,0.55,0.6,0.9);
150 leg_ni->SetHeader(
"mac5 (location)",
"C");
151 leg_no->SetHeader(
"mac5 (location)",
"C");
152 leg_wi->SetHeader(
"mac5 (location)",
"C");
153 leg_wo->SetHeader(
"mac5 (location)",
"C");
158 TCanvas* cno =
new TCanvas();
159 for(
size_t imac=0; imac<4; imac++){
160 gO.push_back(
new TGraph(n_no,timeNO,rateNO[imac]));
161 gO.back()->SetMarkerColor(imac+1);
162 gO.back()->SetMarkerStyle(8);
164 leg_no->AddEntry(gO.back(),text.c_str(),
"p");
166 gO.back()->GetXaxis()->SetTitle(
"days since start");
167 gO.back()->GetYaxis()->SetTitle(
"rate [kHz]");
168 gO.back()->GetXaxis()->SetTitleSize(0.05);
169 gO.back()->GetXaxis()->SetLabelSize(0.05);
170 gO.back()->GetYaxis()->SetTitleSize(0.05);
171 gO.back()->GetYaxis()->SetLabelSize(0.05);
172 gO.back()->GetXaxis()->SetTitleOffset(0.9);
173 gO.back()->GetYaxis()->SetTitleOffset(0.9);
174 gO.back()->GetYaxis()->SetRangeUser(0,
MAXRATE);
175 gO.back()->SetTitle(
"CRT Noise Rate Over Time: North Wall, Out");
176 gO.back()->Draw(
"APL");
179 gO.back()->Draw(
"samepl");
183 cno->SaveAs(
"noise_north_outer.png");
189 TCanvas* cni =
new TCanvas();
190 for(
size_t imac=0; imac<4; imac++){
191 gI.push_back(
new TGraph(n_ni,timeNI,rateNI[imac]));
192 gI.back()->SetMarkerColor(imac+1);
193 gI.back()->SetMarkerStyle(8);
195 leg_ni->AddEntry(gI.back(),text.c_str(),
"p");
198 gI.back()->GetXaxis()->SetTitle(
"days since start");
199 gI.back()->GetYaxis()->SetTitle(
"rate [kHz]");
200 gI.back()->GetXaxis()->SetTitleSize(0.05);
201 gI.back()->GetXaxis()->SetLabelSize(0.05);
202 gI.back()->GetYaxis()->SetTitleSize(0.05);
203 gI.back()->GetYaxis()->SetLabelSize(0.05);
204 gI.back()->GetXaxis()->SetTitleOffset(0.9);
205 gI.back()->GetYaxis()->SetTitleOffset(0.9);
206 gI.back()->GetYaxis()->SetRangeUser(0,
MAXRATE);
207 gI.back()->SetTitle(
"CRT Noise Rate Over Time: North Wall, In");
208 gI.back()->Draw(
"APL");
211 gI.back()->Draw(
"samepl");
215 cni->SaveAs(
"noise_north_inner.png");
232 TCanvas* cwo =
new TCanvas();
233 for(
size_t imac=0; imac<6; imac++){
234 gWO.push_back(
new TGraph(n_wo,timeWO,rateWO[imac]));
235 gWO.back()->SetMarkerColor(imac+1);
236 gWO.back()->SetMarkerStyle(8);
238 leg_wo->AddEntry(gWO.back(),text.c_str(),
"p");
240 gWO.back()->GetXaxis()->SetTitle(
"days since start");
241 gWO.back()->GetYaxis()->SetTitle(
"rate [kHz]");
242 gWO.back()->GetXaxis()->SetTitleSize(0.05);
243 gWO.back()->GetXaxis()->SetLabelSize(0.05);
244 gWO.back()->GetYaxis()->SetTitleSize(0.05);
245 gWO.back()->GetYaxis()->SetLabelSize(0.05);
246 gWO.back()->GetXaxis()->SetTitleOffset(0.9);
247 gWO.back()->GetYaxis()->SetTitleOffset(0.9);
248 gWO.back()->GetYaxis()->SetRangeUser(0,
MAXRATE);
249 gWO.back()->SetTitle(
"CRT Noise Rate Over Time: West Wall, Out");
250 gWO.back()->Draw(
"APL");
253 gWO.back()->Draw(
"samepl");
257 cwo->SaveAs(
"noise_west_outer.png");
259 TCanvas* cwi =
new TCanvas();
260 for(
size_t imac=0; imac<6; imac++){
261 gWI.push_back(
new TGraph(n_wi,timeWI,rateWI[imac]));
262 gWI.back()->SetMarkerColor(imac+1);
263 gWI.back()->SetMarkerStyle(8);
265 leg_wi->AddEntry(gWI.back(),text.c_str(),
"p");
267 gWI.back()->GetXaxis()->SetTitle(
"days since start");
268 gWI.back()->GetYaxis()->SetTitle(
"rate [kHz]");
269 gWI.back()->GetXaxis()->SetTitleSize(0.05);
270 gWI.back()->GetXaxis()->SetLabelSize(0.05);
271 gWI.back()->GetYaxis()->SetTitleSize(0.05);
272 gWI.back()->GetYaxis()->SetLabelSize(0.05);
273 gWI.back()->GetXaxis()->SetTitleOffset(0.9);
274 gWI.back()->GetYaxis()->SetTitleOffset(0.9);
275 gWI.back()->GetYaxis()->SetRangeUser(0,
MAXRATE);
276 gWI.back()->SetTitle(
"CRT Noise Rate Over Time: West Wall, In");
277 gWI.back()->Draw(
"APL");
280 gWI.back()->Draw(
"samepl");
284 cwi->SaveAs(
"noise_west_inner.png");
then echo echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker see the discussion of warn common echo in *Note Linker such as a global int variable echo as opposed to a large global array echo echo I echo The symbol is an indirect reference to another symbol This echo is a GNU extension to the a out object file format which is echo rarely used echo echo N echo The symbol is a debugging symbol echo echo R echo The symbol is in a read only data section echo echo S echo The symbol is in an uninitialized data section for small echo objects echo echo T echo The symbol is in the text(code) section.'echo ' 'echo 'U 'echo 'The symbol is undefined.'echo ' 'echo 'V 'echo 'The symbol is a weak object.When a weak defined symbol is'echo 'linked with a normal defined symbol
std::string to_string(WindowPattern const &pattern)
BEGIN_PROLOG could also be cout