Yes the error for the histogram filled with all weights equal to 1 is the square root of the content.
If it is different is because you have either filled the histogram with weights different than one or you have set explicitly a bin error.
We can help solving your problems if you post a runnable ROOT macro (in C++ or Python) showing the issue