File tree Expand file tree Collapse file tree 3 files changed +39
-18
lines changed
Expand file tree Collapse file tree 3 files changed +39
-18
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,25 @@ lutRead_dca(const char *filename = "lutCovm.dat", double eta = 0.)
2323 for (int inch = 0 ; inch < nnch ; ++ inch ) {
2424 for (int irad = 0 ; irad < nrad ; ++ irad ) {
2525 for (int ieta = 0 ; ieta < neta ; ++ ieta ) {
26- for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
27- lutFile .read (reinterpret_cast < char * > (& lutTable [inch ][irad ][ieta ][ipt ]), sizeof (lutEntry_t ));
28- // lutTable[inch][irad][ieta][ipt].print();
29- }}}}
30-
26+ for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
27+ lutFile .read (reinterpret_cast < char * > (& lutTable [inch ][irad ][ieta ][ipt ]), sizeof (lutEntry_t ));
28+ // lutTable[inch][irad][ieta][ipt].print();
29+ }
30+ }
31+ }
32+ }
33+
3134 lutFile .close ();
3235
3336 // create graph of pt resolution at eta = 0
3437 auto inch = lutHeader .nchmap .find (0. );
35- auto irad = lutHeader .nchmap .find (0. );
38+ auto irad = lutHeader .radmap .find (0. );
3639 auto ieta = lutHeader .etamap .find (eta );
3740 auto gpt = new TGraph ();
41+ gpt -> SetName (filename );
42+ gpt -> SetTitle (filename );
43+ gpt -> GetXaxis ()-> SetTitle ("#it{p}_{T} (GeV/#it{c})" );
44+ gpt -> GetYaxis ()-> SetTitle ("pointing resolution (#mum)" );
3845 for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
3946 auto lutEntry = & lutTable [inch ][irad ][ieta ][ipt ];
4047 if (!lutEntry -> valid ) {
Original file line number Diff line number Diff line change @@ -23,18 +23,25 @@ lutRead_eff(const char *filename = "lutCovm.dat", double eta = 0.)
2323 for (int inch = 0 ; inch < nnch ; ++ inch ) {
2424 for (int irad = 0 ; irad < nrad ; ++ irad ) {
2525 for (int ieta = 0 ; ieta < neta ; ++ ieta ) {
26- for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
27- lutFile .read (reinterpret_cast < char * > (& lutTable [inch ][irad ][ieta ][ipt ]), sizeof (lutEntry_t ));
28- // lutTable[inch][irad][ieta][ipt].print();
29- }}}}
30-
26+ for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
27+ lutFile .read (reinterpret_cast < char * > (& lutTable [inch ][irad ][ieta ][ipt ]), sizeof (lutEntry_t ));
28+ // lutTable[inch][irad][ieta][ipt].print();
29+ }
30+ }
31+ }
32+ }
33+
3134 lutFile .close ();
3235
3336 // create graph of pt resolution at eta = 0
3437 auto inch = lutHeader .nchmap .find (0. );
35- auto irad = lutHeader .nchmap .find (0. );
38+ auto irad = lutHeader .radmap .find (0. );
3639 auto ieta = lutHeader .etamap .find (eta );
3740 auto gpt = new TGraph ();
41+ gpt -> SetName (filename );
42+ gpt -> SetTitle (filename );
43+ gpt -> GetXaxis ()-> SetTitle ("#it{p}_{T} (GeV/#it{c})" );
44+ gpt -> GetYaxis ()-> SetTitle ("efficiency (%)" );
3845 for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
3946 auto lutEntry = & lutTable [inch ][irad ][ieta ][ipt ];
4047 if (!lutEntry -> valid ) {
Original file line number Diff line number Diff line change @@ -23,18 +23,25 @@ lutRead_pt(const char *filename = "lutCovm.dat", double eta = 0.)
2323 for (int inch = 0 ; inch < nnch ; ++ inch ) {
2424 for (int irad = 0 ; irad < nrad ; ++ irad ) {
2525 for (int ieta = 0 ; ieta < neta ; ++ ieta ) {
26- for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
27- lutFile .read (reinterpret_cast < char * > (& lutTable [inch ][irad ][ieta ][ipt ]), sizeof (lutEntry_t ));
28- // lutTable[inch][irad][ieta][ipt].print();
29- }}}}
30-
26+ for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
27+ lutFile .read (reinterpret_cast < char * > (& lutTable [inch ][irad ][ieta ][ipt ]), sizeof (lutEntry_t ));
28+ // lutTable[inch][irad][ieta][ipt].print();
29+ }
30+ }
31+ }
32+ }
33+
3134 lutFile .close ();
3235
3336 // create graph of pt resolution at eta = 0
3437 auto inch = lutHeader .nchmap .find (0. );
35- auto irad = lutHeader .nchmap .find (0. );
38+ auto irad = lutHeader .radmap .find (0. );
3639 auto ieta = lutHeader .etamap .find (eta );
3740 auto gpt = new TGraph ();
41+ gpt -> SetName (filename );
42+ gpt -> SetTitle (filename );
43+ gpt -> GetXaxis ()-> SetTitle ("#it{p}_{T} (GeV/#it{c})" );
44+ gpt -> GetYaxis ()-> SetTitle ("momentum resolution (%)" );
3845 for (int ipt = 0 ; ipt < npt ; ++ ipt ) {
3946 auto lutEntry = & lutTable [inch ][irad ][ieta ][ipt ];
4047 if (!lutEntry -> valid ) continue ;
You can’t perform that action at this time.
0 commit comments