@@ -57,25 +57,25 @@ void LoadRespFunc()
5757 std ::string AptsFile = "$(O2_ROOT)/share/Detectors/Upgrades/ITS3/data/ITS3ChipResponseData/APTSResponseData.root" ;
5858 std ::string AlpideFile = "$(O2_ROOT)/share/Detectors/ITSMFT/data/AlpideResponseData/AlpideResponseData.root" ;
5959
60- std ::cout << "=====================\n" ;
60+ std ::cout << "=====================\n" ;
6161 LOGP (info , "ALPIDE Vbb=0V response" );
6262 mAlpSimResp0 = loadResponse (AlpideFile , "response0" ); // Vbb=0V
6363 mAlpSimResp0 -> computeCentreFromData ();
6464 mAlpSimResp0 -> print ();
6565 LOGP (info , "Response Centre {}" , mAlpSimResp0 -> getRespCentreDep ());
66- std ::cout << "=====================\n" ;
66+ std ::cout << "=====================\n" ;
6767 LOGP (info , "ALPIDE Vbb=-3V response" );
6868 mAlpSimResp1 = loadResponse (AlpideFile , "response1" ); // Vbb=-3V
6969 mAlpSimResp1 -> computeCentreFromData ();
7070 mAlpSimResp1 -> print ();
7171 LOGP (info , "Response Centre {}" , mAlpSimResp1 -> getRespCentreDep ());
72- std ::cout << "=====================\n" ;
72+ std ::cout << "=====================\n" ;
7373 LOGP (info , "APTS response" );
7474 mAptSimResp1 = loadResponse (AptsFile , "response1" ); // APTS
7575 mAptSimResp1 -> computeCentreFromData ();
7676 mAptSimResp1 -> print ();
7777 LOGP (info , "Response Centre {}" , mAptSimResp1 -> getRespCentreDep ());
78- std ::cout << "=====================\n" ;
78+ std ::cout << "=====================\n" ;
7979}
8080
8181std ::vector < float > getCollectionSeediciencies (o2 ::its3 ::ChipSimResponse * resp ,
@@ -85,7 +85,7 @@ std::vector<float> getCollectionSeediciencies(o2::its3::ChipSimResponse* resp,
8585 bool flipRow = false, flipCol = false;
8686 for (auto depth : depths ) {
8787 auto rspmat = resp -> getResponse (0.0 , 0.0 ,
88- um2cm (depth ) + resp -> getDepthMin () + 1.e-9 ,
88+ um2cm (depth ) + 1.e-9 ,
8989 flipRow , flipCol );
9090 seed .push_back (rspmat ? rspmat -> getValue (2 , 2 ) : 0.f );
9191 }
@@ -99,7 +99,7 @@ std::vector<float> getShareValues(o2::its3::ChipSimResponse* resp,
9999 bool flipRow = false, flipCol = false;
100100 for (auto depth : depths ) {
101101 auto rspmat = resp -> getResponse (0.0 , 0.0 ,
102- um2cm (depth ) + resp -> getDepthMin () + 1.e-9 ,
102+ um2cm (depth ) + 1.e-9 ,
103103 flipRow , flipCol );
104104 float s = 0 ;
105105 int npix = resp -> getNPix ();
@@ -121,7 +121,7 @@ std::vector<float> getEffValues(o2::its3::ChipSimResponse* resp,
121121 bool flipRow = false, flipCol = false;
122122 for (auto depth : depths ) {
123123 auto rspmat = resp -> getResponse (0.0 , 0.0 ,
124- um2cm (depth ) + resp -> getDepthMin () + 1.e-9 ,
124+ um2cm (depth ) + 1.e-9 ,
125125 flipRow , flipCol );
126126 float s = 0 ;
127127 int npix = resp -> getNPix ();
@@ -140,9 +140,12 @@ void CheckChipResponseFile()
140140 LoadRespFunc ();
141141 LOG (info ) << "Response function loaded" << std ::endl ;
142142
143- std ::vector < float > vecDepth (50 );
144- for (int i = 0 ; i < 50 ; ++ i )
145- vecDepth [i ] = i ;
143+ std ::vector < float > vecDepth ;
144+ int numPoints = 100 ;
145+ for (int i = 0 ; i < numPoints ; ++ i ) {
146+ float value = -50 + i * (100.0f / (numPoints - 1 ));
147+ vecDepth .push_back (value );
148+ }
146149
147150 int colors [ ] = {kOrange + 7 , kRed + 1 , kAzure + 4 };
148151 struct RespInfo {
@@ -156,7 +159,7 @@ void CheckChipResponseFile()
156159 {mAlpSimResp1 , "ALPIDE Vbb = -3 V ", colors [2 ]}};
157160
158161 TCanvas * c1 = new TCanvas ("c1 ", "c1 ", 800 , 600 );
159- TH1 * frame = c1 -> DrawFrame (-1 , -0.049 , 50 , 1.049 );
162+ TH1 * frame = c1 -> DrawFrame (-50 , -0.049 , 50 , 1.049 );
160163 frame -> SetTitle (";Depth(um);Charge Collection Seed / Share / Eff" );
161164 TLegend * leg = new TLegend (0.15 , 0.5 , 0.4 , 0.85 );
162165 leg -> SetFillStyle (0 );
0 commit comments