@@ -38,9 +38,9 @@ Quality ITSClusterCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
3838 result = Quality::Good;
3939
4040 if (iter->second ->getName ().find (" AverageClusterSize" ) != std::string::npos) {
41- auto * h = dynamic_cast <TH2F *>(iter->second ->getObject ());
41+ auto * h = dynamic_cast <TH2D *>(iter->second ->getObject ());
4242 if (h == nullptr ) {
43- ILOG (Error, Support) << " could not cast AverageClusteSize to TH2F *" << ENDM ;
43+ ILOG (Error, Support) << " could not cast AverageClusteSize to TH2D *" << ENDM ;
4444 continue ;
4545 }
4646 for (int ilayer = 0 ; ilayer < NLayer; ilayer++) {
@@ -53,9 +53,9 @@ Quality ITSClusterCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
5353 }
5454
5555 if (iter->second ->getName ().find (" EmptyLaneFractionGlobal" ) != std::string::npos) {
56- auto * h = dynamic_cast <TH1F *>(iter->second ->getObject ());
56+ auto * h = dynamic_cast <TH1D *>(iter->second ->getObject ());
5757 if (h == nullptr ) {
58- ILOG (Error, Support) << " could not cast EmptyLaneFractionGlobal to TH1F *" << ENDM ;
58+ ILOG (Error, Support) << " could not cast EmptyLaneFractionGlobal to TH1D *" << ENDM ;
5959 continue ;
6060 }
6161 result.addMetadata (" EmptyLaneFractionGlobal" , " good" );
@@ -68,9 +68,9 @@ Quality ITSClusterCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
6868 } // end summary loop
6969
7070 if (iter->second ->getName ().find (" General_Occupancy" ) != std::string::npos) {
71- auto * hp = dynamic_cast <TH2F *>(iter->second ->getObject ());
71+ auto * hp = dynamic_cast <TH2D *>(iter->second ->getObject ());
7272 if (hp == nullptr ) {
73- ILOG (Error, Support) << " could not cast general occupancy to TH2F *" << ENDM ;
73+ ILOG (Error, Support) << " could not cast general occupancy to TH2D *" << ENDM ;
7474 continue ;
7575 }
7676 std::vector<int > skipxbins = convertToArray<int >(o2::quality_control_modules::common::getFromConfig<string>(mCustomParameters , " skipxbinsoccupancy" , " " ));
@@ -133,7 +133,7 @@ Quality ITSClusterCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
133133 return result;
134134} // end check
135135
136- std::string ITSClusterCheck::getAcceptedType () { return " TH2F " ; }
136+ std::string ITSClusterCheck::getAcceptedType () { return " TH2D " ; }
137137
138138void ITSClusterCheck::beautify (std::shared_ptr<MonitorObject> mo, Quality checkResult)
139139{
@@ -158,9 +158,9 @@ void ITSClusterCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkR
158158 Double_t positionX, positionY;
159159
160160 if (mo->getName ().find (" AverageClusterSize" ) != std::string::npos) {
161- auto * h = dynamic_cast <TH2F *>(mo->getObject ());
161+ auto * h = dynamic_cast <TH2D *>(mo->getObject ());
162162 if (h == nullptr ) {
163- ILOG (Error, Support) << " could not cast AverageClusterSize to TH2F *" << ENDM ;
163+ ILOG (Error, Support) << " could not cast AverageClusterSize to TH2D *" << ENDM ;
164164 return ;
165165 }
166166 std::string histoName = mo->getName ();
@@ -189,9 +189,9 @@ void ITSClusterCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkR
189189 }
190190
191191 if (mo->getName ().find (" EmptyLaneFractionGlobal" ) != std::string::npos) {
192- auto * h = dynamic_cast <TH1F *>(mo->getObject ());
192+ auto * h = dynamic_cast <TH1D *>(mo->getObject ());
193193 if (h == nullptr ) {
194- ILOG (Error, Support) << " could not cast EmptyLaneFractionGlobal to TH1F *" << ENDM ;
194+ ILOG (Error, Support) << " could not cast EmptyLaneFractionGlobal to TH1D *" << ENDM ;
195195 return ;
196196 }
197197 if (checkResult == Quality::Good) {
@@ -231,9 +231,9 @@ void ITSClusterCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkR
231231 h->GetListOfFunctions ()->Add (tShifterInfo->Clone ());
232232 }
233233 if (mo->getName ().find (" General_Occupancy" ) != std::string::npos) {
234- auto * h = dynamic_cast <TH2F *>(mo->getObject ());
234+ auto * h = dynamic_cast <TH2D *>(mo->getObject ());
235235 if (h == nullptr ) {
236- ILOG (Error, Support) << " could not cast General_Occupancy to TH2F *" << ENDM ;
236+ ILOG (Error, Support) << " could not cast General_Occupancy to TH2D *" << ENDM ;
237237 return ;
238238 }
239239 if (checkResult == Quality::Good) {
0 commit comments